Commit 225c657
net: bcmgenet: Restore phy_stop() depending upon suspend/close
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>1 parent df0acdc commit 225c657
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3450 | 3450 | | |
3451 | 3451 | | |
3452 | 3452 | | |
3453 | | - | |
| 3453 | + | |
3454 | 3454 | | |
3455 | 3455 | | |
3456 | 3456 | | |
| |||
3465 | 3465 | | |
3466 | 3466 | | |
3467 | 3467 | | |
| 3468 | + | |
| 3469 | + | |
3468 | 3470 | | |
3469 | 3471 | | |
3470 | 3472 | | |
| |||
3485 | 3487 | | |
3486 | 3488 | | |
3487 | 3489 | | |
3488 | | - | |
| 3490 | + | |
3489 | 3491 | | |
3490 | 3492 | | |
3491 | 3493 | | |
| |||
4303 | 4305 | | |
4304 | 4306 | | |
4305 | 4307 | | |
4306 | | - | |
| 4308 | + | |
4307 | 4309 | | |
4308 | 4310 | | |
4309 | 4311 | | |
| |||
0 commit comments