diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2018-05-01 16:33:55 -0500 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2018-06-13 13:54:15 -0500 |
commit | 6e35686d893a1dea647302b3b2b41ea5a6195d1c (patch) | |
tree | b86ea3b5b7b8c0509d67486b3cb46217eeb3a961 | |
parent | 6f0dc0ca31e60a35c6876db76d42499890575b53 (diff) | |
download | u-boot-6e35686d893a1dea647302b3b2b41ea5a6195d1c.tar.gz |
net: sunxi: Correct MAC address register order
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@web.de>
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
-rw-r--r-- | drivers/net/sunxi_emac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c index d20b808c12..8dbd3c50c1 100644 --- a/drivers/net/sunxi_emac.c +++ b/drivers/net/sunxi_emac.c @@ -334,8 +334,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; } |