Re: USB: Question about usb_write() API

Sundar Subramaniyan

Hi Andrei,

On Tue, Jan 30, 2018 at 9:01 PM, andrei.emeltchenko@... <> wrote:
I think API states it supports both methods:

Yes, it does support both of them. So new drivers should support both of them to be inline with the API definition?
As Paul pointed out, some old drivers might need to be modified since some applications assume the drivers' fragmentation support.
Fragmentation to USB packets is done on a higher level, in function_ecm
and finction_rndis files.

Thanks for pointing this. I'll look how this is being used.
Please also look to usb_dc_ep_transfer() implemented for DW and STM32:

Will look into it. Thanks.
Best regards
Andrei Emeltchenko


Join to automatically receive all group messages.