Commit 9c02ea5
net: sh_eth: Disable WoL if system can not suspend
The MAC can't facilitate WoL if the system can't go to sleep. Gate the
WoL support callbacks in ethtool at compile time using CONFIG_PM_SLEEP.
Signed-off-by: Niklas Söderlund <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 38611e5 commit 9c02ea5
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2360 | 2360 | | |
2361 | 2361 | | |
2362 | 2362 | | |
| 2363 | + | |
2363 | 2364 | | |
2364 | 2365 | | |
2365 | 2366 | | |
| |||
2386 | 2387 | | |
2387 | 2388 | | |
2388 | 2389 | | |
| 2390 | + | |
2389 | 2391 | | |
2390 | 2392 | | |
2391 | 2393 | | |
| |||
2401 | 2403 | | |
2402 | 2404 | | |
2403 | 2405 | | |
| 2406 | + | |
2404 | 2407 | | |
2405 | 2408 | | |
| 2409 | + | |
2406 | 2410 | | |
2407 | 2411 | | |
2408 | 2412 | | |
| |||
0 commit comments