aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2021-05-21 15:13:11 +0200
committerRafael J. Wysocki <[email protected]>2021-05-24 16:08:17 +0200
commit9b7ff25d129df7c4f61e08382993e1988d56f6a7 (patch)
tree975215d0b87f8e97b9ba6b245ba95ee9fac9ed65 /drivers/usb/cdns3/cdns3-debug.h
parentc4681547bcce777daf576925a966ffa824edd09d (diff)
ACPI: power: Refine turning off unused power resources
Commit 7e4fdeafa61f ("ACPI: power: Turn off unused power resources unconditionally") dropped the power resource state check from acpi_turn_off_unused_power_resources(), because according to the ACPI specification (e.g. ACPI 6.4, Section 7.2.2) the OS "may run the _OFF method repeatedly, even if the resource is already off". However, it turns out that some systems do not follow the specification in this particular respect and that commit introduced boot issues on them, so refine acpi_turn_off_unused_power_resources() to only turn off power resources without any users after device enumeration and restore its previous behavior in the system-wide resume path. Fixes: 7e4fdeafa61f ("ACPI: power: Turn off unused power resources unconditionally") Link: https://uefi.org/specs/ACPI/6.4/07_Power_and_Performance_Mgmt/declaring-a-power-resource-object.html#off BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=213019 Reported-by: Zhang Rui <[email protected]> Tested-by: Zhang Rui <[email protected]> Reported-by: Dave Olsthoorn <[email protected]> Tested-by: Dave Olsthoorn <[email protected]> Reported-by: Shujun Wang <[email protected]> Tested-by: Shujun Wang <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions