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>
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;
}