]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: Allow stmmac to work with other PHY buses(v3).
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>
Wed, 4 Apr 2012 04:33:19 +0000 (04:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Apr 2012 22:39:23 +0000 (18:39 -0400)
commite73122214132a5dbb21c34164c5948a26db264e1
tree775c36dd86492fdc69f5b6f72bf56ef0d226df65
parent9046e64e8565af31d2bbd34adec4b78640920a62
stmmac: Allow stmmac to work with other PHY buses(v3).

As stmmac mdio bus name prefix is hardcoded in the driver, this allows
only phys on stmmac mdio buses to connect, however stmmac should allow
phys on other mdio buses too.

This patch adds new variable phy_bus_name to plat_stmmacenet_data
struct to let the BSP decide which phy bus to be used by stmmac driver.
A typical use-case is to have generic MDIO buses like mdio-gpio on top
of stmmac.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
include/linux/stmmac.h