Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 00bbc362 in mainline


Ignore:
Timestamp:
2014-01-26T03:15:39Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
07645906
Parents:
46ec8112
Message:

ehci: Fix data transfer initialization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/ehci_batch.c

    r46ec8112 r00bbc362  
    358358                    ? EHCI_TD_MAX_TRANSFER : remain_size;
    359359
     360                const bool last = (remain_size == transfer_size);
    360361                td_init(
    361                     ehci_batch->tds[td_current], ehci_batch->tds[td_current + 1],
    362                     dir, buffer, transfer_size, -1, remain_size == transfer_size);
     362                    ehci_batch->tds[td_current], last ? NULL :
     363                    ehci_batch->tds[td_current + 1], dir, buffer, transfer_size,
     364                    -1, last);
    363365
    364366                usb_log_debug2("Created DATA TD(%"PRIxn": %08x:%08x:%08x",
Note: See TracChangeset for help on using the changeset viewer.