2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-14 08:13:56 +08:00
linux-next/Documentation/devicetree/bindings/net
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
..
can can: c_can: Add device tree support to Bosch C_CAN/D_CAN controller 2012-09-21 23:58:47 +02:00
broadcom-bcm87xx.txt netdev/phy: Add driver for Broadcom BCM87XX 10G Ethernet PHYs 2012-06-27 21:23:25 -07:00
calxeda-xgmac.txt ARM: highbank: add coherent DMA setup 2012-10-02 08:58:07 +02:00
cavium-mdio.txt MIPS: Octeon: Add device tree source files. 2012-07-23 13:54:52 +01:00
cavium-mix.txt MIPS: Octeon: Add device tree source files. 2012-07-23 13:54:52 +01:00
cavium-pip.txt MIPS: Octeon: Add device tree source files. 2012-07-23 13:54:52 +01:00
cpsw.txt Revert "net: ti cpsw ethernet: allow reading phy interface mode from DT" 2012-10-01 17:39:31 -04:00
davinci_emac.txt net: ethernet: davinci_emac: add OF support 2012-07-18 09:40:54 -07:00
davinci-mdio.txt drivers: net: ethernet: davince_mdio: device tree implementation 2012-08-07 16:24:55 -07:00
fsl-fec.txt Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-07-19 11:17:30 -07:00
fsl-tsec-phy.txt ptp: Added a clock that uses the eTSEC found on the MPC85xx. 2011-05-23 13:10:14 -07:00
lpc-eth.txt net: Add device tree support to LPC32xx 2012-04-22 12:01:19 +02:00
macb.txt net/macb: add DT support for Cadence macb/gem driver 2011-12-16 13:11:00 +01:00
mdio-gpio.txt of/net/mdio-gpio: Fix pdev->id issue when using devicetrees. 2012-11-19 18:57:07 -05:00
mdio-mux-gpio.txt netdev/of/phy: Add MDIO bus multiplexer driven by GPIO lines. 2012-05-07 22:58:09 -04:00
mdio-mux-mmioreg.txt netdev/phy: add MDIO bus multiplexer driven by a memory-mapped device 2012-08-30 12:54:48 -04:00
mdio-mux.txt netdev/of/phy: Add MDIO bus multiplexer support. 2012-05-07 22:58:09 -04:00
phy.txt netdev/phy/of: Handle IEEE802.3 clause 45 Ethernet PHYs in of_mdiobus_register() 2012-06-27 21:23:24 -07:00
smsc911x.txt net/smsc911x: add device tree probe support 2011-08-01 18:01:33 -07:00
smsc-lan91c111.txt arm/versatile: Add device tree support 2011-07-28 01:32:04 -06:00
stmmac.txt net: stmmac: Add ip version to dts bindings 2012-07-19 10:48:00 -07:00