Skip to content

Commit 4e8d0f2

Browse files
haukegregkh
authored andcommitted
mtd: spinand: gigadevice: Add QE Bit
[ Upstream commit aea7687 ] The following GigaDevice chips have the QE BIT in the feature flags, I checked the datasheets, but did not try this. * GD5F1GQ4xExxG * GD5F1GQ4xFxxG * GD5F1GQ4UAYIG * GD5F4GQ4UAYIG The Quad operations like 0xEB mention that the QE bit has to be set. Fixes: c93c613 ("mtd: spinand: add support for GigaDevice GD5FxGQ4xA") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Tested-by: Chuanhong Guo <gch981213@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20200820165121.3192-3-hauke@hauke-m.de Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent b4fb5cb commit 4e8d0f2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

drivers/mtd/nand/spi/gigadevice.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static const struct spinand_info gigadevice_spinand_table[] = {
202202
SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
203203
&write_cache_variants,
204204
&update_cache_variants),
205-
0,
205+
SPINAND_HAS_QE_BIT,
206206
SPINAND_ECCINFO(&gd5fxgq4xa_ooblayout,
207207
gd5fxgq4xa_ecc_get_status)),
208208
SPINAND_INFO("GD5F2GQ4xA",
@@ -212,7 +212,7 @@ static const struct spinand_info gigadevice_spinand_table[] = {
212212
SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
213213
&write_cache_variants,
214214
&update_cache_variants),
215-
0,
215+
SPINAND_HAS_QE_BIT,
216216
SPINAND_ECCINFO(&gd5fxgq4xa_ooblayout,
217217
gd5fxgq4xa_ecc_get_status)),
218218
SPINAND_INFO("GD5F4GQ4xA",
@@ -222,7 +222,7 @@ static const struct spinand_info gigadevice_spinand_table[] = {
222222
SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
223223
&write_cache_variants,
224224
&update_cache_variants),
225-
0,
225+
SPINAND_HAS_QE_BIT,
226226
SPINAND_ECCINFO(&gd5fxgq4xa_ooblayout,
227227
gd5fxgq4xa_ecc_get_status)),
228228
SPINAND_INFO("GD5F1GQ4UExxG",
@@ -232,7 +232,7 @@ static const struct spinand_info gigadevice_spinand_table[] = {
232232
SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
233233
&write_cache_variants,
234234
&update_cache_variants),
235-
0,
235+
SPINAND_HAS_QE_BIT,
236236
SPINAND_ECCINFO(&gd5fxgq4_variant2_ooblayout,
237237
gd5fxgq4uexxg_ecc_get_status)),
238238
SPINAND_INFO("GD5F1GQ4UFxxG",
@@ -242,7 +242,7 @@ static const struct spinand_info gigadevice_spinand_table[] = {
242242
SPINAND_INFO_OP_VARIANTS(&read_cache_variants_f,
243243
&write_cache_variants,
244244
&update_cache_variants),
245-
0,
245+
SPINAND_HAS_QE_BIT,
246246
SPINAND_ECCINFO(&gd5fxgq4_variant2_ooblayout,
247247
gd5fxgq4ufxxg_ecc_get_status)),
248248
};

0 commit comments

Comments
 (0)