Changeset 7bd34e5 in mainline for uspace/drv/uhci/root_hub/port.c


Ignore:
Timestamp:
2011-01-07T14:40:56Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8324b65
Parents:
92f924c8
Message:

Add synchronization via fibril_semaphore

WARNING: fibril_semaphore BREAKS the deadlock detection system
used by fibril synch primitives

File:
1 edited

Legend:

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

    r92f924c8 r7bd34e5  
    185185        return EOK;
    186186}
     187
    187188static usb_address_t assign_address_to_zero_device( device_t *hc )
    188189{
     
    211212
    212213        sync_value_t value;
     214        sync_init(&value);
    213215
    214216        uhci_setup(
     
    217219        uhci_print_verbose("address assignment sent, waiting to complete.\n");
    218220
    219 //      sync_wait_for(&value);
     221        sync_wait_for(&value);
    220222
    221223        uhci_print_info( "Assigned address %#x.\n", usb_address );
Note: See TracChangeset for help on using the changeset viewer.