mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-20 16:42:04 -06:00
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>
This commit is contained in:
parent
84faf7c392
commit
4b351a0f21
1 changed files with 2 additions and 0 deletions
|
@ -1143,7 +1143,9 @@ static int ohci_service_td(OHCIState *ohci, struct ohci_ed *ed)
|
||||||
switch (ret) {
|
switch (ret) {
|
||||||
case USB_RET_IOERROR:
|
case USB_RET_IOERROR:
|
||||||
case USB_RET_NODEV:
|
case USB_RET_NODEV:
|
||||||
|
DPRINTF("usb-ohci: got DEV ERROR\n");
|
||||||
OHCI_SET_BM(td.flags, TD_CC, OHCI_CC_DEVICENOTRESPONDING);
|
OHCI_SET_BM(td.flags, TD_CC, OHCI_CC_DEVICENOTRESPONDING);
|
||||||
|
break;
|
||||||
case USB_RET_NAK:
|
case USB_RET_NAK:
|
||||||
DPRINTF("usb-ohci: got NAK\n");
|
DPRINTF("usb-ohci: got NAK\n");
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue