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

Changeset 50cd285 in mainline for uspace/drv/uhci-rhd/port.c


Ignore:
Timestamp:
2011-05-13T14:45:09Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
72cd53d, d83bf51
Parents:
8fcaeed (diff), a29529b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Fix bug #98 Initialization of devices

Doxygen fixes
Adds new SYS_THREAD_DELAY syscall

File:
1 edited

Legend:

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

    r8fcaeed r50cd285  
    3636#include <errno.h>
    3737#include <str_error.h>
     38#include <time.h>
    3839
    3940#include <usb/usb.h>    /* usb_address_t */
     
    6566 *
    6667 * @param[in] port Structure to use.
    67  * @param[in] value New register value.
     68 * @param[in] val New register value.
    6869 * @return Error code. (Always EOK)
    6970 */
     
    7778 *
    7879 * @param[in] port Memory structure to use.
    79  * @param[in] addr Address of I/O register.
     80 * @param[in] address Address of I/O register.
    8081 * @param[in] number Port number.
    8182 * @param[in] usec Polling interval.
     
    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.