Changeset 1c258d1 in mainline


Ignore:
Timestamp:
2011-04-09T23:59:36Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c19329a, d824daf
Parents:
46e078a
Message:

Getting default address less active

Now the fibril sleeps for at least the time needed for a
typical reset.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/hub.c

    r46e078a r1c258d1  
    4141#include <assert.h>
    4242#include <usb/debug.h>
     43
     44/** How much time to wait between attempts to register endpoint 0:0.
     45 * The value is based on typical value for port reset + some overhead.
     46 */
     47#define ENDPOINT_0_0_REGISTER_ATTEMPT_DELAY_USEC (1000 * (10 + 2))
    4348
    4449/** Check that HC connection is alright.
     
    232237                if (rc != EOK) {
    233238                        /* Do not overheat the CPU ;-). */
    234                         async_usleep(10);
     239                        async_usleep(ENDPOINT_0_0_REGISTER_ATTEMPT_DELAY_USEC);
    235240                }
    236241        } while (rc != EOK);
Note: See TracChangeset for help on using the changeset viewer.