[RFC PATCH nand/next 1/4] mtd: nand: Create param.c to do CRC check and bitwise majority for Parameter & CASN page
Miquel Raynal
miquel.raynal at bootlin.com
Mon Nov 18 02:55:39 PST 2024
On 20/10/2024 at 21:27:19 +08, Sky Huang <SkyLake.Huang at mediatek.com> wrote:
> From: "Sky.Huang" <skylake.huang at mediatek.com>
>
> Create drivers/mtd/nand/param.c so ONFI parameter page & CASN page
> can both use nanddev_crc16() and nanddev_bit_wise_majority() directly
> like this:
> * For ONFI Parameter page:
> onfi_crc16() -> nanddev_crc16()
> * For CASN page: nanddev_crc16()
>
> nanddev_bit_wise_majority() is same as nand_bit_wise_majority().
Please use the same nanddev_ prefix.
> nanddev_crc16() is same as onfi_crc16(). But there are lots of
> onfi_crc16() call, so keep onfi_crc16() there and hook it to
> nanddev_crc16().
>
> Signed-off-by: Sky Huang <skylake.huang at mediatek.com>
Thanks,
Miquèl
More information about the Linux-mediatek
mailing list