]> git.karo-electronics.de Git - mv-sheeva.git/commit - drivers/usb/core/hcd-pci.c
xHCI: synchronize irq in xhci_suspend()
authorAndiry Xu <andiry.xu@amd.com>
Mon, 27 Dec 2010 09:39:02 +0000 (17:39 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Fri, 14 Jan 2011 23:28:52 +0000 (15:28 -0800)
commit0029227f1bc30b6c809ae751f9e7af6cef900997
tree4962aacd3349c149c1d1567aaa09cd9ac8efec0f
parent7111ebc97ed53a32314011c85a6f235f0dab8ae8
xHCI: synchronize irq in xhci_suspend()

Synchronize the interrupts instead of free them in xhci_suspend(). This will
prevent a double free when the host is suspended and then the card removed.

Set the flag hcd->msix_enabled when using MSI-X, and check the flag in
suspend_common(). MSI-X synchronization will be handled by xhci_suspend(),
and MSI/INTx will be synchronized in suspend_common().

This patch should be queued for the 2.6.37 stable tree.

Reported-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@kernel.org
drivers/usb/core/hcd-pci.c
drivers/usb/host/xhci.c
include/linux/usb/hcd.h