Message ID | em9fc0c9e0-e371-41cf-9065-1b007b937158@689b6561.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Re[2]: [PATCH v2] fix: add XHCI_SPURIOUS_SUCCESS to ASM1042 despite being a V0.96 controller | expand |
On Sun, Sep 25, 2022 at 10:21:39AM +0000, Jens Glathe wrote: > ... and this is the moment where I append the patch file in hope that this > somehow works. I can't take attachments, sorry. Try using 'git send-email' to get this to work properly. This guide might help you out with that: https://git-send-email.io/ Also look at your subject line and try to match it up with how other commits for this driver/file are done, it needs to be tweaked a bit. thanks, greg k-h
Hi there, thank you for the hint. Got it working on vpenguin with removing sendmail :) https://git-send-email.io/ is great. with best regards Jens Glathe ------ Originalnachricht ------ Von "Greg KH" <gregkh@linuxfoundation.org> An "Jens Glathe" <jens.glathe@oldschoolsolutions.biz> Cc mathias.nyman@intel.com; linux-usb@vger.kernel.org; linux-kernel@vger.kernel.org Datum 25.09.2022 12:34:34 Betreff Re: [PATCH v2] fix: add XHCI_SPURIOUS_SUCCESS to ASM1042 despite being a V0.96 controller >On Sun, Sep 25, 2022 at 10:21:39AM +0000, Jens Glathe wrote: >>... and this is the moment where I append the patch file in hope that this >>somehow works. > >I can't take attachments, sorry. Try using 'git send-email' to get this >to work properly. This guide might help you out with that: >https://git-send-email.io/ > >Also look at your subject line and try to match it up with how other >commits for this driver/file are done, it needs to be tweaked a bit. > >thanks, > >greg k-h
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index dce6c0ec8d34..d1b8e7148dd1 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -306,8 +306,12 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) } if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && - pdev->device == PCI_DEVICE_ID_ASMEDIA_1042_XHCI) + pdev->device == PCI_DEVICE_ID_ASMEDIA_1042_XHCI) { + /* try to tame the ASMedia 1042 controller which is 0.96 */ + if (xhci->hci_version == 0x96) + xhci->quirks |= XHCI_SPURIOUS_SUCCESS; xhci->quirks |= XHCI_BROKEN_STREAMS; + } if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI) { xhci->quirks |= XHCI_TRUST_TX_LENGTH;