summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuangyi Chiang <ki.chiang65@gmail.com>2024-11-06 12:14:43 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:02:48 +0100
commit218796e95aeff0ee3dab18f56c90d601ba01f892 (patch)
tree318fc1fed9ce549467e498c2818028de3e4313cf
parent9258c9ed32294ce3a4b58c9d92fc49ba030d35c9 (diff)
downloadlinux-218796e95aeff0ee3dab18f56c90d601ba01f892.tar.gz
linux-218796e95aeff0ee3dab18f56c90d601ba01f892.tar.bz2
linux-218796e95aeff0ee3dab18f56c90d601ba01f892.zip
xhci: Combine two if statements for Etron xHCI host
commit d7b11fe5790203fcc0db182249d7bfd945e44ccb upstream. Combine two if statements, because these hosts have the same quirk flags applied. [Mathias: has stable tag because other fixes in series depend on this] Fixes: 91f7a1524a92 ("xhci: Apply broken streams quirk to Etron EJ188 xHCI host") Cc: stable@vger.kernel.org Signed-off-by: Kuangyi Chiang <ki.chiang65@gmail.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20241106101459.775897-18-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/host/xhci-pci.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index cb07cee9ed0c..b8ded7894c41 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -395,12 +395,8 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
xhci->quirks |= XHCI_DEFAULT_PM_RUNTIME_ALLOW;
if (pdev->vendor == PCI_VENDOR_ID_ETRON &&
- pdev->device == PCI_DEVICE_ID_EJ168) {
- xhci->quirks |= XHCI_RESET_ON_RESUME;
- xhci->quirks |= XHCI_BROKEN_STREAMS;
- }
- if (pdev->vendor == PCI_VENDOR_ID_ETRON &&
- pdev->device == PCI_DEVICE_ID_EJ188) {
+ (pdev->device == PCI_DEVICE_ID_EJ168 ||
+ pdev->device == PCI_DEVICE_ID_EJ188)) {
xhci->quirks |= XHCI_RESET_ON_RESUME;
xhci->quirks |= XHCI_BROKEN_STREAMS;
}