[U-Boot] [PATCH] net: sunxi: Correct MAC address register order
Joe Hershberger
joe.hershberger at ni.com
Tue May 1 21:33:55 UTC 2018
Put the enetaddr data in the same order as it was before the change in
commit ace1520cb5fc ("net: sunxi-emac: Write HW address via function")
Reported-by: Udo Maslo <u.maslo at web.de>
Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
---
drivers/net/sunxi_emac.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c
index 37685f3..feaee09 100644
--- a/drivers/net/sunxi_emac.c
+++ b/drivers/net/sunxi_emac.c
@@ -335,8 +335,8 @@ static int _sunxi_write_hwaddr(struct emac_eth_dev *priv, u8 *enetaddr)
enetaddr_lo = enetaddr[2] | (enetaddr[1] << 8) | (enetaddr[0] << 16);
enetaddr_hi = enetaddr[5] | (enetaddr[4] << 8) | (enetaddr[3] << 16);
- writel(enetaddr_hi, ®s->mac_a1);
- writel(enetaddr_lo, ®s->mac_a0);
+ writel(enetaddr_hi, ®s->mac_a0);
+ writel(enetaddr_lo, ®s->mac_a1);
return 0;
}
--
1.7.11.5
More information about the U-Boot
mailing list