mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Fix disconnect handling on UHCI root ports
Change-Id: I03b72cd1c6ed0df09c08f2a687d4f17fa3cf6afc Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Reviewed-on: http://review.coreboot.org/1531 Tested-by: build bot (Jenkins) Reviewed-by: Anton Kochkov <anton.kochkov@gmail.com>
This commit is contained in:
parent
f6c808090a
commit
1d66897364
1 changed files with 6 additions and 1 deletions
|
@ -81,9 +81,14 @@ static void
|
||||||
uhci_rh_disable_port (usbdev_t *dev, int port)
|
uhci_rh_disable_port (usbdev_t *dev, int port)
|
||||||
{
|
{
|
||||||
hci_t *controller = dev->controller;
|
hci_t *controller = dev->controller;
|
||||||
port = PORTSC2;
|
|
||||||
if (port == 1)
|
if (port == 1)
|
||||||
port = PORTSC1;
|
port = PORTSC1;
|
||||||
|
else if (port == 2)
|
||||||
|
port = PORTSC2;
|
||||||
|
else {
|
||||||
|
debug("Invalid port %d\n", port);
|
||||||
|
return;
|
||||||
|
}
|
||||||
uhci_reg_write16(controller, port,
|
uhci_reg_write16(controller, port,
|
||||||
uhci_reg_read16(controller, port) & ~4);
|
uhci_reg_read16(controller, port) & ~4);
|
||||||
u16 value;
|
u16 value;
|
||||||
|
|
Loading…
Add table
Reference in a new issue