]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: rawnand: Fix JEDEC detection
authorBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 13 Dec 2018 10:55:26 +0000 (11:55 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 14 Dec 2018 21:45:13 +0000 (22:45 +0100)
commitb637ef779575a977068025f842ecd480a9671f3f
tree1cafba2f5ded409744a4ad422ee69695dd68ba4b
parent38842572df1c79213b99e0c3472ce95aa5d152cf
mtd: rawnand: Fix JEDEC detection

nand_jedec_detect() should return 1 when the PARAM page parsing
succeeds, otherwise the core considers JEDEC detection failed and falls
back to ID-based detection.

Fixes: 480139d9229e ("mtd: rawnand: get rid of the JEDEC parameter page in nand_chip")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/nand_jedec.c