xhci: Fix a logical vs bitwise AND bug
commit052c7f9ffb0e95843e75448d02664459253f9ff8
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 13 Aug 2012 16:57:03 +0000 (13 19:57 +0300)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 5 Sep 2012 19:07:00 +0000 (5 12:07 -0700)
tree35ab6de105398db0e056520cf27ff5f6870b1d76
parenta96874a2a92feaef607ddd3137277a788cb927a6
xhci: Fix a logical vs bitwise AND bug

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>
Cc: stable@vger.kernel.org
drivers/usb/host/xhci.c