]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: rawnand: loongson: Add 6-byte NAND ID reading support
authorKeguang Zhang <keguang.zhang@gmail.com>
Thu, 4 Sep 2025 13:06:34 +0000 (21:06 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 10 Sep 2025 08:56:09 +0000 (10:56 +0200)
commitfb1dd6b6722b5187a4fa7385d0be60b28c0f9936
tree7829fcbed9700b6b42388bbab08da714046ec114
parent7a1e3a452a574ef337c4c2cd9202332a1ae9cd94
mtd: rawnand: loongson: Add 6-byte NAND ID reading support

Loongson-1C and Loongson-2K SoCs support NAND flash chips with 6-byte ID.
However, the current implementation only handles 5-byte ID which can lead
to incorrect chip detection.

Extend loongson_nand_read_id_type_exec() to support 6-byte NAND ID.

Signed-off-by: Keguang Zhang <keguang.zhang@gmail.com>
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/loongson-nand-controller.c