usb: xhci-mtk: add a bandwidth budget table
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Wed, 30 Aug 2023 12:28:19 +0000 (20:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Oct 2023 14:32:18 +0000 (16:32 +0200)
commitba6b83a910b6d8a9379bda55cbf06cb945473a96
treef288e5916ae55df894d9c24ef0c1bf3ebc939fb2
parent0e650c94a422be51b1dbe3cb4598ab247adabb29
usb: xhci-mtk: add a bandwidth budget table

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@mediatek.com>
Link: https://lore.kernel.org/r/20230830122820.18859-1-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mtk-sch.c
drivers/usb/host/xhci-mtk.h