pmdomain: ti_sci: add wakeup constraint to parent devices of wakeup source
Set wakeup constraint for any device in a wakeup path. All parent devices
of a wakeup device should not be turned off during suspend. This ensures
the wakeup device is kept on while the system is suspended.
Cc: stable@vger.kernel.org
Fixes: 9d8aa0dd3b ("pmdomain: ti_sci: add wakeup constraint management")
Reported-by: Vitor Soares <vitor.soares@toradex.com>
Closes: https://lore.kernel.org/linux-pm/c0fe43a2339c802e9ce5900092cd530a2ba17a6b.camel@gmail.com/
Signed-off-by: Kendall Willis <k-willis@ti.com>
Reviewed-by: Sebin Francis <sebin.francis@ti.com>
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
This commit is contained in:
parent
5d6919055d
commit
4db207599a
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ static inline void ti_sci_pd_set_wkup_constraint(struct device *dev)
|
|||
const struct ti_sci_handle *ti_sci = pd->parent->ti_sci;
|
||||
int ret;
|
||||
|
||||
if (device_may_wakeup(dev)) {
|
||||
if (device_may_wakeup(dev) || device_wakeup_path(dev)) {
|
||||
/*
|
||||
* If device can wakeup using IO daisy chain wakeups,
|
||||
* we do not want to set a constraint.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue