mtd: rawnand: meson: fix bit map use in meson_nfc_ecc_correct()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 28 Jul 2022 07:12:12 +0000 (10:12 +0300)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 21 Sep 2022 08:38:46 +0000 (10:38 +0200)
commit3e4ad3212cf22687410b1e8f4e68feec50646113
tree300e5d972b4d3af11062e159b71d25f64dff3164
parent37ea9f165ed4a437d6b3302e76e2e2ab0804b86c
mtd: rawnand: meson: fix bit map use in meson_nfc_ecc_correct()

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@oracle.com>
Acked-by: Liang Yang <liang.yang@amlogic.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/YuI2zF1hP65+LE7r@kili
drivers/mtd/nand/raw/meson_nand.c