Sascha Hauer acf1f43f7e nvmem: imx-ocotp-ele: fix MAC address byte order
According to the i.MX93 Fusemap the two MAC addresses are stored in
words 315 to 317 like this:

315	MAC1_ADDR_31_0[31:0]
316	MAC1_ADDR_47_32[47:32]
	MAC2_ADDR_15_0[15:0]
317	MAC2_ADDR_47_16[31:0]

This means the MAC addresses are stored in reverse byte order. We have
to swap the bytes before passing them to the upper layers. The storage
format is consistent to the one used on i.MX6 using imx-ocotp driver
which does the same byte swapping as introduced here.

With this patch the MAC address on my i.MX93 TQ board correctly reads as
00:d0:93:6b:27:b8 instead of b8:27:6b:93:d0:00.

Fixes: 22e9e6fcfb504 ("nvmem: imx: support i.MX93 OCOTP")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: stable <stable@kernel.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
2024-12-10 13:51:22 +00:00
..
2024-11-26 18:05:44 -08:00
2024-11-20 12:55:41 -08:00
2024-11-29 11:43:29 -08:00
2024-11-30 15:47:29 -08:00
2024-11-21 08:28:08 -08:00
2024-11-07 08:25:08 +01:00
2024-11-23 10:44:31 -08:00
2024-11-26 18:05:44 -08:00
2024-11-29 11:43:29 -08:00
2024-11-25 18:31:48 -08:00
2024-11-27 13:25:47 -08:00
2024-11-23 10:44:31 -08:00
2024-11-25 17:12:54 -08:00
2024-11-29 11:43:29 -08:00
2024-11-29 13:06:06 -08:00
2024-11-27 12:23:43 +01:00
2024-11-25 10:31:39 -08:00
2024-11-27 14:24:34 -08:00
2024-11-09 09:14:12 -08:00
2024-11-30 15:47:29 -08:00
2024-11-20 14:05:34 -08:00
2024-11-20 12:51:32 -08:00
2024-11-28 10:15:20 -08:00
2024-11-27 13:11:58 -08:00
2024-11-30 15:47:29 -08:00
2024-12-01 13:38:24 -08:00
2024-11-30 18:23:05 -08:00
2024-11-30 14:33:44 -08:00
2024-11-29 11:43:29 -08:00
2024-11-29 11:43:29 -08:00
2024-12-01 13:38:24 -08:00
2024-11-15 00:32:29 +11:00
2024-11-28 09:40:53 -08:00
2024-11-26 18:36:55 -08:00
2024-11-30 11:18:16 -08:00
2024-11-29 11:43:29 -08:00
2024-11-29 11:43:29 -08:00
2024-11-30 14:45:29 -08:00
2024-11-21 08:28:08 -08:00
2024-11-27 13:38:09 -08:00
2024-11-28 10:06:00 -08:00
2024-11-25 18:50:55 -08:00
2024-11-12 15:48:08 +01:00
2024-11-25 18:50:55 -08:00
2024-11-30 13:41:50 -08:00
2024-11-27 12:57:03 -08:00
2024-11-27 13:11:58 -08:00
2024-11-20 15:13:02 -08:00