mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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: <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Acked-by: Miquel Raynal <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
This commit is contained in:
parent
38842572df
commit
b637ef7795
1 changed files with 2 additions and 0 deletions
|
|
@ -107,6 +107,8 @@ int nand_jedec_detect(struct nand_chip *chip)
|
|||
pr_warn("Invalid codeword size\n");
|
||||
}
|
||||
|
||||
ret = 1;
|
||||
|
||||
free_jedec_param_page:
|
||||
kfree(p);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue