mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Florian Fainelli <florian@openwrt.org>
To: netdev@vger.kernel.org
Cc: Florian Fainelli <florian@openwrt.org>,
	"David S. Miller" <davem@davemloft.net>,
	John Crispin <blogic@openwrt.org>,
	Jeff Kirsher <jeffrey.t.kirsher@intel.com>,
	Jiri Pirko <jpirko@redhat.com>,
	linux-kernel@vger.kernel.org
Subject: [PATCH 08/21] lantiq_etop: use an unique MDIO bus name.
Date: Tue, 10 Jan 2012 10:59:14 +0100	[thread overview]
Message-ID: <1326189567-21663-9-git-send-email-florian@openwrt.org> (raw)
In-Reply-To: <1326189567-21663-1-git-send-email-florian@openwrt.org>

Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
 drivers/net/ethernet/lantiq_etop.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/net/ethernet/lantiq_etop.c b/drivers/net/ethernet/lantiq_etop.c
index 0b3567a..85e2c6c 100644
--- a/drivers/net/ethernet/lantiq_etop.c
+++ b/drivers/net/ethernet/lantiq_etop.c
@@ -98,6 +98,7 @@ struct ltq_etop_chan {
 
 struct ltq_etop_priv {
 	struct net_device *netdev;
+	struct platform_device *pdev;
 	struct ltq_eth_data *pldata;
 	struct resource *res;
 
@@ -436,7 +437,8 @@ ltq_etop_mdio_init(struct net_device *dev)
 	priv->mii_bus->read = ltq_etop_mdio_rd;
 	priv->mii_bus->write = ltq_etop_mdio_wr;
 	priv->mii_bus->name = "ltq_mii";
-	snprintf(priv->mii_bus->id, MII_BUS_ID_SIZE, "%x", 0);
+	snprintf(priv->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
+		priv->pdev->name, priv->pdev->id);
 	priv->mii_bus->irq = kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL);
 	if (!priv->mii_bus->irq) {
 		err = -ENOMEM;
@@ -734,6 +736,7 @@ ltq_etop_probe(struct platform_device *pdev)
 	dev->ethtool_ops = &ltq_etop_ethtool_ops;
 	priv = netdev_priv(dev);
 	priv->res = res;
+	priv->pdev = pdev;
 	priv->pldata = dev_get_platdata(&pdev->dev);
 	priv->netdev = dev;
 	spin_lock_init(&priv->lock);
-- 
1.7.5.4


  parent reply	other threads:[~2012-01-10 10:10 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1326189567-21663-1-git-send-email-florian@openwrt.org>
2012-01-10  9:59 ` [PATCH 01/21] ax88796: " Florian Fainelli
2012-01-10  9:59 ` [PATCH 02/21] bfin_mac: " Florian Fainelli
2012-01-11 14:47   ` Bob Liu
2012-01-10  9:59 ` [PATCH 03/21] au1000-eth: " Florian Fainelli
2012-01-10  9:59 ` [PATCH 04/21] sb1250: " Florian Fainelli
2012-01-10  9:59 ` [PATCH 05/21] macb: " Florian Fainelli
2012-01-10 10:01   ` Nicolas Ferre
2012-01-10  9:59 ` [PATCH 06/21] dnet: " Florian Fainelli
2012-01-10  9:59 ` [PATCH 07/21] fec: " Florian Fainelli
2012-01-10  9:59 ` Florian Fainelli [this message]
2012-01-10  9:59 ` [PATCH 09/21] mv643xx-eth: " Florian Fainelli
2012-01-10 10:02   ` Lennert Buytenhek
2012-01-10  9:59 ` [PATCH 10/21] pxa168-eth: " Florian Fainelli
2012-01-10  9:59 ` [PATCH 11/21] sh-eth: " Florian Fainelli
2012-01-10  9:59 ` [PATCH 12/21] s6gmac: " Florian Fainelli
2012-01-10  9:59 ` [PATCH 13/21] smsc911x: " Florian Fainelli
2012-01-10  9:59 ` [PATCH 14/21] stmmac: " Florian Fainelli
2012-01-10  9:59 ` [PATCH 15/21] cpmac: " Florian Fainelli
2012-01-10  9:59 ` [PATCH 16/21] davinci_emac: " Florian Fainelli
2012-01-10  9:59 ` [PATCH 17/21] ixp4xx-eth: " Florian Fainelli
2012-01-10  9:59 ` [PATCH 18/21] bcm63xx_enet: " Florian Fainelli
2012-01-10  9:59 ` [PATCH 19/21] phy/fixed: " Florian Fainelli
2012-01-10  9:59 ` [PATCH 20/21] mdio-gpio: " Florian Fainelli
2012-01-10  9:59 ` [PATCH 21/21] mdio-octeon: " Florian Fainelli

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=1326189567-21663-9-git-send-email-florian@openwrt.org \
    --to=florian@openwrt.org \
    --cc=blogic@openwrt.org \
    --cc=davem@davemloft.net \
    --cc=jeffrey.t.kirsher@intel.com \
    --cc=jpirko@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@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®