Changeset 2896ff6 in mainline
- Timestamp:
- 2017-10-19T20:52:35Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 913007f
- Parents:
- 1a9a72a
- Location:
- uspace/drv/bus/usb/xhci
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/commands.c
r1a9a72a r2896ff6 76 76 } 77 77 78 int xhci_cmd_wait(xhci_cmd_t *cmd, suseconds_t timeout) 79 { 78 int xhci_cmd_wait(xhci_cmd_t *cmd) 79 { 80 const suseconds_t timeout = 1000000; 80 81 int rv = EOK; 81 82 -
uspace/drv/bus/usb/xhci/commands.h
r1a9a72a r2896ff6 67 67 xhci_cmd_t *xhci_cmd_alloc(void); 68 68 void xhci_cmd_init(xhci_cmd_t *); 69 int xhci_cmd_wait(xhci_cmd_t * , suseconds_t);69 int xhci_cmd_wait(xhci_cmd_t *); 70 70 void xhci_cmd_fini(xhci_cmd_t *); 71 71 void xhci_cmd_free(xhci_cmd_t *); -
uspace/drv/bus/usb/xhci/endpoint.c
r1a9a72a r2896ff6 257 257 cmd.slot_id = dev->slot_id; 258 258 xhci_send_configure_endpoint_command(dev->hc, &cmd, ictx); 259 if ((err = xhci_cmd_wait(&cmd , 100000)) != EOK)259 if ((err = xhci_cmd_wait(&cmd)) != EOK) 260 260 goto err_cmd; 261 261 … … 324 324 cmd.slot_id = dev->slot_id; 325 325 xhci_send_configure_endpoint_command(hc, &cmd, ictx); 326 if ((err = xhci_cmd_wait(&cmd , 100000)) != EOK)326 if ((err = xhci_cmd_wait(&cmd)) != EOK) 327 327 goto err_cmd; 328 328 -
uspace/drv/bus/usb/xhci/hc.c
r1a9a72a r2896ff6 634 634 uint32_t v = host2xhci(32, target & BIT_RRANGE(uint32_t, 7)); 635 635 pio_write_32(&hc->db_arry[doorbell], v); 636 usb_log_debug ("Ringing doorbell %d, target = %d", doorbell, target);636 usb_log_debug2("Ringing doorbell %d (target: %d)", doorbell, target); 637 637 return EOK; 638 638 } -
uspace/drv/bus/usb/xhci/main.c
r1a9a72a r2896ff6 186 186 { 187 187 log_init(NAME); 188 logctl_set_log_level(NAME, LVL_DEBUG 2);188 logctl_set_log_level(NAME, LVL_DEBUG); 189 189 return ddf_driver_main(&xhci_driver); 190 190 } -
uspace/drv/bus/usb/xhci/rh.c
r1a9a72a r2896ff6 91 91 92 92 xhci_send_enable_slot_command(hc, &cmd); 93 if ((err = xhci_cmd_wait(&cmd , 100000)) != EOK)93 if ((err = xhci_cmd_wait(&cmd)) != EOK) 94 94 return err; 95 95 … … 155 155 cmd.slot_id = slot_id; 156 156 xhci_send_address_device_command(hc, &cmd, ictx); 157 if ((err = xhci_cmd_wait(&cmd , 100000)) != EOK)157 if ((err = xhci_cmd_wait(&cmd)) != EOK) 158 158 goto err_dctx; 159 159 … … 400 400 xhci_get_port_bandwidth_command(dev->hc, &cmd, ctx, speed); 401 401 402 int err = xhci_cmd_wait(&cmd , 100000);402 int err = xhci_cmd_wait(&cmd); 403 403 if(err != EOK) { 404 404 free(ctx);
Note:
See TracChangeset
for help on using the changeset viewer.