diff options
-rw-r--r-- | Documentation/power/devices.txt | 4 | ||||
-rw-r--r-- | drivers/base/power/wakeup.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Documentation/power/devices.txt b/Documentation/power/devices.txt index 3384d5996be2..29b7a9817f5a 100644 --- a/Documentation/power/devices.txt +++ b/Documentation/power/devices.txt | |||
@@ -152,7 +152,9 @@ try to use its wakeup mechanism. device_set_wakeup_enable() affects this flag; | |||
152 | for the most part drivers should not change its value. The initial value of | 152 | for the most part drivers should not change its value. The initial value of |
153 | should_wakeup is supposed to be false for the majority of devices; the major | 153 | should_wakeup is supposed to be false for the majority of devices; the major |
154 | exceptions are power buttons, keyboards, and Ethernet adapters whose WoL | 154 | exceptions are power buttons, keyboards, and Ethernet adapters whose WoL |
155 | (wake-on-LAN) feature has been set up with ethtool. | 155 | (wake-on-LAN) feature has been set up with ethtool. It should also default |
156 | to true for devices that don't generate wakeup requests on their own but merely | ||
157 | forward wakeup requests from one bus to another (like PCI bridges). | ||
156 | 158 | ||
157 | Whether or not a device is capable of issuing wakeup events is a hardware | 159 | Whether or not a device is capable of issuing wakeup events is a hardware |
158 | matter, and the kernel is responsible for keeping track of it. By contrast, | 160 | matter, and the kernel is responsible for keeping track of it. By contrast, |
diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c index 84f7c7d5a098..14ee07e9cc43 100644 --- a/drivers/base/power/wakeup.c +++ b/drivers/base/power/wakeup.c | |||
@@ -276,7 +276,9 @@ EXPORT_SYMBOL_GPL(device_set_wakeup_capable); | |||
276 | * | 276 | * |
277 | * By default, most devices should leave wakeup disabled. The exceptions are | 277 | * By default, most devices should leave wakeup disabled. The exceptions are |
278 | * devices that everyone expects to be wakeup sources: keyboards, power buttons, | 278 | * devices that everyone expects to be wakeup sources: keyboards, power buttons, |
279 | * possibly network interfaces, etc. | 279 | * possibly network interfaces, etc. Also, devices that don't generate their |
280 | * own wakeup requests but merely forward requests from one bus to another | ||
281 | * (like PCI bridges) should have wakeup enabled by default. | ||
280 | */ | 282 | */ |
281 | int device_init_wakeup(struct device *dev, bool enable) | 283 | int device_init_wakeup(struct device *dev, bool enable) |
282 | { | 284 | { |