diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2011-09-13 19:41:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-20 15:33:49 -0400 |
commit | d78265992425ccb5753db9c56d9703c91b963e4b (patch) | |
tree | 15123f4bc7c2dfd56559cbd4bba6165ebec70e94 /drivers/usb/host/xhci.c | |
parent | 45e1892e70b85d251b2e69f4122a04e509ebdf00 (diff) |
usb/xhci: ignore xhci version while checking for the link quirk
instead of reading the xhci interface version each time _even_ if the
quirk is not required, simply check if the quirk flag is set. This flag
is only set of the module parameter is set and here is where I moved the
version check to.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/xhci.c')
-rw-r--r-- | drivers/usb/host/xhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index dd0dc15680b6..7583b24c3387 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
@@ -316,7 +316,7 @@ int xhci_init(struct usb_hcd *hcd) | |||
316 | 316 | ||
317 | xhci_dbg(xhci, "xhci_init\n"); | 317 | xhci_dbg(xhci, "xhci_init\n"); |
318 | spin_lock_init(&xhci->lock); | 318 | spin_lock_init(&xhci->lock); |
319 | if (link_quirk) { | 319 | if (xhci->hci_version == 0x95 && link_quirk) { |
320 | xhci_dbg(xhci, "QUIRK: Not clearing Link TRB chain bits.\n"); | 320 | xhci_dbg(xhci, "QUIRK: Not clearing Link TRB chain bits.\n"); |
321 | xhci->quirks |= XHCI_LINK_TRB_QUIRK; | 321 | xhci->quirks |= XHCI_LINK_TRB_QUIRK; |
322 | } else { | 322 | } else { |