Skip to content

imx-ocotp: fix MAC address reading

JIRA: https://issues.redhat.com/browse/RHEL-47030

Omitted-Fix: 8a00fc606312 "nvmem: imx-ocotp: Reverse MAC addresses on all i.MX derivates". See full explanation below.

Omitted-Fix: db3546d58b5a "nvmem: core: fix cell removal on error". This series tries to be minimal and the issue being fixed is not introduced by this series. I'm backporting edcf2fb66052 because there's a clear reference to a commit being backported by this series (and it's a more obvious issue)

On the i.MX8 SoC the MAC address is stored in reverse order in the NVMEM
device and needs to be reversed when read via the NVMEM API.

IMPORTANT: I took the simplest approach on backporting only the minimal
set of commits needed to fix the issue which should be enough for i.MX8
boards (we don't care about i.MX7 and i.MX6). Otherwise, to use the
current upstream solution, we would need to update the NVMEM subsystem
(more than 50 commits) which seems overkill to only fix this issue.

Signed-off-by: Luiz Capitulino luizcap@redhat.com

Edited by Luiz Capitulino

Merge request reports