[PATCH] mtd: rawnand: meson: fix bit map use in meson_nfc_ecc_correct()

Miquel Raynal miquel.raynal at bootlin.com
Tue Sep 20 01:10:58 PDT 2022


On Thu, 2022-07-28 at 07:12:12 UTC, Dan Carpenter wrote:
> The meson_nfc_ecc_correct() function accidentally does a right shift
> instead of a left shift so it only works for BIT(0).  Also use
> BIT_ULL() because "correct_bitmap" is a u64 and we want to avoid
> shift wrapping bugs.
> 
> Fixes: 8fae856c5350 ("mtd: rawnand: meson: add support for Amlogic NAND flash controller")
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
> Acked-by: Liang Yang <liang.yang at amlogic.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel



More information about the linux-amlogic mailing list