Changeset fb1d4990 in mainline
- Timestamp:
- 2011-03-12T11:51:47Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0db3ad6
- Parents:
- bf4cc3e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-rhd/port.c
rbf4cc3e rfb1d4990 181 181 uhci_port_t *port = (uhci_port_t *) arg; 182 182 183 usb_log_debug2("%s: new_device_enable_port.\n", 184 port->id_string); 183 usb_log_debug2("%s: new_device_enable_port.\n", port->id_string); 185 184 186 185 /* … … 190 189 async_usleep(100000); 191 190 192 193 /* The hub maintains the reset signal to that port for 10 ms 194 * (See Section 11.5.1.5) 191 /* 192 * Resets from root ports should be nominally 50ms 195 193 */ 196 194 { 197 usb_log_debug("%s: Reset Signal start.\n", 198 port->id_string); 195 usb_log_debug("%s: Reset Signal start.\n", port->id_string); 199 196 port_status_t port_status = uhci_port_read_status(port); 200 197 port_status |= STATUS_IN_RESET; 201 198 uhci_port_write_status(port, port_status); 202 async_usleep( 10000);199 async_usleep(50000); 203 200 port_status = uhci_port_read_status(port); 204 201 port_status &= ~STATUS_IN_RESET; 205 202 uhci_port_write_status(port, port_status); 206 usb_log_debug("%s: Reset Signal stop.\n", 207 port->id_string); 208 } 203 usb_log_debug("%s: Reset Signal stop.\n", port->id_string); 204 } 205 206 /* the reset recovery time 10ms */ 207 async_usleep(10000); 209 208 210 209 /* Enable the port. */ 211 210 uhci_port_set_enabled(port, true); 211 212 212 return EOK; 213 213 } … … 226 226 assert(usb_hc_connection_is_opened(&port->hc_connection)); 227 227 228 usb_log_info("%s: Detected new device.\n", 229 port->id_string); 228 usb_log_info("%s: Detected new device.\n", port->id_string); 230 229 231 230 usb_address_t dev_addr;
Note:
See TracChangeset
for help on using the changeset viewer.