Changeset d394e57a in mainline
- Timestamp:
- 2011-05-08T11:54:10Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a948c23
- Parents:
- 3ae5ca8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-rhd/port.c
r3ae5ca8 rd394e57a 32 32 * @brief UHCI root hub port routines 33 33 */ 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 */ 35 36 #include <errno.h> 36 37 #include <str_error.h> 37 #include <fibril_synch.h>38 38 39 39 #include <usb/usb.h> /* usb_address_t */ 40 #include <usb/hub.h> 40 #include <usb/hub.h> /* usb_hc_new_device_wrapper */ 41 41 #include <usb/debug.h> 42 42 … … 210 210 211 211 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 of215 * an insertion process and for power at the device to become stable.216 */217 async_usleep(100000);218 212 219 213 /* … … 232 226 } 233 227 234 /* the reset recovery time 10ms */235 async_usleep(10000);236 237 228 /* Enable the port. */ 238 229 uhci_port_set_enabled(port, true); … … 313 304 /* Wait for port to become enabled */ 314 305 do { 315 async_usleep(1000);316 306 port_status = uhci_port_read_status(port); 317 307 } while ((port_status & STATUS_CONNECTED) &&
Note:
See TracChangeset
for help on using the changeset viewer.