Commit dbbec8c
net: stmmac: fix stm32 (and potentially others) resume regression
Marek reported that suspending stm32 causes the following errors when
the interface is administratively down:
$ echo devices > /sys/power/pm_test
$ echo mem > /sys/power/state
...
ck_ker_eth2stp already disabled
...
ck_ker_eth2stp already unprepared
...
On suspend, stm32 starts the eth2stp clock in its suspend method, and
stops it in the resume method. This is because the blamed commit omits
the call to the platform glue ->suspend() method, but does make the
call to the platform glue ->resume() method.
This problem affects all other converted drivers as well - e.g. looking
at the PCIe drivers, pci_save_state() will not be called, but
pci_restore_state() will be. Similar issues affect all other drivers.
Fix this by always calling the ->suspend() method, even when the network
interface is down. This fixes all the conversions to the platform glue
->suspend() and ->resume() methods.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 07bbbfe ("net: stmmac: add suspend()/resume() platform ops")
Reported-by: Marek Vasut <[email protected]>
Tested-by: Marek Vasut <[email protected]>
Signed-off-by: Russell King (Oracle) <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 1c172fe commit dbbec8c
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8042 | 8042 | | |
8043 | 8043 | | |
8044 | 8044 | | |
8045 | | - | |
| 8045 | + | |
8046 | 8046 | | |
8047 | 8047 | | |
8048 | 8048 | | |
| |||
8082 | 8082 | | |
8083 | 8083 | | |
8084 | 8084 | | |
| 8085 | + | |
8085 | 8086 | | |
8086 | 8087 | | |
8087 | 8088 | | |
| |||
0 commit comments