2023-10-09 07:53:14

by Peng Fan (OSS)

[permalink] [raw]
Subject: [PATCH v2 0/3] nvmem: imx: correct nregs for i.MX6UL/ULL/SLL

The current code does not include the register space hole, after check
the fuse map of the three SoCs, update the nregs to fix the issue.

Signed-off-by: Peng Fan <[email protected]>
---
Changes in v2:
- Cc stable kernel list in patch
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Peng Fan (3):
nvmem: imx: correct nregs for i.MX6SLL
nvmem: imx: correct nregs for i.MX6UL
nvmem: imx: correct nregs for i.MX6ULL

drivers/nvmem/imx-ocotp.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
base-commit: 0f0fe5040de5e5fd9b040672e37725b046e312f0
change-id: 20231008-nvmem-imx-1af696badaf5

Best regards,
--
Peng Fan <[email protected]>


2023-10-09 07:53:18

by Peng Fan (OSS)

[permalink] [raw]
Subject: [PATCH v2 3/3] nvmem: imx: correct nregs for i.MX6ULL

From: Peng Fan <[email protected]>

The nregs for i.MX6ULL should be 80 per fuse map, correct it.

Fixes: ffbc34bf0e9c ("nvmem: imx-ocotp: Implement i.MX6ULL/ULZ support")
Cc: <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
---
drivers/nvmem/imx-ocotp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c
index 8d30c8bfdbcf..f1e202efaa49 100644
--- a/drivers/nvmem/imx-ocotp.c
+++ b/drivers/nvmem/imx-ocotp.c
@@ -519,7 +519,7 @@ static const struct ocotp_params imx6ul_params = {
};

static const struct ocotp_params imx6ull_params = {
- .nregs = 64,
+ .nregs = 80,
.bank_address_words = 0,
.set_timing = imx_ocotp_set_imx6_timing,
.ctrl = IMX_OCOTP_BM_CTRL_DEFAULT,

--
2.37.1

2023-10-09 07:53:26

by Peng Fan (OSS)

[permalink] [raw]
Subject: [PATCH v2 2/3] nvmem: imx: correct nregs for i.MX6UL

From: Peng Fan <[email protected]>

The nregs for i.MX6UL should be 144 per fuse map, correct it.

Fixes: 4aa2b4802046 ("nvmem: octop: Add support for imx6ul")
Cc: <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
---
drivers/nvmem/imx-ocotp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c
index c59cfe13a5f8..8d30c8bfdbcf 100644
--- a/drivers/nvmem/imx-ocotp.c
+++ b/drivers/nvmem/imx-ocotp.c
@@ -512,7 +512,7 @@ static const struct ocotp_params imx6sx_params = {
};

static const struct ocotp_params imx6ul_params = {
- .nregs = 128,
+ .nregs = 144,
.bank_address_words = 0,
.set_timing = imx_ocotp_set_imx6_timing,
.ctrl = IMX_OCOTP_BM_CTRL_DEFAULT,

--
2.37.1

2023-10-13 12:48:04

by Srinivas Kandagatla

[permalink] [raw]
Subject: Re: [PATCH v2 0/3] nvmem: imx: correct nregs for i.MX6UL/ULL/SLL


On Mon, 09 Oct 2023 15:57:26 +0800, Peng Fan (OSS) wrote:
> The current code does not include the register space hole, after check
> the fuse map of the three SoCs, update the nregs to fix the issue.
>
>

Applied, thanks!

[1/3] nvmem: imx: correct nregs for i.MX6SLL
commit: e898831a66834fb7c9ec5816c9683e746656c25c
[2/3] nvmem: imx: correct nregs for i.MX6UL
commit: f46cfdaf5c0723abcec6da48408fc52d710b424d
[3/3] nvmem: imx: correct nregs for i.MX6ULL
commit: d0b450caca6f07826dfac1f60faabadf0a226b05

Best regards,
--
Srinivas Kandagatla <[email protected]>