Hi,

> On Fri, Mar 15, 2013 at 01:59:30PM +0800, victor yeo wrote:
>> For bulk transfer, the new UDC driver has one problem. When SCSI
>> Inquiry command is received, the UDC driver interrupt routine will
>> receive it first. However, the queue function is not yet called, and
>> queue buffer is not yet added. Thus, interrupt routine is not able to
>> store the SCSI Inquiry command to the queue buffer.
>>
>> This is a serious problem, what is the way to synchronise UDC driver
>> and file storage gadget driver for SCSI command bulk transfer?
>
> don't process the interrupt until you receive a queue. Data will be
> pending in controller's FIFO until then.
>

change to do exactly that, bulk transfer interrupt come in, don't
process, then queue function is called to add  queue buffer. After
that, no more bulk transfer interrupt come in.

regards,
victor
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to