]> git.baikalelectronics.ru Git - kernel.git/commit
mdio-gpio: Add reset functionality to mdio-gpio driver(v2).
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>
Tue, 15 Nov 2011 11:54:15 +0000 (11:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Nov 2011 21:56:17 +0000 (16:56 -0500)
commitf9c48af51f2909bd41520fe4a503a515ca158723
treee5504eef06ec6841b429f47e4b4cddf52d9fe5fa
parent5b04a601fe183ca0f83c8ac66ebdd6904ff86a86
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>
drivers/net/phy/mdio-bitbang.c
drivers/net/phy/mdio-gpio.c
include/linux/mdio-bitbang.h
include/linux/mdio-gpio.h