Revision 6ad6135d hw/usb-ohci.c
b/hw/usb-ohci.c | ||
---|---|---|
1099 | 1099 |
static void ohci_process_lists(OHCIState *ohci, int completion) |
1100 | 1100 |
{ |
1101 | 1101 |
if ((ohci->ctl & OHCI_CTL_CLE) && (ohci->status & OHCI_STATUS_CLF)) { |
1102 |
if (ohci->ctrl_cur && ohci->ctrl_cur != ohci->ctrl_head) |
|
1103 |
DPRINTF("usb-ohci: head %x, cur %x\n", |
|
1104 |
ohci->ctrl_head, ohci->ctrl_cur); |
|
1102 |
if (ohci->ctrl_cur && ohci->ctrl_cur != ohci->ctrl_head) { |
|
1103 |
DPRINTF("usb-ohci: head %x, cur %x\n", |
|
1104 |
ohci->ctrl_head, ohci->ctrl_cur); |
|
1105 |
} |
|
1105 | 1106 |
if (!ohci_service_ed_list(ohci, ohci->ctrl_head, completion)) { |
1106 | 1107 |
ohci->ctrl_cur = 0; |
1107 | 1108 |
ohci->status &= ~OHCI_STATUS_CLF; |
... | ... | |
1367 | 1368 |
|
1368 | 1369 |
ohci_port_set_if_connected(ohci, portnum, val & OHCI_PORT_PES); |
1369 | 1370 |
|
1370 |
if (ohci_port_set_if_connected(ohci, portnum, val & OHCI_PORT_PSS)) |
|
1371 |
if (ohci_port_set_if_connected(ohci, portnum, val & OHCI_PORT_PSS)) {
|
|
1371 | 1372 |
DPRINTF("usb-ohci: port %d: SUSPEND\n", portnum); |
1373 |
} |
|
1372 | 1374 |
|
1373 | 1375 |
if (ohci_port_set_if_connected(ohci, portnum, val & OHCI_PORT_PRS)) { |
1374 | 1376 |
DPRINTF("usb-ohci: port %d: RESET\n", portnum); |
Also available in: Unified diff