Skip to content

Commit 3f9ee7d

Browse files
Ulf Hanssonrafaeljw
authored andcommitted
PM: domains: Don't check PM_QOS_FLAG_NO_POWER_OFF in genpd
Back in the days when genpd supported intermediate power states of its devices, it made sense to check the PM_QOS_FLAG_NO_POWER_OFF in genpd_power_off(). This because the attached devices were all being put into low power state together when the PM domain was also being powered off. At this point, the flag PM_QOS_FLAG_NO_POWER_OFF is better checked by drivers from their ->runtime_suspend() callbacks, like in the usb_port_runtime_suspend(), for example. Or perhaps an even better option is to set the QoS resume latency constraint for the device to zero, which informs the runtime PM core to prevent the device from being runtime suspended. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent fabb1c2 commit 3f9ee7d

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/base/power/domain.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -648,12 +648,6 @@ static int genpd_power_off(struct generic_pm_domain *genpd, bool one_dev_on,
648648
}
649649

650650
list_for_each_entry(pdd, &genpd->dev_list, list_node) {
651-
enum pm_qos_flags_status stat;
652-
653-
stat = dev_pm_qos_flags(pdd->dev, PM_QOS_FLAG_NO_POWER_OFF);
654-
if (stat > PM_QOS_FLAGS_NONE)
655-
return -EBUSY;
656-
657651
/*
658652
* Do not allow PM domain to be powered off, when an IRQ safe
659653
* device is part of a non-IRQ safe domain.

0 commit comments

Comments
 (0)