]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: typec: ucsi: Do not call ACPI _DSM method for UCSI read operations
authorSaranya Gopal <saranya.gopal@intel.com>
Fri, 30 Aug 2024 08:43:42 +0000 (14:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:04:07 +0000 (20:04 +0100)
commitc0ca6fd5f6ebde8fc0df8bb5c32629d1284f60d0
treebded1b7263a4dc58833687787b7d45413563e3e6
parent37065eee084e3b57003c08b304fe357700c96cd5
usb: typec: ucsi: Do not call ACPI _DSM method for UCSI read operations

[ Upstream commit fa48d7e81624efdf398b990a9049e9cd75a5aead ]

ACPI _DSM methods are needed only for UCSI write operations and for reading
CCI during RESET_PPM operation. So, remove _DSM calls from other places.
While there, remove the Zenbook quirk also since the default behavior
now aligns with the Zenbook quirk. With this change, GET_CONNECTOR_STATUS
returns at least 6 seconds faster than before in Arrowlake-S platforms.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Saranya Gopal <saranya.gopal@intel.com>
Reviewed-by: Christian A. Ehrhardt <lk@c--e.de>
Link: https://lore.kernel.org/r/20240830084342.460109-1-saranya.gopal@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/typec/ucsi/ucsi_acpi.c