Changeset 913007f in mainline for uspace/drv/bus/usb/xhci/rh.c


Ignore:
Timestamp:
2017-10-19T21:40:57Z (8 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fe1c48d
Parents:
2896ff6
Message:

Final change with respect to command timeouts. Because communication channels are inherently noisy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/rh.c

    r2896ff6 r913007f  
    9191
    9292        xhci_send_enable_slot_command(hc, &cmd);
    93         if ((err = xhci_cmd_wait(&cmd)) != EOK)
     93        if ((err = xhci_cmd_wait(&cmd, XHCI_DEFAULT_TIMEOUT)) != EOK)
    9494                return err;
    9595
     
    155155        cmd.slot_id = slot_id;
    156156        xhci_send_address_device_command(hc, &cmd, ictx);
    157         if ((err = xhci_cmd_wait(&cmd)) != EOK)
     157        if ((err = xhci_cmd_wait(&cmd, XHCI_DEFAULT_TIMEOUT)) != EOK)
    158158                goto err_dctx;
    159159
     
    400400        xhci_get_port_bandwidth_command(dev->hc, &cmd, ctx, speed);
    401401
    402         int err = xhci_cmd_wait(&cmd);
     402        int err = xhci_cmd_wait(&cmd, XHCI_DEFAULT_TIMEOUT);
    403403        if(err != EOK) {
    404404                free(ctx);
Note: See TracChangeset for help on using the changeset viewer.