Re: [PATCH v3 2/4] usb: dwc3: gadget: Account for extra TRB

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

 



Felipe Balbi wrote:
> Hi,
>
> Thinh Nguyen <Thinh.Nguyen@xxxxxxxxxxxx> writes:
>> When checking for how many TRB remaining, make sure to account for extra
>> TRBs for ZLP or MPS alignment transfers. Since the dwc3_prepare_trb*
>> functions should know if we need the extra TRBs, make those functions
>> return a status code -EAGAIN if there isn't enough TRB. Check against
>> those status when preparing TRB instead.
>>
>> Fixes: c6267a51639b ("usb: dwc3: gadget: align transfers to wMaxPacketSize")
>> Signed-off-by: Thinh Nguyen <thinhn@xxxxxxxxxxxx>
> this is quite extensive for a fix and it also depends on the previous
> refactoring from what I can tell. In that case, you can break this down
> into smaller patches.
>

Sure. I'll break it down more and revise it so there's no dependency on
the previous cleanup patch.

Thanks,
Thinh




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

  Powered by Linux