xhci: Print hcc params, version and quirks on init
authorHans de Goede <hdegoede@redhat.com>
Fri, 16 Jan 2015 15:54:01 +0000 (17:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jan 2015 12:59:43 +0000 (20:59 +0800)
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>
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h

index 1b0c91f12da21a79dafacff64d92fa20d232fd29..15d8c221442f782e992b7e671a4522a7b2e16ee7 100644 (file)
@@ -4904,6 +4904,10 @@ int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks)
        if (retval)
                goto error;
        xhci_dbg(xhci, "Called HCD init\n");
+
+       xhci_info(xhci, "hcc params 0x%08x hci version 0x%x quirks 0x%08x\n",
+                 xhci->hcc_params, xhci->hci_version, xhci->quirks);
+
        return 0;
 error:
        kfree(xhci);
index e23f31d029a32c98c8bf89e8f17f1151c0e726a9..974514762a1402aee4164cf5556c9321bea49d44 100644 (file)
@@ -1605,6 +1605,8 @@ static inline struct usb_hcd *xhci_to_hcd(struct xhci_hcd *xhci)
        dev_warn(xhci_to_hcd(xhci)->self.controller , fmt , ## args)
 #define xhci_warn_ratelimited(xhci, fmt, args...) \
        dev_warn_ratelimited(xhci_to_hcd(xhci)->self.controller , fmt , ## args)
+#define xhci_info(xhci, fmt, args...) \
+       dev_info(xhci_to_hcd(xhci)->self.controller , fmt , ## args)
 
 /*
  * Registers should always be accessed with double word or quad word accesses.