In order to estimate when fs/ls transactions appear on a downstream bus,
the host must calculate a best case full-speed budget, use a table to
track how many bytes occure in each microframe.
This patch is prepared for introducing an improved bandwidth scheduling.
Signed-off-by: Chunfeng Yun <chunfeng.yun@xxxxxxxxxxxx>
---
drivers/usb/host/xhci-mtk-sch.c | 113 +++++++++++++++++++++++---------
drivers/usb/host/xhci-mtk.h | 4 +-
2 files changed, 85 insertions(+), 32 deletions(-)