LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] xhci: Fix USB ports for Dell Inspiron 5775
@ 2018-03-18 15:11 Kai-Heng Feng
2018-04-10 4:56 ` Kai Heng Feng
0 siblings, 1 reply; 3+ messages in thread
From: Kai-Heng Feng @ 2018-03-18 15:11 UTC (permalink / raw)
To: mathias.nyman; +Cc: gregkh, linux-usb, linux-kernel, Kai-Heng Feng, stable
The Dell Inspiron 5775 is a Raven Ridge. The Enable Slot command timed
out when a USB device gets plugged:
[ 212.156326] xhci_hcd 0000:03:00.3: Error while assigning device slot ID
[ 212.156340] xhci_hcd 0000:03:00.3: Max number of devices this xHCI host supports is 64.
[ 212.156348] usb usb2-port3: couldn't allocate usb_device
AMD suggests that a delay before xHC suspends can fix the issue.
I can confirm it fixes the issue, so use the suspend delay quirk for
Raven Ridge's xHC.
Cc: stable@vger.kernel.org
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
---
drivers/usb/host/xhci-pci.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index d9f831b67e57..93ce34bce7b5 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -126,7 +126,10 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
if (pdev->vendor == PCI_VENDOR_ID_AMD && usb_amd_find_chipset_info())
xhci->quirks |= XHCI_AMD_PLL_FIX;
- if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x43bb)
+ if (pdev->vendor == PCI_VENDOR_ID_AMD &&
+ (pdev->device == 0x15e0 ||
+ pdev->device == 0x15e1 ||
+ pdev->device == 0x43bb))
xhci->quirks |= XHCI_SUSPEND_DELAY;
if (pdev->vendor == PCI_VENDOR_ID_AMD)
--
2.15.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] xhci: Fix USB ports for Dell Inspiron 5775
2018-03-18 15:11 [PATCH] xhci: Fix USB ports for Dell Inspiron 5775 Kai-Heng Feng
@ 2018-04-10 4:56 ` Kai Heng Feng
2018-04-10 7:46 ` Mathias Nyman
0 siblings, 1 reply; 3+ messages in thread
From: Kai Heng Feng @ 2018-04-10 4:56 UTC (permalink / raw)
To: mathias.nyman
Cc: Greg KH, Linux USB Mailing List, Linux Kernel Mailing List, stable
Hi Matthias,
> On Mar 18, 2018, at 11:11 PM, Kai-Heng Feng <kai.heng.feng@canonical.com>
> wrote:
>
> The Dell Inspiron 5775 is a Raven Ridge. The Enable Slot command timed
> out when a USB device gets plugged:
> [ 212.156326] xhci_hcd 0000:03:00.3: Error while assigning device slot ID
> [ 212.156340] xhci_hcd 0000:03:00.3: Max number of devices this xHCI host
> supports is 64.
> [ 212.156348] usb usb2-port3: couldn't allocate usb_device
>
> AMD suggests that a delay before xHC suspends can fix the issue.
>
> I can confirm it fixes the issue, so use the suspend delay quirk for
> Raven Ridge's xHC.
I am hoping this patch can get merged in v4.17...
Thanks,
Kai-Heng
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
> ---
> drivers/usb/host/xhci-pci.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
> index d9f831b67e57..93ce34bce7b5 100644
> --- a/drivers/usb/host/xhci-pci.c
> +++ b/drivers/usb/host/xhci-pci.c
> @@ -126,7 +126,10 @@ static void xhci_pci_quirks(struct device *dev,
> struct xhci_hcd *xhci)
> if (pdev->vendor == PCI_VENDOR_ID_AMD && usb_amd_find_chipset_info())
> xhci->quirks |= XHCI_AMD_PLL_FIX;
>
> - if (pdev->vendor == PCI_VENDOR_ID_AMD && pdev->device == 0x43bb)
> + if (pdev->vendor == PCI_VENDOR_ID_AMD &&
> + (pdev->device == 0x15e0 ||
> + pdev->device == 0x15e1 ||
> + pdev->device == 0x43bb))
> xhci->quirks |= XHCI_SUSPEND_DELAY;
>
> if (pdev->vendor == PCI_VENDOR_ID_AMD)
> --
> 2.15.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] xhci: Fix USB ports for Dell Inspiron 5775
2018-04-10 4:56 ` Kai Heng Feng
@ 2018-04-10 7:46 ` Mathias Nyman
0 siblings, 0 replies; 3+ messages in thread
From: Mathias Nyman @ 2018-04-10 7:46 UTC (permalink / raw)
To: Kai Heng Feng, mathias.nyman
Cc: Greg KH, Linux USB Mailing List, Linux Kernel Mailing List, stable
On 10.04.2018 07:56, Kai Heng Feng wrote:
> Hi Matthias,
>
>> On Mar 18, 2018, at 11:11 PM, Kai-Heng Feng <kai.heng.feng@canonical.com> wrote:
>>
>> The Dell Inspiron 5775 is a Raven Ridge. The Enable Slot command timed
>> out when a USB device gets plugged:
>> [ 212.156326] xhci_hcd 0000:03:00.3: Error while assigning device slot ID
>> [ 212.156340] xhci_hcd 0000:03:00.3: Max number of devices this xHCI host supports is 64.
>> [ 212.156348] usb usb2-port3: couldn't allocate usb_device
>>
>> AMD suggests that a delay before xHC suspends can fix the issue.
>>
>> I can confirm it fixes the issue, so use the suspend delay quirk for
>> Raven Ridge's xHC.
>
> I am hoping this patch can get merged in v4.17...
>
> Thanks,
> Kai-Heng
>
Added to queue, sending after rc1
-Mathias
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-10 7:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-18 15:11 [PATCH] xhci: Fix USB ports for Dell Inspiron 5775 Kai-Heng Feng
2018-04-10 4:56 ` Kai Heng Feng
2018-04-10 7:46 ` Mathias Nyman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).