original_kernel/drivers/base/power
Strashko, Grygorii 16669befb0 PM / wakeirq: fix wakeirq setting after wakup re-configuration from sysfs
Now wakeirq stops working for device if wakeup option for
this device will be reconfigured through sysfs, like:

echo disabled > /sys/devices/platform/extcon_usb1/power/wakeup
echo enabled > /sys/devices/platform/extcon_usb1/power/wakeup

Once above set of commands is executed the device's wakeup_source
opject will be recreated and dev->power.wakeup->wakeirq field will
contain NULL. As result, device_wakeup_arm_wake_irqs() will not arm
wakeirq for the affected device.

Hece, lets try to fix it in the following way:
  check for dev->wakeirq field when device_wakeup_attach() is called
  and if !NULL re-attach wakeirq to the device

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2016-04-07 22:23:47 +02:00
..
opp PM / OPP: Rename structures for clarity 2016-02-21 14:24:35 +01:00
Makefile
clock_ops.c PM / clk: Add support for obtaining clocks from device-tree 2016-03-17 02:32:04 +01:00
common.c PM: Avoid false-positive warnings in dev_pm_domain_set() 2016-02-03 19:10:37 +01:00
domain.c PM / Domains: Fix potential NULL pointer dereference 2016-03-09 00:41:07 +01:00
domain_governor.c PM / Domains: Support for multiple states 2016-02-15 23:18:15 +01:00
generic_ops.c
main.c
power.h
qos.c
runtime.c
sysfs.c
trace.c PM / sleep: declare __tracedata symbols as char[] rather than char 2016-02-11 11:07:08 +01:00
wakeirq.c
wakeup.c PM / wakeirq: fix wakeirq setting after wakup re-configuration from sysfs 2016-04-07 22:23:47 +02:00