summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAndiry Xu <andiry.xu@amd.com>2011-11-30 16:37:41 +0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-09 08:55:40 -0800
commitba92f7efc8390db5ed6da4966ef943718eb048b7 (patch)
tree10d4dc4c335e0b7697b935d1ec27ac7c3cd7d75e /fs
parent07b91eb2d2c53017fbae33d5eae1037cb078d3e4 (diff)
xHCI: fix bug in xhci_clear_command_ring()
commit 158886cd2cf4599e04f9b7e10cb767f5f39b14f1 upstream. When system enters suspend, xHCI driver clears command ring by writing zero to all the TRBs. However, this also writes zero to the Link TRB, and the ring is mangled. This may cause driver accesses wrong memory address and the result is unpredicted. When clear the command ring, keep the last Link TRB intact, only clear its cycle bit. This should fix the "command ring full" issue reported by Oliver Neukum. This should be backported to stable kernels as old as 2.6.37, since the commit 89821320 "xhci: Fix command ring replay after resume" is merged. Signed-off-by: Andiry Xu <andiry.xu@amd.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Reported-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions