Message ID | 20201208092912.1773650-5-mathias.nyman@linux.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 5a8e3229ac27956bdcc25b2709e5d196d109a27a |
Headers | show |
Series | xhci features for usb-next | expand |
On Tue, Dec 08, 2020 at 11:29:11AM +0200, Mathias Nyman wrote: > From: Mika Westerberg <mika.westerberg@linux.intel.com> > > Intel Maple Ridge is successor of Titan Ridge Thunderbolt controller. As > Titan Ridge this one also includes xHCI host controller. In order to > safe energy we should put it to low power state by default when idle. > For this reason allow host runtime PM for Maple Ridge. > > Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> > Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> > --- > drivers/usb/host/xhci-pci.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Should this be backported to stable kernels too? thanks, greg k-h
On 8.12.2020 11.39, Greg KH wrote: > On Tue, Dec 08, 2020 at 11:29:11AM +0200, Mathias Nyman wrote: >> From: Mika Westerberg <mika.westerberg@linux.intel.com> >> >> Intel Maple Ridge is successor of Titan Ridge Thunderbolt controller. As >> Titan Ridge this one also includes xHCI host controller. In order to >> safe energy we should put it to low power state by default when idle. >> For this reason allow host runtime PM for Maple Ridge. >> >> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> >> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> >> --- >> drivers/usb/host/xhci-pci.c | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) > > Should this be backported to stable kernels too? I guess that wouldn't hurt. Hardware is fresh but distros probably base their releases on older stable kernels. This would enable xhci runtime pm as default on those as well Thanks Mathias
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index 5f94d7edeb37..84da8406d5b4 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -56,6 +56,7 @@ #define PCI_DEVICE_ID_INTEL_ICE_LAKE_XHCI 0x8a13 #define PCI_DEVICE_ID_INTEL_CML_XHCI 0xa3af #define PCI_DEVICE_ID_INTEL_TIGER_LAKE_XHCI 0x9a13 +#define PCI_DEVICE_ID_INTEL_MAPLE_RIDGE_XHCI 0x1138 #define PCI_DEVICE_ID_AMD_PROMONTORYA_4 0x43b9 #define PCI_DEVICE_ID_AMD_PROMONTORYA_3 0x43ba @@ -240,7 +241,8 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) pdev->device == PCI_DEVICE_ID_INTEL_TITAN_RIDGE_4C_XHCI || pdev->device == PCI_DEVICE_ID_INTEL_TITAN_RIDGE_DD_XHCI || pdev->device == PCI_DEVICE_ID_INTEL_ICE_LAKE_XHCI || - pdev->device == PCI_DEVICE_ID_INTEL_TIGER_LAKE_XHCI)) + pdev->device == PCI_DEVICE_ID_INTEL_TIGER_LAKE_XHCI || + pdev->device == PCI_DEVICE_ID_INTEL_MAPLE_RIDGE_XHCI)) xhci->quirks |= XHCI_DEFAULT_PM_RUNTIME_ALLOW; if (pdev->vendor == PCI_VENDOR_ID_ETRON &&