diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-01-16 10:54:01 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-25 07:59:43 -0500 |
commit | 99705092a83f0202d2b64c1b754a831464c5ce90 (patch) | |
tree | f402691ab5511886bd15cc249ff87e6a754eeff4 | |
parent | 524134d422316a59d5464ccbc12036bbe90c5563 (diff) |
xhci: Print hcc params, version and quirks on init
To help debugging xhci problems.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/host/xhci.c | 4 | ||||
-rw-r--r-- | drivers/usb/host/xhci.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 1b0c91f12da2..15d8c221442f 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
@@ -4904,6 +4904,10 @@ int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks) | |||
4904 | if (retval) | 4904 | if (retval) |
4905 | goto error; | 4905 | goto error; |
4906 | xhci_dbg(xhci, "Called HCD init\n"); | 4906 | xhci_dbg(xhci, "Called HCD init\n"); |
4907 | |||
4908 | xhci_info(xhci, "hcc params 0x%08x hci version 0x%x quirks 0x%08x\n", | ||
4909 | xhci->hcc_params, xhci->hci_version, xhci->quirks); | ||
4910 | |||
4907 | return 0; | 4911 | return 0; |
4908 | error: | 4912 | error: |
4909 | kfree(xhci); | 4913 | kfree(xhci); |
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index e23f31d029a3..974514762a14 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h | |||
@@ -1605,6 +1605,8 @@ static inline struct usb_hcd *xhci_to_hcd(struct xhci_hcd *xhci) | |||
1605 | dev_warn(xhci_to_hcd(xhci)->self.controller , fmt , ## args) | 1605 | dev_warn(xhci_to_hcd(xhci)->self.controller , fmt , ## args) |
1606 | #define xhci_warn_ratelimited(xhci, fmt, args...) \ | 1606 | #define xhci_warn_ratelimited(xhci, fmt, args...) \ |
1607 | dev_warn_ratelimited(xhci_to_hcd(xhci)->self.controller , fmt , ## args) | 1607 | dev_warn_ratelimited(xhci_to_hcd(xhci)->self.controller , fmt , ## args) |
1608 | #define xhci_info(xhci, fmt, args...) \ | ||
1609 | dev_info(xhci_to_hcd(xhci)->self.controller , fmt , ## args) | ||
1608 | 1610 | ||
1609 | /* | 1611 | /* |
1610 | * Registers should always be accessed with double word or quad word accesses. | 1612 | * Registers should always be accessed with double word or quad word accesses. |