blob: 977c65cd7456f22feca52715bcfbee5c67673bca [file] [log] [blame]
developer5d148cb2023-06-02 13:08:11 +08001From be41be0e740933fa976ad2990b94ef1e62542a8e Mon Sep 17 00:00:00 2001
2From: Sam Shih <sam.shih@mediatek.com>
3Date: Fri, 2 Jun 2023 13:06:15 +0800
4Subject: [PATCH]
5 [spi-and-storage][999-2335-mtd-spinand-fix-gigadevice-read-dummy.patch]
6
7---
8 drivers/mtd/nand/spi/gigadevice.c | 8 ++++----
9 1 file changed, 4 insertions(+), 4 deletions(-)
10
11diff --git a/drivers/mtd/nand/spi/gigadevice.c b/drivers/mtd/nand/spi/gigadevice.c
12index a4e89529d..b163ea5dc 100644
developerc1160862022-05-19 19:37:04 +080013--- a/drivers/mtd/nand/spi/gigadevice.c
14+++ b/drivers/mtd/nand/spi/gigadevice.c
developer5d148cb2023-06-02 13:08:11 +080015@@ -379,7 +379,7 @@ static const struct spinand_info gigadevice_spinand_table[] = {
developerc1160862022-05-19 19:37:04 +080016 SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x31),
17 NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
18 NAND_ECCREQ(4, 512),
19- SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
20+ SPINAND_INFO_OP_VARIANTS(&dummy2_read_cache_variants,
21 &write_cache_variants,
22 &update_cache_variants),
23 SPINAND_HAS_QE_BIT,
developer5d148cb2023-06-02 13:08:11 +080024@@ -389,17 +389,17 @@ static const struct spinand_info gigadevice_spinand_table[] = {
developerc1160862022-05-19 19:37:04 +080025 SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x32),
26 NAND_MEMORG(1, 2048, 64, 64, 2048, 40, 1, 1, 1),
27 NAND_ECCREQ(4, 512),
28- SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
29+ SPINAND_INFO_OP_VARIANTS(&dummy4_read_cache_variants,
30 &write_cache_variants,
31 &update_cache_variants),
32 SPINAND_HAS_QE_BIT,
33 SPINAND_ECCINFO(&gd5fxgqx_variant2_ooblayout,
34 gd5fxgq5xexxg_ecc_get_status)),
35 SPINAND_INFO("GD5F4GQ6UExxH",
36- SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x32),
37+ SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x35),
38 NAND_MEMORG(1, 2048, 64, 64, 4096, 80, 1, 1, 1),
39 NAND_ECCREQ(4, 512),
40- SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
41+ SPINAND_INFO_OP_VARIANTS(&dummy4_read_cache_variants,
42 &write_cache_variants,
43 &update_cache_variants),
44 SPINAND_HAS_QE_BIT,
developer5d148cb2023-06-02 13:08:11 +080045--
462.34.1
47