Commit 6f0e4060 authored by Mathias Nyman's avatar Mathias Nyman Committed by sanglipeng
Browse files

usb: acpi: add helper to check port lpm capability using acpi _DSM

stable inclusion
from stable-v5.10.165
commit 2551f8cbf2deb588b3b143d5f3399f1fa61fc408
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7T7G4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2551f8cbf2deb588b3b143d5f3399f1fa61fc408

--------------------------------

commit cd702d18 upstream.

Add a helper to evaluate ACPI usb device specific method (_DSM) provided
in case the USB3 port shouldn't enter U1 and U2 link states.

This _DSM was added as port specific retimer configuration may lead to
exit latencies growing beyond U1/U2 exit limits, and OS needs a way to
find which ports can't support U1/U2 link power management states.

This _DSM is also used by windows:
Link: https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/usb-device-specific-method---dsm-



Some patch issues found in testing resolved by Ron Lee

Cc: stable@vger.kernel.org
Tested-by: default avatarRon Lee <ron.lee@intel.com>
Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20230116142216.1141605-7-mathias.nyman@linux.intel.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 522d010d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment