From: Bas van den Berg <b.van.den.berg.nl@gmail.com>
To: davem@davemloft.net, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: Sriram <srk@ti.com>, Vinay Hegde <vinay.hegde@ti.com>,
Cyril Chemparathy <cyril@ti.com>,
Richard Cochran <richard.cochran@omicron.at>,
Julia Lawall <Julia.Lawall@lip6.fr>,
Sascha Hauer <s.hauer@pengutronix.de>,
Joe Perches <joe@perches.com>
Subject: [PATCH] davinci_emac: fixed setting MAC at init time
Date: Thu, 1 Mar 2012 09:42:42 +0100 [thread overview]
Message-ID: <20120301084239.GA17146@altenpts-laptop> (raw)
Without this patch, the MAC number will show up as zero's until the interface
is brought up for the first time. (eg. with ifconfig -a)
Signed-off-by: Bas van den Berg <b.van.den.berg.nl@gmail.com>
---
drivers/net/ethernet/ti/davinci_emac.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c
index 4b2f545..11b169a 100644
--- a/drivers/net/ethernet/ti/davinci_emac.c
+++ b/drivers/net/ethernet/ti/davinci_emac.c
@@ -1904,6 +1904,7 @@ static int __devinit davinci_emac_probe(struct platform_device *pdev)
dev_warn(&pdev->dev, "using random MAC addr: %pM\n",
priv->mac_addr);
}
+ memcpy(ndev->dev_addr, priv->mac_addr, ndev->addr_len);
ndev->netdev_ops = &emac_netdev_ops;
SET_ETHTOOL_OPS(ndev, ðtool_ops);
--
1.7.0.4
next reply other threads:[~2012-03-01 8:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-01 8:42 Bas van den Berg [this message]
2012-03-01 21:28 ` [PATCH] davinci_emac: fixed setting MAC at init time David Miller
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=20120301084239.GA17146@altenpts-laptop \
--to=b.van.den.berg.nl@gmail.com \
--cc=Julia.Lawall@lip6.fr \
--cc=cyril@ti.com \
--cc=davem@davemloft.net \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=richard.cochran@omicron.at \
--cc=s.hauer@pengutronix.de \
--cc=srk@ti.com \
--cc=vinay.hegde@ti.com \
/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