Changeset 2b61945 in mainline for uspace/lib/usbhost/src/hcd.c


Ignore:
Timestamp:
2017-10-22T03:47:41Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2e5aea1
Parents:
766043c
Message:

xhci: use device_t for bookkeeping

This started as a little refactoring to move active transfer batch to endpoint. Finding the EP in handler needs devices indexed by slot id. Then I found out we do not use the device_t extendable mechanism. Then there were a lot of errors found while doing all this…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/hcd.c

    r766043c r2b61945  
    4141#include <errno.h>
    4242#include <usb_iface.h>
     43#include <str_error.h>
    4344
    4445#include "hcd.h"
     
    128129
    129130        const int ret = hcd->ops.schedule(hcd, batch);
    130         if (ret != EOK)
     131        if (ret != EOK) {
     132                usb_log_warning("Batch %p failed to schedule: %s", batch, str_error(ret));
    131133                usb_transfer_batch_destroy(batch);
     134        }
    132135
    133136        /* Drop our own reference to ep. */
Note: See TracChangeset for help on using the changeset viewer.