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. -- balbi
Attachment:
signature.asc
Description: PGP signature