OSDN Git Service

net: phy: stop PHY if needed when entering phy_disconnect
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 17 Jan 2019 19:07:54 +0000 (20:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jan 2019 22:12:25 +0000 (14:12 -0800)
commit472115d9834cd3a194a14269f28d8b146ad26c11
tree0f333172a53af89933dd2e2210d36f3b922a352f
parent340a6f3d2d52a1b72f3454818e53293807f8f127
net: phy: stop PHY if needed when entering phy_disconnect

Stop PHY if needed when entering phy_disconnect. This allows drivers
that don't need a separate call to phy_stop() to omit this call.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c