This is a note to let you know that I've just added the patch titled xhci: Enable RPM on controllers that support low-power states to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: xhci-enable-rpm-on-controllers-that-support-low-power-states.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From a5d6264b638efeca35eff72177fd28d149e0764b Mon Sep 17 00:00:00 2001 From: Basavaraj Natikar <Basavaraj.Natikar@xxxxxxx> Date: Thu, 19 Oct 2023 13:29:20 +0300 Subject: xhci: Enable RPM on controllers that support low-power states From: Basavaraj Natikar <Basavaraj.Natikar@xxxxxxx> commit a5d6264b638efeca35eff72177fd28d149e0764b upstream. Use the low-power states of the underlying platform to enable runtime PM. If the platform doesn't support runtime D3, then enabling default RPM will result in the controller malfunctioning, as in the case of hotplug devices not being detected because of a failed interrupt generation. Cc: Mario Limonciello <mario.limonciello@xxxxxxx> Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@xxxxxxx> Signed-off-by: Mathias Nyman <mathias.nyman@xxxxxxxxxxxxxxx> Link: https://lore.kernel.org/r/20231019102924.2797346-16-mathias.nyman@xxxxxxxxxxxxxxx Cc: Oleksandr Natalenko <oleksandr@xxxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/usb/host/xhci-pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -508,7 +508,9 @@ static int xhci_pci_probe(struct pci_dev /* USB-2 and USB-3 roothubs initialized, allow runtime pm suspend */ pm_runtime_put_noidle(&dev->dev); - if (xhci->quirks & XHCI_DEFAULT_PM_RUNTIME_ALLOW) + if (pci_choose_state(dev, PMSG_SUSPEND) == PCI_D0) + pm_runtime_forbid(&dev->dev); + else if (xhci->quirks & XHCI_DEFAULT_PM_RUNTIME_ALLOW) pm_runtime_allow(&dev->dev); dma_set_max_seg_size(&dev->dev, UINT_MAX); Patches currently in stable-queue which might be from Basavaraj.Natikar@xxxxxxx are queue-6.1/xhci-enable-rpm-on-controllers-that-support-low-power-states.patch