Re: [PATCH] USB: musb_gadget: fix ZLP sending in musb_g_tx(v1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/9/23 Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>:

>> >I think so too. But I am not sure, since I don't know why the
>> >request->length check is introduced, so I don't remove the check in
>> >the patch and just fix the ZLP issue only.
>
> The check is there in order to prevent the controller driver from
> sending _two_ ZLPs when the gadget driver queues a request with
> request.length == 0 and request.zero set.

Seems there is no such problem of sending _two_ ZLPs in the case.
The request will be giveback immediately after the 1st ZLP is sent
since request.length == request.actual == 0 will trigger giveback.

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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux