summaryrefslogtreecommitdiff
path: root/include/linux/mdio-gpio.h
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>2011-11-15 15:54:15 +0400
committerDavid S. Miller <davem@davemloft.net>2011-11-16 01:56:17 +0400
commit64882709ef07f3eae29c7afc5aa8b84d12733a72 (patch)
treee5504eef06ec6841b429f47e4b4cddf52d9fe5fa /include/linux/mdio-gpio.h
parent229a66e3bec97563aa92e25dfe0bc60b0d468619 (diff)
downloadlinux-64882709ef07f3eae29c7afc5aa8b84d12733a72.tar.xz
mdio-gpio: Add reset functionality to mdio-gpio driver(v2).
This patch adds phy reset functionality to mdio-gpio driver. Now mdio_gpio_platform_data has new member as function pointer which can be filled at the bsp level for a callback from phy infrastructure. Also the mdio-bitbang driver fills-in the reset function of mii_bus structure. Without this patch the bsp level code has to takecare of the reseting PHY's on the bus, which become bit hacky for every bsp and phy-infrastructure is ignored aswell. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mdio-gpio.h')
-rw-r--r--include/linux/mdio-gpio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mdio-gpio.h b/include/linux/mdio-gpio.h
index e9d3fdfe41d7..7c9fe3c2be73 100644
--- a/include/linux/mdio-gpio.h
+++ b/include/linux/mdio-gpio.h
@@ -20,6 +20,8 @@ struct mdio_gpio_platform_data {
unsigned int phy_mask;
int irqs[PHY_MAX_ADDR];
+ /* reset callback */
+ int (*reset)(struct mii_bus *bus);
};
#endif /* __LINUX_MDIO_GPIO_H */