Changeset 72e19f50 in mainline


Ignore:
Timestamp:
2011-01-29T10:31:09Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
37ac7bb
Parents:
4687fcd4
Message:

Nasty ugly fix that eats puppies, connection to hc postponed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci/root_hub/port.c

    r4687fcd4 r72e19f50  
    1515int uhci_port_check(void *port)
    1616{
     17        async_usleep( 1000000 );
    1718        uhci_port_t *port_instance = port;
    1819        assert(port_instance);
    1920        port_instance->hc_phone = devman_device_connect(port_instance->hc->handle, 0);
     21        if (port_instance->hc_phone < 0) {
     22                uhci_print_fatal("Failed(%d) to connect to the hc(handle=%x.\n",
     23                        port_instance->hc_phone, (unsigned)port_instance->hc->handle);
     24                return port_instance->hc_phone;
     25        }
    2026
    2127        while (1) {
Note: See TracChangeset for help on using the changeset viewer.