Revision 1cbdde90
b/hw/usb/hcd-uhci.c | ||
---|---|---|
556 | 556 |
} |
557 | 557 |
} |
558 | 558 |
port->ctrl &= UHCI_PORT_READ_ONLY; |
559 |
/* enabled may only be set if a device is connected */ |
|
560 |
if (!(port->ctrl & UHCI_PORT_CCS)) { |
|
561 |
val &= ~UHCI_PORT_EN; |
|
562 |
} |
|
559 | 563 |
port->ctrl |= (val & ~UHCI_PORT_READ_ONLY); |
560 | 564 |
/* some bits are reset when a '1' is written to them */ |
561 | 565 |
port->ctrl &= ~(val & UHCI_PORT_WRITE_CLEAR); |
Also available in: Unified diff