kernel_optimize_test/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
at803x.c phy: add AT803x driver 2012-10-18 15:34:30 -04:00
bcm63xx.c
bcm87xx.c
broadcom.c
cicada.c
davicom.c
dp83640_reg.h
dp83640.c
et1011c.c
fixed.c
icplus.c
Kconfig phy: add AT803x driver 2012-10-18 15:34:30 -04:00
lxt.c
Makefile phy: add AT803x driver 2012-10-18 15:34:30 -04:00
marvell.c
mdio_bus.c
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
mdio-mux-mmioreg.c
mdio-mux.c
mdio-octeon.c
micrel.c
national.c
phy_device.c
phy.c
qsemi.c
realtek.c
smsc.c
spi_ks8995.c
ste10Xp.c
vitesse.c