]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit78f3482d74809f278614470fb68536db16152ec8
treec220db1ed21a26aa392a47da7526a5e43614904d
parent8fc82d456e40a073d7e85d7825a345698f4b5a40
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