* [PATCH 4/4] net: r6040: store BIOS default MAC in perm_add
@ 2010-09-27 2:49 Otavio Salvador
2010-09-27 2:58 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Otavio Salvador @ 2010-09-27 2:49 UTC (permalink / raw)
To: netdev; +Cc: Otavio Salvador
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
drivers/net/r6040.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c
index 142c381..5780d08 100644
--- a/drivers/net/r6040.c
+++ b/drivers/net/r6040.c
@@ -740,6 +740,9 @@ static void r6040_mac_address(struct net_device *dev)
iowrite16(adrp[0], ioaddr + MID_0L);
iowrite16(adrp[1], ioaddr + MID_0M);
iowrite16(adrp[2], ioaddr + MID_0H);
+
+ /* Store MAC Address in perm_addr */
+ memcpy(dev->perm_addr, dev->dev_addr, ETH_ALEN);
}
static int r6040_open(struct net_device *dev)
--
1.7.2.3.313.gcd15
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 4/4] net: r6040: store BIOS default MAC in perm_add
2010-09-27 2:49 [PATCH 4/4] net: r6040: store BIOS default MAC in perm_add Otavio Salvador
@ 2010-09-27 2:58 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-09-27 2:58 UTC (permalink / raw)
To: otavio; +Cc: netdev
From: Otavio Salvador <otavio@ossystems.com.br>
Date: Sun, 26 Sep 2010 23:49:39 -0300
> Cc: David S. Miller <davem@davemloft.net>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-27 2:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-27 2:49 [PATCH 4/4] net: r6040: store BIOS default MAC in perm_add Otavio Salvador
2010-09-27 2:58 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).