diff options
| author | Ján Veselý | 2013-09-21 22:26:41 +0200 |
|---|---|---|
| committer | Michael Tokarev | 2013-10-02 20:55:28 +0200 |
| commit | 4b351a0f212769deda960da44e299f44d5da0737 (patch) | |
| tree | 28e53149b96f7986d8153cd57b867fc2283522b1 | |
| parent | sh4: Fix serial line access for Linux kernels later than 3.2 (diff) | |
| download | qemu-4b351a0f212769deda960da44e299f44d5da0737.tar.gz qemu-4b351a0f212769deda960da44e299f44d5da0737.tar.xz qemu-4b351a0f212769deda960da44e299f44d5da0737.zip | |
pci-ohci: Add missing 'break' in ohci_service_td
Device communication errors need to be reported to driver.
Add a debug message while at it.
Signed-off-by: Jan Vesely <jano.vesely@gmail.com>
Acked-by: Gerd Hoffmann <kraxel@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
| -rw-r--r-- | hw/usb/hcd-ohci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c index 35f0878409..0396e334ed 100644 --- a/hw/usb/hcd-ohci.c +++ b/hw/usb/hcd-ohci.c @@ -1143,7 +1143,9 @@ static int ohci_service_td(OHCIState *ohci, struct ohci_ed *ed) switch (ret) { case USB_RET_IOERROR: case USB_RET_NODEV: + DPRINTF("usb-ohci: got DEV ERROR\n"); OHCI_SET_BM(td.flags, TD_CC, OHCI_CC_DEVICENOTRESPONDING); + break; case USB_RET_NAK: DPRINTF("usb-ohci: got NAK\n"); return 1; |
