All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] net: sunxi: Correct MAC address register order
@ 2018-05-01 21:33 Joe Hershberger
  2018-06-13 19:01 ` [U-Boot] " Joe Hershberger
  0 siblings, 1 reply; 2+ messages in thread
From: Joe Hershberger @ 2018-05-01 21:33 UTC (permalink / raw)
  To: u-boot

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

 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, &regs->mac_a1);
-	writel(enetaddr_lo, &regs->mac_a0);
+	writel(enetaddr_hi, &regs->mac_a0);
+	writel(enetaddr_lo, &regs->mac_a1);
 
 	return 0;
 }
-- 
1.7.11.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] net: sunxi: Correct MAC address register order
  2018-05-01 21:33 [U-Boot] [PATCH] net: sunxi: Correct MAC address register order Joe Hershberger
@ 2018-06-13 19:01 ` Joe Hershberger
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Hershberger @ 2018-06-13 19:01 UTC (permalink / raw)
  To: u-boot

Hi Joe,

https://patchwork.ozlabs.org/patch/907230/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git

Thanks!
-Joe

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-13 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-01 21:33 [U-Boot] [PATCH] net: sunxi: Correct MAC address register order Joe Hershberger
2018-06-13 19:01 ` [U-Boot] " Joe Hershberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.