Changeset f0e25e8 in mainline for uspace/drv/uhci/root_hub/port.c


Ignore:
Timestamp:
2011-01-28T23:13:28Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
096a1ff, e68de30
Parents:
3da5eb9
Message:

Fixed: reset port after detecting a new device

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci/root_hub/port.c

    r3da5eb9 rf0e25e8  
    3636                if (port_status & STATUS_CONNECTED_CHANGED) {
    3737                        if (port_status & STATUS_CONNECTED) {
     38                                /* new device */
     39                                port_status |= STATUS_IN_RESET;
     40                                port_status_write(port_instance->address, port_status);
     41                                async_usleep(1000);
     42                                port_status =
     43                                        port_status_read(port_instance->address);
     44                                port_status &= ~STATUS_IN_RESET;
     45                                port_status_write(port_instance->address, port_status);
    3846                                uhci_port_new_device(port_instance);
    3947                        } else {
Note: See TracChangeset for help on using the changeset viewer.