xhci: Apply broken streams quirk to Etron EJ188 xHCI host
Subsystems (3)
PATCH v2 2/2 xhci: Apply broken streams quirk to Etron EJ188 xHCI host
As described in commit 8f873c1ff4ca ("xhci: Blacklist using streams on the Etron EJ168 controller"), EJ188 have the same issue as EJ168, where Streams do not work reliable on EJ188. So apply XHCI_BROKEN_STREAMS quirk to EJ188 as well.
---
Changes in v2:
- Porting to latest release
drivers/usb/host/xhci-pci.c | 1 + 1 file changed, 1 insertion(+)
drivers/usb/host/xhci-pci.c +1 -0
@@ -399,6 +399,7 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)if (pdev->vendor ==PCI_VENDOR_ID_ETRON && pdev->device ==PCI_DEVICE_ID_EJ188 ) { xhci->quirks |=XHCI_RESET_ON_RESUME ; + xhci->quirks |=XHCI_BROKEN_STREAMS ; }if (pdev->vendor ==PCI_VENDOR_ID_RENESAS && pdev->device ==0x0014 ) {
Signature · 1 line
2.25.1
PATCH v2 1/2 xhci: Apply reset resume quirk to Etron EJ188 xHCI host
As described in commit c877b3b2ad5c ("xhci: Add reset on resume quirk for asrock p67 host"), EJ188 have the same issue as EJ168, where completely dies on resume. So apply XHCI_RESET_ON_RESUME quirk to EJ188 as well.
---
Changes in v2:
- Porting to latest release
drivers/usb/host/xhci-pci.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/usb/host/xhci-pci.c +5 -0
@@ -36,6 +36,7 @@#define PCI_VENDOR_ID_ETRON 0x1b6f#define PCI_DEVICE_ID_EJ168 0x7023 +#define PCI_DEVICE_ID_EJ188 0x7052#define PCI_DEVICE_ID_INTEL_LYNXPOINT_XHCI 0x8c31#define PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI 0x9c31
@@ -395,6 +396,10 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) xhci->quirks |=XHCI_RESET_ON_RESUME ; xhci->quirks |=XHCI_BROKEN_STREAMS ; } +if (pdev->vendor ==PCI_VENDOR_ID_ETRON && + pdev->device ==PCI_DEVICE_ID_EJ188 ) { + xhci->quirks |=XHCI_RESET_ON_RESUME ; + }if (pdev->vendor ==PCI_VENDOR_ID_RENESAS && pdev->device ==0x0014 ) { xhci->quirks |=XHCI_ZERO_64B_REGS ;
Signature · 1 line
2.25.1
Re: [PATCH v2 1/2] xhci: Apply reset resume quirk to Etron EJ188 xHCI host
Quoted 17 lines · Kuangyi Chiang
As described in commit
c877b3b2ad5c("xhci: Add reset on resume quirk for asrock p67 host"), EJ188 have the same issue as EJ168, where completely dies on resume. So applyXHCI_RESET_ON_RESUMEquirk to EJ188 as well.Cc <[email protected]>Signed-off-by Kuangyi Chiang <[email protected]>---
Changes in v2:
- Porting to latest releasedrivers/usb/host/xhci-pci.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/usb/host/xhci-pci.c +0
-0
[...]
drivers/usb/host/xhci-pci.c static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) · line 402
Quoted 8 lines
drivers/usb/host/xhci-pci.c +4
-0@@ -395,6 +396,10 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) xhci->quirks |=XHCI_RESET_ON_RESUME ; xhci->quirks |=XHCI_BROKEN_STREAMS ; } +if (pdev->vendor ==PCI_VENDOR_ID_ETRON && + pdev->device ==PCI_DEVICE_ID_EJ188 ) { + xhci->quirks |=XHCI_RESET_ON_RESUME ; + }
You don't need {} around a single statement, according to CodingStyle.
[...]
MBR, Sergey
Re: [PATCH v2 1/2] xhci: Apply reset resume quirk to Etron EJ188 xHCI host
Hi Sergey,
Sergei Shtylyov <[email protected]> 於 2024年5月28日 週二 下午4:36寫道:
Quoted 32 lines · Kuangyi Chiang
Quoted 18 lines
As described in commit
c877b3b2ad5c("xhci: Add reset on resume quirk for asrock p67 host"), EJ188 have the same issue as EJ168, where completely dies on resume. So applyXHCI_RESET_ON_RESUMEquirk to EJ188 as well.Cc <[email protected]>Signed-off-by Kuangyi Chiang <[email protected]>---
Changes in v2:
- Porting to latest releasedrivers/usb/host/xhci-pci.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/usb/host/xhci-pci.c +0
-0[...]
drivers/usb/host/xhci-pci.c static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) · line 402
Quoted 8 lines
drivers/usb/host/xhci-pci.c +4
-0@@ -395,6 +396,10 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) xhci->quirks |=XHCI_RESET_ON_RESUME ; xhci->quirks |=XHCI_BROKEN_STREAMS ; } +if (pdev->vendor ==PCI_VENDOR_ID_ETRON && + pdev->device ==PCI_DEVICE_ID_EJ188 ) { + xhci->quirks |=XHCI_RESET_ON_RESUME ; + }You don't need {} around a single statement, according to CodingStyle.
Quoted 3 lines
[...]
MBR, Sergey
Got it, I'll modify it and resend patches.
Thanks,
Kuangyi Chiang