Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset ba2e17f in mainline


Ignore:
Timestamp:
2018-01-12T19:23:32Z (4 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master
Children:
5d25984
Parents:
e7e99bf
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-12 19:18:53)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-12 19:23:32)
Message:

xhci: retry addressing device

File:
1 edited

Legend:

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

    re7e99bf rba2e17f  
    163163        }
    164164
    165         /* Assign an address to the device */
    166         if ((err = address_device(bus, xhci_dev))) {
     165        int retries = 3;
     166        do {
     167                /* Assign an address to the device */
     168                err = address_device(bus, xhci_dev);
     169        } while (err == ESTALL && --retries > 0);
     170
     171        if (err) {
    167172                usb_log_error("Failed to setup address of the new device: %s", str_error(err));
    168173                return err;
Note: See TracChangeset for help on using the changeset viewer.