Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

nvmem: imx: assign nvmem_cell_info::raw_len

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>

authored by

Christian Eggers and committed by
Greg Kroah-Hartman
48b5163c 6a502776

+2
+1
drivers/nvmem/imx-ocotp-ele.c
··· 131 131 static void imx_ocotp_fixup_dt_cell_info(struct nvmem_device *nvmem, 132 132 struct nvmem_cell_info *cell) 133 133 { 134 + cell->raw_len = round_up(cell->bytes, 4); 134 135 cell->read_post_process = imx_ocotp_cell_pp; 135 136 } 136 137
+1
drivers/nvmem/imx-ocotp.c
··· 589 589 static void imx_ocotp_fixup_dt_cell_info(struct nvmem_device *nvmem, 590 590 struct nvmem_cell_info *cell) 591 591 { 592 + cell->raw_len = round_up(cell->bytes, 4); 592 593 cell->read_post_process = imx_ocotp_cell_pp; 593 594 } 594 595