Changeset 2ca5a198 in mainline


Ignore:
Timestamp:
2018-01-31T22:45:41Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
73a5857
Parents:
0247bd2
Message:

usb: fix some errors

Location:
uspace/drv/bus/usb
Files:
2 edited

Legend:

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

    r0247bd2 r2ca5a198  
    139139        }
    140140
    141         assert(batch_setup[ehci_batch->base.ep->transfer_type]);
     141        if (!batch_setup[ehci_batch->base.ep->transfer_type])
     142                return ENOTSUP;
     143
    142144        batch_setup[ehci_batch->base.ep->transfer_type](ehci_batch);
    143145
  • uspace/drv/bus/usb/ohci/ohci_batch.c

    r0247bd2 r2ca5a198  
    149149                memcpy(ohci_batch->device_buffer, usb_batch->setup.buffer, setup_size);
    150150                /* Copy generic data */
    151                 if (usb_batch->ep->direction != USB_DIRECTION_IN)
     151                if (usb_batch->dir == USB_DIRECTION_OUT)
    152152                        memcpy(
    153153                            ohci_batch->device_buffer + setup_size,
Note: See TracChangeset for help on using the changeset viewer.