linux-stable/drivers/base/power
Ulf Hansson dc351d4c5f PM / core: Propagate dev->power.wakeup_path when no callbacks
The dev->power.direct_complete flag may become set in device_prepare() in
case the device don't have any PM callbacks (dev->power.no_pm_callbacks is
set). This leads to a broken behaviour, when there is child having wakeup
enabled and relies on its parent to be used in the wakeup path.

More precisely, when the direct complete path becomes selected for the
child in __device_suspend(), the propagation of the dev->power.wakeup_path
becomes skipped as well.

Let's address this problem, by checking if the device is a part the wakeup
path or has wakeup enabled, then prevent the direct complete path from
being used.

Reported-by: Loic Pallardy <loic.pallardy@st.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
[ rjw: Comment cleanup ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2019-04-12 11:03:53 +02:00
..
clock_ops.c PM: clock_ops: fix missing clk_prepare() return value check 2019-01-18 11:47:07 +01:00
common.c PM / Domains: Mark "name" const in dev_pm_domain_attach_by_name() 2019-02-15 11:36:38 +01:00
domain.c PM / Domains: Avoid a potential deadlock 2019-03-19 22:58:04 +01:00
domain_governor.c PM / domains: Remove one unnecessary blank line 2019-03-11 11:26:45 +01:00
generic_ops.c PM / sleep: Remove pm_complete_with_resume_check() 2017-10-11 15:40:29 +02:00
main.c PM / core: Propagate dev->power.wakeup_path when no callbacks 2019-04-12 11:03:53 +02:00
Makefile Merge branches 'pm-cpufreq-sched' and 'pm-opp' 2017-11-13 01:40:52 +01:00
power.h PM-runtime: Consolidate code to get active/suspended time 2019-03-07 11:23:17 +01:00
qos.c PM / QoS: Fix typo in file description 2019-03-11 10:35:53 +01:00
runtime.c Additional power management updates for 5.1-rc1 2019-03-14 10:30:06 -07:00
sysfs.c PM-runtime: Call pm_runtime_active|suspended_time() from sysfs 2019-03-07 11:23:17 +01:00
trace.c PM: Add and use pr_fmt() 2019-03-07 11:02:02 +01:00
wakeirq.c PM / wakeirq: Add wakeup name to dedicated wake irqs 2018-02-26 23:23:37 +01:00
wakeup.c PM / wakeup: Use pm_pr_dbg() instead of pr_debug() 2019-04-01 23:54:47 +02:00