netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/21] NET: use unique MDIO bus names
@ 2012-01-10  9:59 Florian Fainelli
  2012-01-10  9:59 ` [PATCH 01/21] ax88796: use an unique MDIO bus name Florian Fainelli
                   ` (21 more replies)
  0 siblings, 22 replies; 26+ messages in thread
From: Florian Fainelli @ 2012-01-10  9:59 UTC (permalink / raw)
  To: netdev; +Cc: Florian Fainelli

While troubleshooting an issue with an user of the RDC r6040 driver
having compiled support for the fixed MDIO bus, I noticed that quite
some network drivers will have a MDIO bus named "0" most of the time.

Some network drivers already try to provide an unique MDIO bus name
using their PCI slot and function, this is okay.

Some other network drivers will format the name using their platform_device
id, which will usually result in a collision with the fixed MDIO bus
name ("0"), these drivers are fixed to use the following pattern instead:

<platform_device name>-<platform device id> which is unique

Finally the MDIO bus drivers themselves are patched to use an unique name
as well.

There is a potential to break user-space applications assuming there is a
specific MDIO bus named "0", "1" or other non-explanatory names like this.

Note that I compile tested most of the drivers on x86 and MIPS, ARM and Blackfin
drivers have not been compile tested.

Florian Fainelli (21):
  ax88796: use an unique MDIO bus name.
  bfin_mac: use an unique MDIO bus name.
  au1000-eth: use an unique MDIO bus name.
  sb1250: use an unique MDIO bus name.
  macb: use an unique MDIO bus name.
  dnet: use an unique MDIO bus name.
  fec: use an unique MDIO bus name.
  lantiq_etop: use an unique MDIO bus name.
  mv643xx-eth: use an unique MDIO bus name.
  pxa168-eth: use an unique MDIO bus name.
  sh-eth: use an unique MDIO bus name.
  s6gmac: use an unique MDIO bus name.
  smsc911x: use an unique MDIO bus name.
  stmmac: use an unique MDIO bus name.
  cpmac: use an unique MDIO bus name.
  davinci_emac: use an unique MDIO bus name.
  ixp4xx-eth: use an unique MDIO bus name.
  bcm63xx_enet: use an unique MDIO bus name.
  phy/fixed: use an unique MDIO bus name.
  mdio-gpio: use an unique MDIO bus name.
  mdio-octeon: use an unique MDIO bus name.

 drivers/net/ethernet/8390/ax88796.c               |    3 ++-
 drivers/net/ethernet/adi/bfin_mac.c               |    3 ++-
 drivers/net/ethernet/amd/au1000_eth.c             |    3 ++-
 drivers/net/ethernet/broadcom/bcm63xx_enet.c      |    2 +-
 drivers/net/ethernet/broadcom/sb1250-mac.c        |    3 ++-
 drivers/net/ethernet/cadence/macb.c               |    3 ++-
 drivers/net/ethernet/dnet.c                       |    3 ++-
 drivers/net/ethernet/freescale/fec.c              |    3 ++-
 drivers/net/ethernet/lantiq_etop.c                |    5 ++++-
 drivers/net/ethernet/marvell/mv643xx_eth.c        |    3 ++-
 drivers/net/ethernet/marvell/pxa168_eth.c         |    3 ++-
 drivers/net/ethernet/renesas/sh_eth.c             |    3 ++-
 drivers/net/ethernet/s6gmac.c                     |    2 +-
 drivers/net/ethernet/smsc/smsc911x.c              |    3 ++-
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c |    2 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c |    3 ++-
 drivers/net/ethernet/ti/cpmac.c                   |    2 +-
 drivers/net/ethernet/ti/davinci_mdio.c            |    3 ++-
 drivers/net/ethernet/xscale/ixp4xx_eth.c          |    2 +-
 drivers/net/phy/fixed.c                           |    2 +-
 drivers/net/phy/mdio-gpio.c                       |    2 +-
 drivers/net/phy/mdio-octeon.c                     |    3 ++-
 22 files changed, 39 insertions(+), 22 deletions(-)

-- 
1.7.5.4

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

end of thread, other threads:[~2012-01-11 14:47 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-10  9:59 [PATCH 00/21] NET: use unique MDIO bus names Florian Fainelli
2012-01-10  9:59 ` [PATCH 01/21] ax88796: use an unique MDIO bus name 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 ` [PATCH 08/21] lantiq_etop: " Florian Fainelli
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
2012-01-11  0:35 ` [PATCH 00/21] NET: use unique MDIO bus names 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).