usb: xhci-mtk: skip dropping bandwidth of unchecked endpoints
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Mon, 1 Feb 2021 05:57:44 +0000 (13:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2021 08:29:11 +0000 (09:29 +0100)
commit85f0409e9ce3ea2d2f526353e8645e1406f72950
tree1f49b0e11a25376980a4d3ee8e57979538d588f7
parent5139bf6a3455c0a9ddaf1c8cb20a50a649ecac55
usb: xhci-mtk: skip dropping bandwidth of unchecked endpoints

commit 54f6a8af372213a254af6609758d99f7c0b6b5ad upstream.

For those unchecked endpoints, we don't allocate bandwidth for
them, so no need free the bandwidth, otherwise will decrease
the allocated bandwidth.
Meanwhile use xhci_dbg() instead of dev_dbg() to print logs and
rename bw_ep_list_new as bw_ep_chk_list.

Fixes: 1d69f9d901ef ("usb: xhci-mtk: fix unreleased bandwidth data")
Cc: stable <stable@vger.kernel.org>
Reviewed-and-tested-by: Ikjoon Jang <ikjn@chromium.org>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1612159064-28413-1-git-send-email-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