diff options
author | Peter Chen <peter.chen@nxp.com> | 2017-03-09 08:39:36 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-18 07:14:32 -0400 |
commit | d863767907527f0d43ea856a78c060d1f3599ac9 (patch) | |
tree | 5aa609ad3ed74a6169f66102b390811aeda3f5e4 /drivers/usb | |
parent | 03123df08e6b77c0491af64e46054dbef5a1cea4 (diff) |
usb: host: xhci-dbg: HCIVERSION should be a binary number
commit f95e60a7dbecd2de816bb3ad517b3d4fbc20b507 upstream.
According to xHCI spec, HCIVERSION containing a BCD encoding
of the xHCI specification revision number, 0100h corresponds
to xHCI version 1.0. Change "100" as "0x100".
Cc: Lu Baolu <baolu.lu@linux.intel.com>
Fixes: 04abb6de2825 ("xhci: Read and parse new xhci 1.1 capability register")
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/xhci-dbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-dbg.c b/drivers/usb/host/xhci-dbg.c index 74c42f722678..3425154baf8b 100644 --- a/drivers/usb/host/xhci-dbg.c +++ b/drivers/usb/host/xhci-dbg.c | |||
@@ -111,7 +111,7 @@ static void xhci_print_cap_regs(struct xhci_hcd *xhci) | |||
111 | xhci_dbg(xhci, "RTSOFF 0x%x:\n", temp & RTSOFF_MASK); | 111 | xhci_dbg(xhci, "RTSOFF 0x%x:\n", temp & RTSOFF_MASK); |
112 | 112 | ||
113 | /* xhci 1.1 controllers have the HCCPARAMS2 register */ | 113 | /* xhci 1.1 controllers have the HCCPARAMS2 register */ |
114 | if (hci_version > 100) { | 114 | if (hci_version > 0x100) { |
115 | temp = readl(&xhci->cap_regs->hcc_params2); | 115 | temp = readl(&xhci->cap_regs->hcc_params2); |
116 | xhci_dbg(xhci, "HCC PARAMS2 0x%x:\n", (unsigned int) temp); | 116 | xhci_dbg(xhci, "HCC PARAMS2 0x%x:\n", (unsigned int) temp); |
117 | xhci_dbg(xhci, " HC %s Force save context capability", | 117 | xhci_dbg(xhci, " HC %s Force save context capability", |