Commit 36e6c7a
net: bcmgenet: Restore phy_stop() depending upon suspend/close
[ Upstream commit 225c657 ]
Removing the phy_stop() from bcmgenet_netif_stop() ended up causing
warnings from the PHY library that phy_start() is called from the
RUNNING state since we are no longer stopping the PHY state machine
during bcmgenet_suspend().
Restore the call to phy_stop() but make it conditional on being called
from the close or suspend path.
Fixes: c96e731 ("net: bcmgenet: connect and disconnect from the PHY state machine")
Fixes: 93e0401 ("net: bcmgenet: Remove phy_stop() from bcmgenet_netif_stop()")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://lore.kernel.org/r/20230515025608.2587012-1-f.fainelli@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 41357a5 commit 36e6c7a
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3445 | 3445 | | |
3446 | 3446 | | |
3447 | 3447 | | |
3448 | | - | |
| 3448 | + | |
3449 | 3449 | | |
3450 | 3450 | | |
3451 | 3451 | | |
| |||
3460 | 3460 | | |
3461 | 3461 | | |
3462 | 3462 | | |
| 3463 | + | |
| 3464 | + | |
3463 | 3465 | | |
3464 | 3466 | | |
3465 | 3467 | | |
| |||
3480 | 3482 | | |
3481 | 3483 | | |
3482 | 3484 | | |
3483 | | - | |
| 3485 | + | |
3484 | 3486 | | |
3485 | 3487 | | |
3486 | 3488 | | |
| |||
4298 | 4300 | | |
4299 | 4301 | | |
4300 | 4302 | | |
4301 | | - | |
| 4303 | + | |
4302 | 4304 | | |
4303 | 4305 | | |
4304 | 4306 | | |
| |||
0 commit comments