aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/mdio_device.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2020-06-26 17:53:24 +0200
committerDavid S. Miller <davem@davemloft.net>2020-06-26 13:40:09 -0700
commit1dba6995731e1c1a8ea167aea74c0a917b437e6c (patch)
treea8bb711b72bc12da3f4b22f3a86e502c20209b1a /drivers/net/phy/mdio_device.c
parentnet: mdio: add a forward declaration for reset_control to mdio.h (diff)
downloadlinux-dev-1dba6995731e1c1a8ea167aea74c0a917b437e6c.tar.xz
linux-dev-1dba6995731e1c1a8ea167aea74c0a917b437e6c.zip
net: phy: reset the PHY even if probe() is not implemented
Currently we only call phy_device_reset() if the PHY driver implements the probe() callback. This is not mandatory and many drivers (e.g. realtek) don't need probe() for most devices but still can have reset GPIOs defined. There's no reason to depend on the presence of probe() here so pull the reset code out of the if clause. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/mdio_device.c')
0 files changed, 0 insertions, 0 deletions