From: Peng Fan Date: Fri, 13 Oct 2023 12:49:02 +0000 (+0100) Subject: nvmem: imx: correct nregs for i.MX6SLL X-Git-Tag: v6.6.7~1661^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=414a98abbefd82d591f4e2d1efd2917bcd3b6f6d;p=platform%2Fkernel%2Flinux-starfive.git nvmem: imx: correct nregs for i.MX6SLL The nregs for i.MX6SLL should be 80 per fuse map, correct it. Fixes: 6da27821a6f5 ("nvmem: imx-ocotp: add support for imx6sll") Cc: Stable@vger.kernel.org Signed-off-by: Peng Fan Signed-off-by: Srinivas Kandagatla Link: https://lore.kernel.org/r/20231013124904.175782-2-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index a223d95..7302f25 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -498,7 +498,7 @@ static const struct ocotp_params imx6sl_params = { }; static const struct ocotp_params imx6sll_params = { - .nregs = 128, + .nregs = 80, .bank_address_words = 0, .set_timing = imx_ocotp_set_imx6_timing, .ctrl = IMX_OCOTP_BM_CTRL_DEFAULT,