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)
committerMandar Padmawar <mpadmawar@nvidia.com>
Thu, 31 Jan 2013 10:31:37 +0000 (02:31 -0800)
commit52c35f1e3681e18362714c2621f7b024e76c35aa
treea47572fbf8614b7adc6b15971f6be09e92ea5105
parentab2b8cb0ce94868c1a3d6a177dabd07e789ca456
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.

Change-Id: I084865f97fdc38d8966b49c92eafe51d7cc660a6
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
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-on: http://git-master/r/190499
(cherry picked from commit e54abee5308040fabddedae314626a5bd2f1da08)

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Change-Id: I589666284acb505742cae7bf5d7f5ccb32252146
Reviewed-on: http://git-master/r/194689
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ajay Gupta <ajayg@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
drivers/usb/host/xhci.c