Re: [PATCH RESEND v4 2/9] usb: xhci: create one unified function to calculate TRB TD remainder

2020-09-09 Thread Marek Vasut
On 9/8/20 6:59 PM, Frank Wunderlich wrote: [...] > +static u32 xhci_td_remainder(struct xhci_ctrl *ctrl, int transferred, > + int trb_buff_len, unsigned int td_total_len, > + int maxp, bool more_trbs_coming) > { > - int packets_transferred; >

[PATCH RESEND v4 2/9] usb: xhci: create one unified function to calculate TRB TD remainder

2020-09-08 Thread Frank Wunderlich
From: Chunfeng Yun xhci versions 1.0 and later report the untransferred data remaining in a TD a bit differently than older hosts. We used to have separate functions for these, and needed to check host version before calling the right function. Now Mediatek host has an additional quirk on how