]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvmem: imx: assign nvmem_cell_info::raw_len
authorChristian Eggers <ceggers@arri.de>
Fri, 27 Mar 2026 13:16:44 +0000 (13:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Apr 2026 12:29:53 +0000 (14:29 +0200)
commit62249f1a6d365e3c4cdc30be4b7e71dbfb47a3b4
tree16d52d7f294d12c0486d43f35bdda0a1fae3ca23
parentab09b9a1e3b02ff62c5aebe3b12b0cb4cb4ea8ab
nvmem: imx: assign nvmem_cell_info::raw_len

commit 48b5163c957548f5854f14c90bfdedc33afbea3c upstream.

Avoid getting error messages at startup like the following on i.MX6ULL:

nvmem imx-ocotp0: cell mac-addr raw len 6 unaligned to nvmem word size 4
nvmem imx-ocotp0: cell mac-addr raw len 6 unaligned to nvmem word size 4

This shouldn't cause any functional change as this alignment would
otherwise be done in nvmem_cell_info_to_nvmem_cell_entry_nodup().

Cc: stable@vger.kernel.org
Fixes: 13bcd440f2ff ("nvmem: core: verify cell's raw_len")
Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
Link: https://patch.msgid.link/20260327131645.3025781-2-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/imx-ocotp-ele.c
drivers/nvmem/imx-ocotp.c