mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Otavio Salvador <otavio@ossystems.com.br>
To: linux-kernel@vger.kernel.org
Cc: Otavio Salvador <otavio@ossystems.com.br>,
	"David S. Miller" <davem@davemloft.net>
Subject: [PATCH 4/4] net: r6040: store BIOS default MAC in perm_add
Date: Sun, 26 Sep 2010 23:35:07 -0300	[thread overview]
Message-ID: <1285554907-4495-4-git-send-email-otavio@ossystems.com.br> (raw)
In-Reply-To: <1285554907-4495-1-git-send-email-otavio@ossystems.com.br>

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


  parent reply	other threads:[~2010-09-27  2:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-27  2:35 [PATCH 1/4] pata-it821x: use UDMA_OFF for Vortex86SX for clearness Otavio Salvador
2010-09-27  2:35 ` [PATCH 2/4] USB: cdc-acm: fix code indentation Otavio Salvador
2010-09-27  2:35 ` [PATCH 3/4] ALSA: hda: add Vortex86MX PCI ids Otavio Salvador
2010-09-27  6:15   ` Takashi Iwai
2010-09-27  2:35 ` Otavio Salvador [this message]
2010-09-27  2:39   ` [PATCH 4/4] net: r6040: store BIOS default MAC in perm_add David Miller
2010-09-27  2:50     ` Otavio Salvador

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1285554907-4495-4-git-send-email-otavio@ossystems.com.br \
    --to=otavio@ossystems.com.br \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®