diff options
| author | Pali Rohár <[email protected]> | 2022-06-20 13:07:03 +0200 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2022-07-03 15:13:51 +0800 |
| commit | 712a172499a0c9baa93fdadbf62d10a0a0efbfeb (patch) | |
| tree | 02ca0904aea1fc4c3d393410e48f7c9d5a296433 /scripts | |
| parent | 284c1a9b4b91120385c346a1924628a695314905 (diff) | |
mtd: rawnand: fsl_elbc: Fix detection when nand_scan_ident() has not selected ecc.mode
ecc.mode is set to 0 (aliased to NAND_ECC_NONE) either when function
nand_scan_ident() has not selected ecc.mode or when it selected it to none
ecc mode.
Distinguish between these two states by checking of node property
"nand-ecc-mode" which function nand_scan_ident() uses for filling ecc.mode.
This change fixes usage of none ecc mode if it is specified in DTS file.
Fixes: c9ea9019c5aa ("mtd: rawnand: fsl_elbc: Use ECC configuration from device tree")
Signed-off-by: Pali Rohár <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
