usb: xhci-mtk: fix in-ep's start-split check failure
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Sat, 18 Nov 2023 03:30:11 +0000 (11:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Nov 2023 14:31:25 +0000 (15:31 +0100)
commit61d2cf0db741827724d33079b4a54bf99a32b8e5
treec80e9a76bfa711a87a9cff8b89e600f71ef4433b
parent8bbae288a85abed6a1cf7d185d8b9dc2f5dcb12c
usb: xhci-mtk: fix in-ep's start-split check failure

It's wrong to use the data length in a CS (in uframe x) to check whether
there is a SS (in uframe x-2), because for a isoc-in ep, it may need some
CS to receive data;
Save the count of SS in a uframe for isoc/intr in-eps to fix the issue.

Fixes: 5c954e030f55 ("usb: xhci-mtk: improve split scheduling by separate IN/OUT budget")
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20231118033011.22033-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