developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 1 | From be41be0e740933fa976ad2990b94ef1e62542a8e Mon Sep 17 00:00:00 2001 |
| 2 | From: Sam Shih <sam.shih@mediatek.com> |
| 3 | Date: Fri, 2 Jun 2023 13:06:15 +0800 |
| 4 | Subject: [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 | |
| 11 | diff --git a/drivers/mtd/nand/spi/gigadevice.c b/drivers/mtd/nand/spi/gigadevice.c |
| 12 | index a4e89529d..b163ea5dc 100644 |
developer | c116086 | 2022-05-19 19:37:04 +0800 | [diff] [blame] | 13 | --- a/drivers/mtd/nand/spi/gigadevice.c |
| 14 | +++ b/drivers/mtd/nand/spi/gigadevice.c |
developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 15 | @@ -379,7 +379,7 @@ static const struct spinand_info gigadevice_spinand_table[] = { |
developer | c116086 | 2022-05-19 19:37:04 +0800 | [diff] [blame] | 16 | 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, |
developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 24 | @@ -389,17 +389,17 @@ static const struct spinand_info gigadevice_spinand_table[] = { |
developer | c116086 | 2022-05-19 19:37:04 +0800 | [diff] [blame] | 25 | 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, |
developer | 5d148cb | 2023-06-02 13:08:11 +0800 | [diff] [blame] | 45 | -- |
| 46 | 2.34.1 |
| 47 | |