mtd: nand: Add manufacturer specific initialization/detection steps
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 8 Jun 2016 07:32:55 +0000 (09:32 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 8 Mar 2017 22:21:19 +0000 (23:21 +0100)
commitabbe26d144ec22bb067fa414d717b9f7ca2e12bd
tree943357d183177f4fe5a4a23f8a2063461c09ab8c
parentbcc678c2d7a0e0af14cb3d858ebd367be378c172
mtd: nand: Add manufacturer specific initialization/detection steps

A lot of NANDs are implementing generic features in a non-generic way,
or are providing advanced auto-detection logic where the NAND ID bytes
meaning changes with the NAND generation.

Providing this vendor specific initialization step will allow us to get
rid of full-id entries in the nand_ids table or all the vendor specific
cases added over the time in the generic NAND ID decoding logic.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/nand_base.c
include/linux/mtd/nand.h