2021-12-15 09:32:54

by Shah, Nehal-bakulchandra

[permalink] [raw]
Subject: [PATCH] usb: xhci: Extend support for runtime power management for AMD's Yellow carp.

AMD's Yellow Carp platform has few more XHCI controllers,
enable the runtime power management support for the same.

Signed-off-by: Nehal Bakulchandra Shah <[email protected]>
---
drivers/usb/host/xhci-pci.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index 92adf6107864..3af017883231 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -71,6 +71,8 @@
#define PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_4 0x161e
#define PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_5 0x15d6
#define PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_6 0x15d7
+#define PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_7 0x161c
+#define PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_8 0x161f

#define PCI_DEVICE_ID_ASMEDIA_1042_XHCI 0x1042
#define PCI_DEVICE_ID_ASMEDIA_1042A_XHCI 0x1142
@@ -330,7 +332,9 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
pdev->device == PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_3 ||
pdev->device == PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_4 ||
pdev->device == PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_5 ||
- pdev->device == PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_6))
+ pdev->device == PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_6 ||
+ pdev->device == PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_7 ||
+ pdev->device == PCI_DEVICE_ID_AMD_YELLOW_CARP_XHCI_8))
xhci->quirks |= XHCI_DEFAULT_PM_RUNTIME_ALLOW;

if (xhci->quirks & XHCI_RESET_ON_RESUME)
--
2.25.1



2021-12-15 22:38:36

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH] usb: xhci: Extend support for runtime power management for AMD's Yellow carp.

On Wed, Dec 15, 2021 at 03:02:16PM +0530, Nehal Bakulchandra Shah wrote:
> AMD's Yellow Carp platform has few more XHCI controllers,
> enable the runtime power management support for the same.
>
> Signed-off-by: Nehal Bakulchandra Shah <[email protected]>
> ---
> drivers/usb/host/xhci-pci.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)

Mathias, I can take this now, no need to add it to your queue.

thanks,

greg k-h

2021-12-16 04:32:26

by Shah, Nehal-bakulchandra

[permalink] [raw]
Subject: Re: [PATCH] usb: xhci: Extend support for runtime power management for AMD's Yellow carp.

Hi Greg
On 12/16/2021 4:08 AM, Greg KH wrote:
> On Wed, Dec 15, 2021 at 03:02:16PM +0530, Nehal Bakulchandra Shah wrote:
>> AMD's Yellow Carp platform has few more XHCI controllers,
>> enable the runtime power management support for the same.
>>
>> Signed-off-by: Nehal Bakulchandra Shah <[email protected]>
>> ---
>> drivers/usb/host/xhci-pci.c | 6 +++++-
>> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> Mathias, I can take this now, no need to add it to your queue.
>
> thanks,
>
> greg k-h
>

Thanks
Nehal