[PATCH 2/2] XHCI: Moving quirk settings for Renesas hosts above first quirk checking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All quirk settings should happen before any quirk checking happens.

Signed-off-by: Rodrigo Severo <rodrigo@xxxxxxxxxxxxxxxxxxx>
---
 drivers/usb/host/xhci-pci.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index a094afe..63a2d17 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -174,14 +174,14 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
 		xhci->quirks |= XHCI_TRUST_TX_LENGTH;
 	}
 
-	if (xhci->quirks & XHCI_RESET_ON_RESUME)
-		xhci_dbg_trace(xhci, trace_xhci_dbg_quirks,
-				"QUIRK: Resetting on resume");
-
 	if (pdev->vendor == PCI_VENDOR_ID_RENESAS &&
 			(pdev->device == PCI_DEVICE_ID_RENESAS_UPD720201 ||
 			pdev->device == PCI_DEVICE_ID_RENESAS_UPD720202))
 		xhci->quirks |= XHCI_TRUST_TX_LENGTH;
+
+	if (xhci->quirks & XHCI_RESET_ON_RESUME)
+		xhci_dbg_trace(xhci, trace_xhci_dbg_quirks,
+				"QUIRK: Resetting on resume");
 }
 
 /*
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux