[PATCH 3/3] imx9: scmi: use 48-bit MAC add instead of incrementing mac[5]
Peng Fan
peng.fan at oss.nxp.com
Thu Jun 18 04:03:15 CEST 2026
On Thu, Jun 18, 2026 at 09:17:49AM +0800, ye.li at oss.nxp.com wrote:
>From: Alice Guo <alice.guo at nxp.com>
>
>Replace mac[5] += offset with a proper 48-bit MAC address add to avoid
>overflow issues when mac[5] was close to 255.
>
>Example:
>i.MX95 MAC2: 00:11:22:33:44:FE + 6
>Old: 00:11:22:33:44:04 (overflow, wraps to 0)
>New: 00:11:22:33:45:04 (correct carry from mac[5] to mac[4])
>
>Signed-off-by: Alice Guo <alice.guo at nxp.com>
>Signed-off-by: Ye Li <ye.li at nxp.com>
Reviewed-by: Peng Fan <peng.fan at nxp.com>
More information about the U-Boot
mailing list