kernel: backport nvmem v6.6 fixes and v6.7 changes
[openwrt/staging/hauke.git] / target / linux / generic / backport-5.15 / 819-v6.6-0019-nvmem-imx-correct-nregs-for-i.MX6UL.patch
1 From 7d6e10f5d254681983b53d979422c8de3fadbefb Mon Sep 17 00:00:00 2001
2 From: Peng Fan <peng.fan@nxp.com>
3 Date: Fri, 13 Oct 2023 13:49:03 +0100
4 Subject: [PATCH] nvmem: imx: correct nregs for i.MX6UL
5
6 The nregs for i.MX6UL should be 144 per fuse map, correct it.
7
8 Fixes: 4aa2b4802046 ("nvmem: octop: Add support for imx6ul")
9 Cc: Stable@vger.kernel.org
10 Signed-off-by: Peng Fan <peng.fan@nxp.com>
11 Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
12 Link: https://lore.kernel.org/r/20231013124904.175782-3-srinivas.kandagatla@linaro.org
13 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
14 ---
15 drivers/nvmem/imx-ocotp.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 --- a/drivers/nvmem/imx-ocotp.c
19 +++ b/drivers/nvmem/imx-ocotp.c
20 @@ -513,7 +513,7 @@ static const struct ocotp_params imx6sx_
21 };
22
23 static const struct ocotp_params imx6ul_params = {
24 - .nregs = 128,
25 + .nregs = 144,
26 .bank_address_words = 0,
27 .set_timing = imx_ocotp_set_imx6_timing,
28 .ctrl = IMX_OCOTP_BM_CTRL_DEFAULT,