Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit 6c1c156

Browse files
icklejnikula
authored andcommitted
HAX net/phy: Suppress WARN for calling stop while halted
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2805 Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent f96d0b4 commit 6c1c156

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/net/phy/phy.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,11 +1034,8 @@ void phy_stop(struct phy_device *phydev)
10341034
{
10351035
struct net_device *dev = phydev->attached_dev;
10361036

1037-
if (!phy_is_started(phydev) && phydev->state != PHY_DOWN) {
1038-
WARN(1, "called from state %s\n",
1039-
phy_state_to_str(phydev->state));
1037+
if (!phy_is_started(phydev) && phydev->state != PHY_DOWN)
10401038
return;
1041-
}
10421039

10431040
mutex_lock(&phydev->lock);
10441041

0 commit comments

Comments
 (0)