Skip to content

Commit 40c5634

Browse files
Peter Chengregkh
authored andcommitted
usb: host: xhci-dbg: HCIVERSION should be a binary number
commit f95e60a 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 <[email protected]> Fixes: 04abb6d ("xhci: Read and parse new xhci 1.1 capability register") Signed-off-by: Peter Chen <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4a1a3bb commit 40c5634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/host/xhci-dbg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static void xhci_print_cap_regs(struct xhci_hcd *xhci)
111111
xhci_dbg(xhci, "RTSOFF 0x%x:\n", temp & RTSOFF_MASK);
112112

113113
/* xhci 1.1 controllers have the HCCPARAMS2 register */
114-
if (hci_version > 100) {
114+
if (hci_version > 0x100) {
115115
temp = readl(&xhci->cap_regs->hcc_params2);
116116
xhci_dbg(xhci, "HCC PARAMS2 0x%x:\n", (unsigned int) temp);
117117
xhci_dbg(xhci, " HC %s Force save context capability",

0 commit comments

Comments
 (0)