OHCI linux driver has some critical sections not protected against
device interrupts. Because of real hardware latency, it is generally
not a problem as interrupts cannot be triggered fast enough to happen
during these critical sections.
But theoretically, it can happen. And with QEMU used on an overcommitted
CPU, the vCPU becomes slow enough and it happens.
This series fixes a kernel crash on boot (CPU stuck) when the OHCI driver
tries to resume or suspend the device.
v2: Address comments from Thomas
update code comments
split ohci_sof() to add ohci_eof_timer()
Laurent Vivier (2):
ohci: delay first SOF interrupt
ohci: clear pending SOF on suspend
hw/usb/hcd-ohci.c | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
--
1.8.3.1