projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a96874a
)
xhci: Fix a logical vs bitwise AND bug
author
Dan Carpenter
<
[email protected]
>
Mon, 13 Aug 2012 16:57:03 +0000
(19:57 +0300)
committer
Sarah Sharp
<
[email protected]
>
Wed, 5 Sep 2012 19:07:00 +0000
(12:07 -0700)
The intent was to test whether the flag was set.
This patch should be backported to stable kernels as old as 3.0, since
it fixes a bug in commit
e95829f474f0db3a4d940cae1423783edd966027
"xhci:
Switch PPT ports to EHCI on shutdown.", which was marked for stable.
Signed-off-by: Dan Carpenter <
[email protected]
>
Signed-off-by: Sarah Sharp <
[email protected]
>
Cc:
[email protected]
drivers/usb/host/xhci.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/xhci.c
b/drivers/usb/host/xhci.c
index c59d5b5b6c7d227a8005ca520e8b9badad5207b1..617b0a77b2b4fc5a4e81454432162cb16ab5b91e 100644
(file)
--- a/
drivers/usb/host/xhci.c
+++ b/
drivers/usb/host/xhci.c
@@
-659,7
+659,7
@@
void xhci_shutdown(struct usb_hcd *hcd)
{
struct xhci_hcd *xhci = hcd_to_xhci(hcd);
- if (xhci->quirks &
&
XHCI_SPURIOUS_REBOOT)
+ if (xhci->quirks & XHCI_SPURIOUS_REBOOT)
usb_disable_xhci_ports(to_pci_dev(hcd->self.controller));
spin_lock_irq(&xhci->lock);