summaryrefslogtreecommitdiff
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-08-02 01:32:44 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-08-08 17:11:48 +0200
commit820b9b0c093ebd40c4b8e44c0e84613c877f4948 (patch)
treeeb8522137c8a0734d9bed7c87bcfc4961c06ac08 /drivers/irqchip
parentaae4e7a8bc44722fe70d58920a36916b1043195e (diff)
PM / wakeup: Set power.can_wakeup if wakeup_sysfs_add() fails
Currently, an error from wakeup_sysfs_add() in device_set_wakeup_capable() causes the device's power.can_wakeup flag to remain unset even though the device technically is capable of signaling wakeup. If wakeup_sysfs_add() fails user space may not be able to enable the device to wake up the system from sleep states, but at least for some devices that does not matter. For this reason, set or clear power.can_wakeup upfront and if wakeup_sysfs_add() returns an error, print a message to the log. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/irqchip')
0 files changed, 0 insertions, 0 deletions