]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: cdnsp: fix the wrong mult value for HS isoc or intr
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Fri, 13 Aug 2021 06:30:50 +0000 (14:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Sep 2021 06:59:59 +0000 (08:59 +0200)
commite837b275522a4ee2733f83dc1e1db35aeab708d0
treeb2595a8afff6b0ede9f7af394c63b25ef3ec1271
parent3cdae99528f36bfc9d1d69b61a68b47636dae5e5
usb: cdnsp: fix the wrong mult value for HS isoc or intr

commit e9ab75f26eb9354dfc03aea3401b8cfb42cd6718 upstream.

usb_endpoint_maxp() only returns the bit[10:0] of wMaxPacketSize
of endpoint descriptor, not include bit[12:11] anymore, so use
usb_endpoint_maxp_mult() instead.

Fixes: 3d82904559f4 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver")
Cc: stable@vger.kernel.org
Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1628836253-7432-4-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/cdnsp-mem.c