Changeset ac96b11 in mainline


Ignore:
Timestamp:
2015-06-29T04:45:22Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f9599b9c
Parents:
e9e80a9
Message:

ehci batch: make sure the td holding memory is mapped

add completion debug line

File:
1 edited

Legend:

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

    re9e80a9 rac96b11  
    6363                return;
    6464        if (ehci_batch->tds) {
    65                 const ehci_endpoint_t *ehci_ep =
    66                     ehci_endpoint_get(ehci_batch->usb_batch->ep);
    67                 assert(ehci_ep);
    6865                for (size_t i = 0; i < ehci_batch->td_count; ++i) {
    6966                        free32(ehci_batch->tds[i]);
     
    134131                        goto dispose;
    135132                }
     133                memset(ehci_batch->tds[i], 0, sizeof(td_t));
    136134        }
    137135
     
    238236        ehci_batch->qh->next = LINK_POINTER_TERM;
    239237        ehci_batch->qh->current = LINK_POINTER_TERM;
     238        usb_log_debug("Batch %p complete.\n", ehci_batch->usb_batch);
    240239
    241240        return true;
     
    283282
    284283        /* Setup stage */
    285         td_init(
    286             ehci_batch->tds[0], ehci_batch->tds[1], USB_DIRECTION_BOTH,
     284        td_init(ehci_batch->tds[0], ehci_batch->tds[1], USB_DIRECTION_BOTH,
    287285            buffer, ehci_batch->usb_batch->setup_size, toggle, false);
    288286        usb_log_debug2("Created CONTROL SETUP TD(%"PRIxn"): %08x:%08x:%08x",
Note: See TracChangeset for help on using the changeset viewer.