kernel: Fix readid method of XTX XT26G0xA
authorFelix Matouschek <felix@matouschek.org>
Fri, 8 Apr 2022 16:33:10 +0000 (18:33 +0200)
committerChuanhong Guo <gch981213@gmail.com>
Sat, 9 Apr 2022 13:08:26 +0000 (21:08 +0800)
The correct readid method is SPINAND_READID_METHOD_OPCODE_ADDR.

Signed-off-by: Felix Matouschek <felix@matouschek.org>
target/linux/generic/pending-5.10/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch
target/linux/generic/pending-5.15/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch

index 11590770cd6df6d4aa79dc31c3e6544221f028c4..c55ce872251761e28ab92ae1f70a54a62db43eef 100644 (file)
@@ -125,7 +125,7 @@ Signed-off-by: Felix Matouschek <felix@matouschek.org>
 +
 +static const struct spinand_info xtx_spinand_table[] = {
 +      SPINAND_INFO("XT26G01A",
-+                   SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xE1),
++                   SPINAND_ID(SPINAND_READID_METHOD_OPCODE_ADDR, 0xE1),
 +                   NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
 +                   NAND_ECCREQ(8, 512),
 +                   SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
@@ -135,7 +135,7 @@ Signed-off-by: Felix Matouschek <felix@matouschek.org>
 +                   SPINAND_ECCINFO(&xt26g0xa_ooblayout,
 +                                   xt26g0xa_ecc_get_status)),
 +      SPINAND_INFO("XT26G02A",
-+                   SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xE2),
++                   SPINAND_ID(SPINAND_READID_METHOD_OPCODE_ADDR, 0xE2),
 +                   NAND_MEMORG(1, 2048, 64, 64, 2048, 40, 1, 1, 1),
 +                   NAND_ECCREQ(8, 512),
 +                   SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
@@ -145,7 +145,7 @@ Signed-off-by: Felix Matouschek <felix@matouschek.org>
 +                   SPINAND_ECCINFO(&xt26g0xa_ooblayout,
 +                                   xt26g0xa_ecc_get_status)),
 +      SPINAND_INFO("XT26G04A",
-+                   SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xE3),
++                   SPINAND_ID(SPINAND_READID_METHOD_OPCODE_ADDR, 0xE3),
 +                   NAND_MEMORG(1, 2048, 64, 128, 2048, 40, 1, 1, 1),
 +                   NAND_ECCREQ(8, 512),
 +                   SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
index 4672f8c86a19af5db3b53e9d232ca86ef2e2a22c..3d89e58d1939596a9c72782a1ce663240d944879 100644 (file)
@@ -125,7 +125,7 @@ Signed-off-by: Felix Matouschek <felix@matouschek.org>
 +
 +static const struct spinand_info xtx_spinand_table[] = {
 +      SPINAND_INFO("XT26G01A",
-+                   SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xE1),
++                   SPINAND_ID(SPINAND_READID_METHOD_OPCODE_ADDR, 0xE1),
 +                   NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
 +                   NAND_ECCREQ(8, 512),
 +                   SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
@@ -135,7 +135,7 @@ Signed-off-by: Felix Matouschek <felix@matouschek.org>
 +                   SPINAND_ECCINFO(&xt26g0xa_ooblayout,
 +                                   xt26g0xa_ecc_get_status)),
 +      SPINAND_INFO("XT26G02A",
-+                   SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xE2),
++                   SPINAND_ID(SPINAND_READID_METHOD_OPCODE_ADDR, 0xE2),
 +                   NAND_MEMORG(1, 2048, 64, 64, 2048, 40, 1, 1, 1),
 +                   NAND_ECCREQ(8, 512),
 +                   SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
@@ -145,7 +145,7 @@ Signed-off-by: Felix Matouschek <felix@matouschek.org>
 +                   SPINAND_ECCINFO(&xt26g0xa_ooblayout,
 +                                   xt26g0xa_ecc_get_status)),
 +      SPINAND_INFO("XT26G04A",
-+                   SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xE3),
++                   SPINAND_ID(SPINAND_READID_METHOD_OPCODE_ADDR, 0xE3),
 +                   NAND_MEMORG(1, 2048, 64, 128, 2048, 40, 1, 1, 1),
 +                   NAND_ECCREQ(8, 512),
 +                   SPINAND_INFO_OP_VARIANTS(&read_cache_variants,