Changeset 5156580 in mainline


Ignore:
Timestamp:
2011-03-21T13:37:40Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9078de8f
Parents:
d328172
Message:

Set rh address to 0 during dummy_reset

Location:
uspace/drv/ohci
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/hc.c

    rd328172 r5156580  
    4545#include "hc.h"
    4646
    47 static int dummy_reset(int foo, void *bar)
     47static int dummy_reset(int foo, void *arg)
    4848{
     49        hc_t *hc = (hc_t*)arg;
     50        assert(hc);
     51        hc->rh.address = 0;
    4952        return EOK;
    5053}
     
    9598        devman_handle_t handle;
    9699        ret = usb_hc_new_device_wrapper(dev, &conn, USB_SPEED_FULL, dummy_reset,
    97             0, NULL, &address, &handle, NULL, NULL, NULL);
     100            0, instance, &address, &handle, NULL, NULL, NULL);
    98101        CHECK_RET_RETURN(ret, "Failed to add rh device.\n");
    99102
  • uspace/drv/ohci/root_hub.c

    rd328172 r5156580  
    4646{
    4747        assert(instance);
    48         instance->address = 0;
     48        instance->address = -1;
    4949        instance->registers = regs;
    5050        instance->device = dev;
Note: See TracChangeset for help on using the changeset viewer.