diff options
author | Yinbo Zhu <zhuyinbo@loongson.cn> | 2021-10-13 06:32:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-10-21 13:48:18 +0300 |
commit | 20f588ac9841edaf3e03fb24afe43ee530622a3c (patch) | |
tree | 7dbfc2d934bed3f72bc517b03d8f0fc070f66e47 /drivers/usb/host/xhci-ext-caps.h | |
parent | 6a47856145346c2dc5f31e1b5f9d986f1e446ce2 (diff) | |
download | linux-20f588ac9841edaf3e03fb24afe43ee530622a3c.tar.xz |
usb: ohci: disable start-of-frame interrupt in ohci_rh_suspend
While going into S3 or S4 suspend, an OHCI host controller can
generate interrupt requests if the INTR_SF enable flag is set. The
interrupt handler routine isn't prepared for this and it doesn't turn
off the flag, causing an interrupt storm.
To fix this problem, make ohci_rh_suspend() always disable INTR_SF
interrupts after processing the done list and the ED unlinks but
before the controller goes into the suspended (non-UsbOperational)
state. There's no reason to leave the flag enabled, since a
suspended controller doesn't generate Start-of-Frame packets.
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn>
Link: https://lore.kernel.org/r/1634095928-29639-1-git-send-email-zhuyinbo@loongson.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci-ext-caps.h')
0 files changed, 0 insertions, 0 deletions