]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: hynix: Rework NAND ID decoding to extract more information
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 27 May 2016 12:36:36 +0000 (14:36 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 8 Mar 2017 22:21:24 +0000 (23:21 +0100)
commit8beac427ec560fdc8599f6511260128053bc84cd
treec220db1ed21a26aa392a47da7526a5e43614904d
parent45dfbab304360fe3f8b3c2a0e9fac661c364c20a
mtd: nand: hynix: Rework NAND ID decoding to extract more information

The current NAND ID detection in nand_hynix.c is not handling the
different scheme used by Hynix, thus forcing developers to add new
entry to the nand_ids table each time they want to support a new MLC
NAND.

Enhance the detection logic to handle all known formats. This does not
necessarily mean we are handling all the cases, but if new formats are
discovered, the code should evolve to take them into account instead of
adding more full-id entries to the nand_ids table.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Richard Weinberger <richard@nod.at>
drivers/mtd/nand/nand_hynix.c