]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: fsl_esdhc_spl: Fix checking for number of read sectors
authorPali Rohár <pali@kernel.org>
Wed, 11 May 2022 18:28:28 +0000 (20:28 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 23 May 2022 13:33:10 +0000 (09:33 -0400)
commit332edbef0a8af096f318a9b06d9339876858adea
tree6f2400eadf598b14dd870d932474f889a8eb5503
parent7c654c7612e7283cd58d7e2caadd421c01c4ca9e
mmc: fsl_esdhc_spl: Fix checking for number of read sectors

Commit d1c4d1f26b31 ("mmc: fsl_esdhc_spl: pre-PBL: implement redundancy
support") changed number of sectors which are read but did not adjusted
error check.

Fix it and check for if correct number of sectors were read.

Fixes: d1c4d1f26b31 ("mmc: fsl_esdhc_spl: pre-PBL: implement redundancy support")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/fsl_esdhc_spl.c