kernel-ark/drivers/net/phy
Srinivas Kandagatla 3272dd9b0f of/net/mdio-gpio: Fix pdev->id issue when using devicetrees.
When the mdio-gpio driver is probed via device trees, the platform
device id is set as -1, However the pdev->id is re-used as bus-id for
while creating mdio gpio bus.
So
For device tree case the mdio-gpio bus name appears as "gpio-ffffffff"
where as
for non-device tree case the bus name appears as "gpio-<bus-num>"

Which means the bus_id is fixed in device tree case, so we can't have
two mdio gpio buses via device trees. Assigning a logical bus number
via device tree solves the problem and the bus name is much consistent
with non-device tree bus name.

Without this patch
1. we can't support two mdio-gpio buses via device trees.
2. we should always pass gpio-ffffffff as bus name to phy_connect, very
different to non-device tree bus name.

So, setting up the bus_id via aliases from device tree is the right
solution and other drivers do similar thing.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-11-19 18:57:07 -05:00
..
amd.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
at803x.c phy: add AT803x driver 2012-10-18 15:34:30 -04:00
bcm63xx.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
bcm87xx.c net/phy/bcm87xx: Add MODULE_LICENSE("GPL") to GPL driver 2012-09-22 15:33:46 -04:00
broadcom.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
cicada.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
davicom.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
dp83640_reg.h ptp: Added a clock driver for the National Semiconductor PHYTER. 2011-05-23 13:10:23 -07:00
dp83640.c ptp: link the phc device to its parent device 2012-09-22 15:42:38 -04:00
et1011c.c net/phy: fix many "defined but unused" warnings 2010-10-05 00:34:29 -07:00
fixed.c phy: Use pr_<level> 2012-06-11 16:58:24 -07:00
icplus.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
Kconfig phy: add AT803x driver 2012-10-18 15:34:30 -04:00
lxt.c lxt PHY: Support for the buggy LXT973 rev A2 2012-09-27 17:58:06 -04:00
Makefile phy: add AT803x driver 2012-10-18 15:34:30 -04:00
marvell.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
mdio_bus.c netdev/phy: Prototype of_mdio_find_bus() 2012-10-09 13:54:59 -04:00
mdio-bitbang.c Revert "drivers/net/phy/mdio-bitbang.c: Call mdiobus_unregister before mdiobus_free" 2012-11-14 22:32:15 -05:00
mdio-gpio.c of/net/mdio-gpio: Fix pdev->id issue when using devicetrees. 2012-11-19 18:57:07 -05:00
mdio-mux-gpio.c drivers/net/phy/mdio-mux-gpio.c: drop devm_kfree of devm_kzalloc'd data 2012-08-06 13:24:27 -07:00
mdio-mux-mmioreg.c netdev/phy: mdio-mux-mmioreg.c should include of_address.h 2012-09-07 17:32:25 -04:00
mdio-mux.c netdev/phy: skip disabled mdio-mux nodes 2012-08-20 02:16:00 -07:00
mdio-octeon.c netdev: mdio-octeon.c: Convert to use device tree. 2012-07-23 13:54:53 +01:00
micrel.c phy/micrel: Rename KS80xx to KSZ80xx 2012-09-24 15:54:33 -04:00
national.c phy: Use pr_<level> 2012-06-11 16:58:24 -07:00
phy_device.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
phy.c mdio: translation of MMD EEE registers to/from ethtool settings 2012-08-22 22:58:27 -07:00
qsemi.c net/phy: fix many "defined but unused" warnings 2010-10-05 00:34:29 -07:00
realtek.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
smsc.c net: phy: smsc: Implement PHY config_init for LAN87xx 2012-09-27 18:28:30 -04:00
spi_ks8995.c phy: Use pr_<level> 2012-06-11 16:58:24 -07:00
ste10Xp.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00
vitesse.c phylib: Support registering a bunch of drivers 2012-07-09 00:10:56 -07:00