diff options
Diffstat (limited to 'drivers/net/phy/mdio-bitbang.c')
-rw-r--r-- | drivers/net/phy/mdio-bitbang.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/phy/mdio-bitbang.c b/drivers/net/phy/mdio-bitbang.c index 65391891d8c4..daec9b05d168 100644 --- a/drivers/net/phy/mdio-bitbang.c +++ b/drivers/net/phy/mdio-bitbang.c | |||
@@ -202,6 +202,14 @@ static int mdiobb_write(struct mii_bus *bus, int phy, int reg, u16 val) | |||
202 | return 0; | 202 | return 0; |
203 | } | 203 | } |
204 | 204 | ||
205 | static int mdiobb_reset(struct mii_bus *bus) | ||
206 | { | ||
207 | struct mdiobb_ctrl *ctrl = bus->priv; | ||
208 | if (ctrl->reset) | ||
209 | ctrl->reset(bus); | ||
210 | return 0; | ||
211 | } | ||
212 | |||
205 | struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *ctrl) | 213 | struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *ctrl) |
206 | { | 214 | { |
207 | struct mii_bus *bus; | 215 | struct mii_bus *bus; |
@@ -214,6 +222,7 @@ struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *ctrl) | |||
214 | 222 | ||
215 | bus->read = mdiobb_read; | 223 | bus->read = mdiobb_read; |
216 | bus->write = mdiobb_write; | 224 | bus->write = mdiobb_write; |
225 | bus->reset = mdiobb_reset; | ||
217 | bus->priv = ctrl; | 226 | bus->priv = ctrl; |
218 | 227 | ||
219 | return bus; | 228 | return bus; |