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

Changeset 81db65b in mainline


Ignore:
Timestamp:
2011-05-13T14:37:07Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
a29529b
Parents:
5fd3f2d
Message:

Use newly added udealy function instead of silent usb_log

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-rhd/port.c

    r5fd3f2d r81db65b  
    3636#include <errno.h>
    3737#include <str_error.h>
     38#include <time.h>
    3839
    3940#include <usb/usb.h>    /* usb_address_t */
     
    224225                uhci_port_write_status(port, port_status);
    225226                while (uhci_port_read_status(port) & STATUS_IN_RESET);
    226                 // TODO: find a better way to waste time (it should be less than
    227                 // 10ms, if we reschedule it takes too much time (random
    228                 // interrupts can be solved by multiple attempts).
    229                 usb_log_debug2("%s: Reset Signal stop.\n", port->id_string);
    230         }
     227        }
     228        udelay(10);
    231229        /* Enable the port. */
    232230        uhci_port_set_enabled(port, true);
Note: See TracChangeset for help on using the changeset viewer.