Changeset 5fd9c30 in mainline for uspace/drv/bus/usb/ohci/hc.c


Ignore:
Timestamp:
2017-10-21T20:52:56Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
766043c
Parents:
74b852b
Message:

usbhost refactoring: let transfer_batch be initialized by bus

Currently makes older HCs fail, work in progress.

File:
1 edited

Legend:

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

    r74b852b r5fd9c30  
    295295                return ENOMEM;
    296296
     297        const int err = ohci_transfer_batch_prepare(ohci_batch);
     298        if (err)
     299                return err;
     300
    297301        fibril_mutex_lock(&instance->guard);
    298302        list_append(&ohci_batch->link, &instance->pending_batches);
     
    346350                            ohci_transfer_batch_from_link(current);
    347351
    348                         if (ohci_transfer_batch_is_complete(batch)) {
     352                        if (ohci_transfer_batch_check_completed(batch)) {
    349353                                list_remove(current);
    350                                 ohci_transfer_batch_finish_dispose(batch);
     354                                usb_transfer_batch_finish(&batch->base);
    351355                        }
    352356
Note: See TracChangeset for help on using the changeset viewer.