Changeset df8f3fa in mainline for uspace/lib/usbhost/src/batch.c


Ignore:
Timestamp:
2011-08-24T13:32:47Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5fe0a69
Parents:
31bc40e
Message:

Fix: only reset ep if the control transfer was sucessful.

File:
1 edited

Legend:

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

    r31bc40e rdf8f3fa  
    3838#include <usb/debug.h>
    3939#include <usb/host/batch.h>
     40#include <usb/host/hcd.h>
    4041
    4142void usb_transfer_batch_call_in(usb_transfer_batch_t *instance);
     
    150151            str_error(instance->error));
    151152
     153        if (instance->ep->transfer_type == USB_TRANSFER_CONTROL
     154            && instance->error == EOK) {
     155                usb_target_t target =
     156                    {instance->ep->address, instance->ep->endpoint};
     157                reset_ep_if_need(
     158                    fun_to_hcd(instance->fun), target, instance->setup_buffer);
     159        }
     160
    152161        instance->callback_out(instance->fun,
    153162            instance->error, instance->arg);
Note: See TracChangeset for help on using the changeset viewer.