Changeset c33c40e in mainline


Ignore:
Timestamp:
2017-08-20T14:27:34Z (7 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9304b66
Parents:
17f24d9
Message:

Fixed infinite loop bug. Support non-zero address for RH.

Location:
uspace/drv/bus/usb/xhci
Files:
3 edited

Legend:

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

    r17f24d9 rc33c40e  
    368368
    369369        /* Check for root hub communication */
    370         /* FIXME: Zero is a very crude workaround. Detect RH better. */
    371370        if (batch->ep->address == xhci_rh_get_address(&hc->rh)) {
    372371                usb_log_debug("XHCI root hub request.\n");
  • uspace/drv/bus/usb/xhci/rh.c

    r17f24d9 rc33c40e  
    382382        /* TODO: Implement me! */
    383383        usb_log_debug2("Called req_status_change_handler().");
    384         return EOK;
     384        return ENAK;
    385385}
    386386
  • uspace/drv/bus/usb/xhci/rh.h

    r17f24d9 rc33c40e  
    7474{
    7575        assert(rh);
    76         /* FIXME: The line end below causes infinite loop. */
    77         return 0; // virthub_base_get_address(&rh->base);
     76        return virthub_base_get_address(&rh->base);
    7877}
    7978
Note: See TracChangeset for help on using the changeset viewer.