Changeset 0f6b50f in mainline for uspace/drv/bus/usb/xhci/rh.c


Ignore:
Timestamp:
2017-10-19T20:00:08Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1fd2f81
Parents:
60af4cdb
Message:

Added DDF device to HCD initialization to prepare RH data structures before it is started.

File:
1 edited

Legend:

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

    r60af4cdb r0f6b50f  
    6161        XHCI_REG_MASK(XHCI_PORT_CEC);
    6262
    63 int xhci_rh_init(xhci_rh_t *rh, xhci_hc_t *hc)
     63int xhci_rh_init(xhci_rh_t *rh, xhci_hc_t *hc, ddf_dev_t *device)
    6464{
    6565        assert(rh);
     
    6868        rh->hc = hc;
    6969        rh->max_ports = XHCI_REG_RD(hc->cap_regs, XHCI_CAP_MAX_PORTS);
    70 
    71         return EOK;
     70        hc->rh.hc_device = device;
     71
     72        return device_init(&hc->rh.device);
    7273}
    7374
     
    211212        int err;
    212213        assert(rh);
     214        assert(rh->hc_device);
    213215
    214216        xhci_bus_t *bus = &rh->hc->bus;
Note: See TracChangeset for help on using the changeset viewer.