xhci: Fix a logical vs bitwise AND bug
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 13 Aug 2012 16:57:03 +0000 (19:57 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Sep 2012 14:05:12 +0000 (15:05 +0100)
commit52fa5d9c8c956ee587389bd662106a770de42827
treea60db14ea1adcb1b40221aba8a96596ab57c128d
parent201a1b49e0222de2d07c3a107c1bcd58891fbd54
xhci: Fix a logical vs bitwise AND bug

commit 052c7f9ffb0e95843e75448d02664459253f9ff8 upstream.

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 <dan.carpenter@oracle.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/host/xhci.c