Changeset 705f83a in mainline


Ignore:
Timestamp:
2018-01-29T16:05:44Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8bfb163
Parents:
ee0ffa6
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-29 16:04:43)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-29 16:05:44)
Message:

ohci: fix the batch preparation time again

Due to the stupid design decision of leaving one TD behind a transfer,
the batch preparation needs to be done with EP locked.

File:
1 edited

Legend:

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

    ree0ffa6 r705f83a  
    301301        ohci_endpoint_t * const ohci_ep = ohci_endpoint_get(ep);
    302302        ohci_transfer_batch_t *ohci_batch = ohci_transfer_batch_get(batch);
    303 
    304303        int err;
    305         if ((err = ohci_transfer_batch_prepare(ohci_batch)))
    306                 return err;
    307304
    308305        fibril_mutex_lock(&hc->guard);
     
    311308                return err;
    312309        }
     310
     311        if ((err = ohci_transfer_batch_prepare(ohci_batch)))
     312                return err;
    313313
    314314        ohci_transfer_batch_commit(ohci_batch);
Note: See TracChangeset for help on using the changeset viewer.