net: phy: make phy_suspend a no-op if PHY is suspended already
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 23 Apr 2020 19:34:33 +0000 (21:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Apr 2020 23:47:51 +0000 (16:47 -0700)
commitd70c47c8dc6902db19555b7ff7e6eeb264d4ac06
treed60aae00e30791e107c81e8089212005ab24658e
parent5c05c1dbb177293636a3f5ea4caa872dfcf50ccd
net: phy: make phy_suspend a no-op if PHY is suspended already

Gently handle the case that phy_suspend() is called whilst PHY is in
power-down.

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