Hi Ronan, > Currently there is no fallback condition for when a NAND chip connected > reports an ECC requirement of zero and no value is specified in the DTS. > When this happens, pxa_ecc_init attempts to find a match, but fails with > the following error message: > > ECC strength 0 at page size N is not supported > > Linux already has a fallback case for this scenario. > > Make u-boot match the Linux behavior by triggering the fallback when the > ECC strength requirement reported by the chip is zero. Changing && to || > is sufficient to make the behavior equivalent. > > Signed-off-by: Ronan Dalton <[email protected]> > Cc: Dario Binacchi <[email protected]> > Cc: Michael Trimarchi <[email protected]> > Cc: Miquel Raynal <[email protected]> > Cc: Chris Packham <[email protected]> > Cc: Aryan Srivastava <[email protected]>
Reviewed-by: Miquel Raynal <[email protected]>
