Changeset 063dfe8 in mainline for uspace/drv/bus/usb/xhci/bus.c


Ignore:
Timestamp:
2017-10-13T13:04:26Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dcf0597
Parents:
c10daa8
Message:

Moved initialization and polished some log messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/bus.c

    rc10daa8 r063dfe8  
    110110}
    111111
    112 static int hashed_device_create(xhci_bus_t *bus, hashed_device_t **hashed_dev)
     112static int hashed_device_create(xhci_bus_t *bus, hashed_device_t **hashed_dev, usb_address_t address)
    113113{
    114114        int res;
     
    119119        }
    120120
    121         res = xhci_device_init(dev, bus);
     121        res = xhci_device_init(dev, bus, address);
    122122        if (res != EOK) {
    123123                goto err_xhci_dev_init;
    124124        }
    125 
    126         // TODO: Set device data.
    127125
    128126        hashed_device_t *ret_dev = (hashed_device_t *) malloc(sizeof(hashed_device_t));
     
    166164
    167165        if (res == ENOENT) {
    168                 res = hashed_device_create(bus, &hashed_dev);
     166                res = hashed_device_create(bus, &hashed_dev, ep->target.address);
    169167
    170168                if (res != EOK)
Note: See TracChangeset for help on using the changeset viewer.