Skip to content

Commit 41cf119

Browse files
Kriskura176767gregkh
authored andcommitted
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>
1 parent 9042221 commit 41cf119

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/usb/host/xhci-plat.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s
172172
return ret;
173173

174174
pm_runtime_set_active(&pdev->dev);
175+
pm_runtime_use_autosuspend(&pdev->dev);
175176
pm_runtime_enable(&pdev->dev);
176177
pm_runtime_get_noresume(&pdev->dev);
177178

0 commit comments

Comments
 (0)