xHCI: fix port U3 status check condition
commiteff529629832537fbd6837912add0c4a8cb7d585
authorAndiry Xu <andiry.xu@amd.com>
Wed, 3 Aug 2011 08:46:48 +0000 (3 16:46 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:39:52 +0000 (3 11:39 -0700)
treefafafcfc7a15a74eb04e76104120f8c0d1277c33
parentcde5eaf3ce98af402a91fa67ba392f6451f5bc89
xHCI: fix port U3 status check condition

commit 5ac04bf190e6f8b17238aef179ebd7f2bdfec919 upstream.

Fix the port U3 status check when Clear PORT_SUSPEND Feature.
The port status should be masked with PORT_PLS_MASK to check if it's in
U3 state.

This should be backported to kernels as old as 2.6.37.

Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-hub.c