Skip to content

Commit f95e60a

Browse files
Peter Chengregkh
authored andcommitted
usb: host: xhci-dbg: HCIVERSION should be a binary number
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]> Cc: stable <[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 20e4e37 commit f95e60a

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
@@ -109,7 +109,7 @@ static void xhci_print_cap_regs(struct xhci_hcd *xhci)
109109
xhci_dbg(xhci, "RTSOFF 0x%x:\n", temp & RTSOFF_MASK);
110110

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

0 commit comments

Comments
 (0)