Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: xhci: plat: Facilitate using autosuspend for xhci plat devices

Allow autosuspend to be used by xhci plat device. For Qualcomm SoCs,
when in host mode, it is intended that the controller goes to suspend
state to save power and wait for interrupts from connected peripheral
to wake it up. This is particularly used in cases where a HID or Audio
device is connected. In such scenarios, the usb controller can enter
auto suspend and resume action after getting interrupts from the
connected device.

Signed-off-by: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250916120436.3617598-1-krishna.kurapati@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Krishna Kurapati and committed by
Greg Kroah-Hartman
41cf1194 90422219

+1
+1
drivers/usb/host/xhci-plat.c
··· 172 172 return ret; 173 173 174 174 pm_runtime_set_active(&pdev->dev); 175 + pm_runtime_use_autosuspend(&pdev->dev); 175 176 pm_runtime_enable(&pdev->dev); 176 177 pm_runtime_get_noresume(&pdev->dev); 177 178