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: 480139d922
("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>
This commit is contained in:
Родитель
38842572df
Коммит
b637ef7795
|
@ -107,6 +107,8 @@ int nand_jedec_detect(struct nand_chip *chip)
|
||||||
pr_warn("Invalid codeword size\n");
|
pr_warn("Invalid codeword size\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret = 1;
|
||||||
|
|
||||||
free_jedec_param_page:
|
free_jedec_param_page:
|
||||||
kfree(p);
|
kfree(p);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче