usb: xhci-mtk: fix ISOC error when interval is zero
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Thu, 20 Sep 2018 16:13:32 +0000 (19:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 17:00:52 +0000 (18:00 +0100)
commit9d7681036dd09c5e4c8699f413188a9ab8b53efb
treec5ad42857e6c8b77c8df88068386ac07b815c408
parent85562d7a4fa73c35bcbe64565a801b0ee7230708
usb: xhci-mtk: fix ISOC error when interval is zero

[ Upstream commit 87173acc0d8f0987bda8827da35fff67f52ad15d ]

If the interval equal zero, needn't round up to power of two
for the number of packets in each ESIT, so fix it.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/host/xhci-mtk-sch.c