aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-pci.c
diff options
context:
space:
mode:
authorXenia Ragiadakou <burzalodowa@gmail.com>2013-08-06 00:52:45 -0400
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2013-08-13 19:05:41 -0400
commit4bdfe4c38fd5b06da558050a3288a0a48825a3e7 (patch)
treef241e6624b14dca4d6013c0da416d36b8f278734 /drivers/usb/host/xhci-pci.c
parent3a7fa5bef06e1757d1aded8d78afd041b4552e11 (diff)
xhci: add trace for debug messages related to quirks
This patch defines a new trace event, which is called xhci_dbg_quirks and belongs in the event class xhci_log_msg, and adds tracepoints that trace the debug messages associated with xHCs' quirks. Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host/xhci-pci.c')
-rw-r--r--drivers/usb/host/xhci-pci.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index 72960684a942..c2d495057eb5 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -25,6 +25,7 @@
25#include <linux/module.h> 25#include <linux/module.h>
26 26
27#include "xhci.h" 27#include "xhci.h"
28#include "xhci-trace.h"
28 29
29/* Device for a quirk */ 30/* Device for a quirk */
30#define PCI_VENDOR_ID_FRESCO_LOGIC 0x1b73 31#define PCI_VENDOR_ID_FRESCO_LOGIC 0x1b73
@@ -64,16 +65,18 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
64 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK && 65 if (pdev->device == PCI_DEVICE_ID_FRESCO_LOGIC_PDK &&
65 pdev->revision == 0x0) { 66 pdev->revision == 0x0) {
66 xhci->quirks |= XHCI_RESET_EP_QUIRK; 67 xhci->quirks |= XHCI_RESET_EP_QUIRK;
67 xhci_dbg(xhci, "QUIRK: Fresco Logic xHC needs configure" 68 xhci_dbg_trace(xhci, trace_xhci_dbg_quirks,
68 " endpoint cmd after reset endpoint\n"); 69 "QUIRK: Fresco Logic xHC needs configure"
70 " endpoint cmd after reset endpoint");
69 } 71 }
70 /* Fresco Logic confirms: all revisions of this chip do not 72 /* Fresco Logic confirms: all revisions of this chip do not
71 * support MSI, even though some of them claim to in their PCI 73 * support MSI, even though some of them claim to in their PCI
72 * capabilities. 74 * capabilities.
73 */ 75 */
74 xhci->quirks |= XHCI_BROKEN_MSI; 76 xhci->quirks |= XHCI_BROKEN_MSI;
75 xhci_dbg(xhci, "QUIRK: Fresco Logic revision %u " 77 xhci_dbg_trace(xhci, trace_xhci_dbg_quirks,
76 "has broken MSI implementation\n", 78 "QUIRK: Fresco Logic revision %u "
79 "has broken MSI implementation",
77 pdev->revision); 80 pdev->revision);
78 xhci->quirks |= XHCI_TRUST_TX_LENGTH; 81 xhci->quirks |= XHCI_TRUST_TX_LENGTH;
79 } 82 }
@@ -110,7 +113,8 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)
110 if (pdev->vendor == PCI_VENDOR_ID_ETRON && 113 if (pdev->vendor == PCI_VENDOR_ID_ETRON &&
111 pdev->device == PCI_DEVICE_ID_ASROCK_P67) { 114 pdev->device == PCI_DEVICE_ID_ASROCK_P67) {
112 xhci->quirks |= XHCI_RESET_ON_RESUME; 115 xhci->quirks |= XHCI_RESET_ON_RESUME;
113 xhci_dbg(xhci, "QUIRK: Resetting on resume\n"); 116 xhci_dbg_trace(xhci, trace_xhci_dbg_quirks,
117 "QUIRK: Resetting on resume");
114 xhci->quirks |= XHCI_TRUST_TX_LENGTH; 118 xhci->quirks |= XHCI_TRUST_TX_LENGTH;
115 } 119 }
116 if (pdev->vendor == PCI_VENDOR_ID_VIA) 120 if (pdev->vendor == PCI_VENDOR_ID_VIA)