[openwrt/openwrt] kernel: Fix readid method of XTX XT26G0xA

LEDE Commits lede-commits at lists.infradead.org
Sat Apr 9 06:09:05 PDT 2022


981213 pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/3711aee56d864fab066d76afadc9d04e1c18102e

commit 3711aee56d864fab066d76afadc9d04e1c18102e
Author: Felix Matouschek <felix at matouschek.org>
AuthorDate: Fri Apr 8 18:33:10 2022 +0200

    kernel: Fix readid method of XTX XT26G0xA
    
    The correct readid method is SPINAND_READID_METHOD_OPCODE_ADDR.
    
    Signed-off-by: Felix Matouschek <felix at matouschek.org>
---
 .../pending-5.10/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch | 6 +++---
 .../pending-5.15/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/target/linux/generic/pending-5.10/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch b/target/linux/generic/pending-5.10/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch
index 11590770cd..c55ce87225 100644
--- a/target/linux/generic/pending-5.10/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch
+++ b/target/linux/generic/pending-5.10/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch
@@ -125,7 +125,7 @@ Signed-off-by: Felix Matouschek <felix at 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 at 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 at 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,
diff --git a/target/linux/generic/pending-5.15/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch b/target/linux/generic/pending-5.15/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch
index 4672f8c86a..3d89e58d19 100644
--- a/target/linux/generic/pending-5.15/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch
+++ b/target/linux/generic/pending-5.15/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch
@@ -125,7 +125,7 @@ Signed-off-by: Felix Matouschek <felix at 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 at 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 at 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,




More information about the lede-commits mailing list