Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset d394e57a in mainline


Ignore:
Timestamp:
2011-05-08T11:54:10Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
a948c23
Parents:
3ae5ca8
Message:

Reduce wait times in uhci reset sequence (helps with bug #98)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-rhd/port.c

    r3ae5ca8 rd394e57a  
    3232 * @brief UHCI root hub port routines
    3333 */
    34 #include <libarch/ddi.h> /* pio_read and pio_write */
     34#include <libarch/ddi.h>  /* pio_read and pio_write */
     35#include <fibril_synch.h> /* async_usleep */
    3536#include <errno.h>
    3637#include <str_error.h>
    37 #include <fibril_synch.h>
    3838
    3939#include <usb/usb.h>    /* usb_address_t */
    40 #include <usb/hub.h>
     40#include <usb/hub.h>    /* usb_hc_new_device_wrapper */
    4141#include <usb/debug.h>
    4242
     
    210210
    211211        usb_log_debug2("%s: new_device_enable_port.\n", port->id_string);
    212 
    213         /*
    214          * The host then waits for at least 100 ms to allow completion of
    215          * an insertion process and for power at the device to become stable.
    216          */
    217         async_usleep(100000);
    218212
    219213        /*
     
    232226        }
    233227
    234         /* the reset recovery time 10ms */
    235         async_usleep(10000);
    236 
    237228        /* Enable the port. */
    238229        uhci_port_set_enabled(port, true);
     
    313304        /* Wait for port to become enabled */
    314305        do {
    315                 async_usleep(1000);
    316306                port_status = uhci_port_read_status(port);
    317307        } while ((port_status & STATUS_CONNECTED) &&
Note: See TracChangeset for help on using the changeset viewer.