Changes in uspace/drv/uhci-rhd/port.c [7d521e24:11349a85] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-rhd/port.c
r7d521e24 r11349a85 36 36 #include <errno.h> 37 37 #include <str_error.h> 38 #include <time.h>39 #include <async.h>40 38 41 39 #include <usb/usb.h> /* usb_address_t */ 42 #include <usb/ dev/hub.h> /* usb_hc_new_device_wrapper */40 #include <usb/hub.h> /* usb_hc_new_device_wrapper */ 43 41 #include <usb/debug.h> 44 42 … … 67 65 * 68 66 * @param[in] port Structure to use. 69 * @param[in] val New register value.67 * @param[in] value New register value. 70 68 * @return Error code. (Always EOK) 71 69 */ … … 79 77 * 80 78 * @param[in] port Memory structure to use. 81 * @param[in] addr essAddress of I/O register.79 * @param[in] addr Address of I/O register. 82 80 * @param[in] number Port number. 83 81 * @param[in] usec Polling interval. … … 226 224 uhci_port_write_status(port, port_status); 227 225 while (uhci_port_read_status(port) & STATUS_IN_RESET); 228 } 229 udelay(10); 226 // TODO: find a better way to waste time (it should be less than 227 // 10ms, if we reschedule it takes too much time (random 228 // interrupts can be solved by multiple attempts). 229 usb_log_debug2("%s: Reset Signal stop.\n", port->id_string); 230 } 230 231 /* Enable the port. */ 231 232 uhci_port_set_enabled(port, true);
Note:
See TracChangeset
for help on using the changeset viewer.