netifd: update to the latest version
[openwrt/staging/hauke.git] / target / linux / generic / backport-5.15 / 819-v6.6-0020-nvmem-imx-correct-nregs-for-i.MX6ULL.patch
1 From 2382c1b044231fd49eaf9aa82bc7113fc55487b8 Mon Sep 17 00:00:00 2001
2 From: Peng Fan <peng.fan@nxp.com>
3 Date: Fri, 13 Oct 2023 13:49:04 +0100
4 Subject: [PATCH] nvmem: imx: correct nregs for i.MX6ULL
5
6 The nregs for i.MX6ULL should be 80 per fuse map, correct it.
7
8 Fixes: ffbc34bf0e9c ("nvmem: imx-ocotp: Implement i.MX6ULL/ULZ support")
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-4-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 @@ -520,7 +520,7 @@ static const struct ocotp_params imx6ul_
21 };
22
23 static const struct ocotp_params imx6ull_params = {
24 - .nregs = 64,
25 + .nregs = 80,
26 .bank_address_words = 0,
27 .set_timing = imx_ocotp_set_imx6_timing,
28 .ctrl = IMX_OCOTP_BM_CTRL_DEFAULT,