u-boot-brain/drivers/usb
Chunfeng Yun e3ea481bee usb: xhci: create one unified function to calculate TRB TD remainder
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 it uses the TD Size
field for remaining data. To prevent yet another function for calculating
remainder we instead want to make one quirk friendly unified function.

Porting from the Linux:
c840d6ce772d("xhci: create one unified function to calculate TRB TD remainder.")
124c39371114("xhci: use boolean to indicate last trb in td remainder calculation")

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2020-10-01 19:43:05 +02:00
..
cdns3 usb: cdns3: Fix not calling dev_xxx with a device 2020-09-30 08:53:51 -04:00
common treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
dwc3 usb: dwc3: Don't include asm-generic/io.h 2020-09-30 08:53:59 -04:00
emul common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
eth eth/r8152: support RTL8153B/RTL8154B 2020-09-01 14:47:36 +02:00
gadget fastboot: Fix fastboot reboot fail by changing functions order 2020-09-01 14:47:43 +02:00
host usb: xhci: create one unified function to calculate TRB TD remainder 2020-10-01 19:43:05 +02:00
musb common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
musb-new usb: musb-new: sunxi: Fix not calling dev_err with a device 2020-09-30 08:54:01 -04:00
phy common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ulpi common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
Kconfig drivers: usb: Fix config indentation 2020-08-27 11:20:33 -04:00