diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2021-08-13 09:30:48 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-08-13 14:05:50 +0300 |
commit | fd7cb394ec7efccc3985feb0978cee4d352e1817 (patch) | |
tree | 9b966c13b5a7eb14f757be47ca4a5b033bbb2636 /drivers | |
parent | e88f28514065a6c48aadc367efb0ef6378a01543 (diff) | |
download | linux-fd7cb394ec7efccc3985feb0978cee4d352e1817.tar.xz |
usb: mtu3: use @mult for HS isoc or intr
For HS isoc or intr, should use @mult but not @burst
to save mult value.
Fixes: 4d79e042ed8b ("usb: mtu3: add support for usb3.1 IP")
Cc: stable@vger.kernel.org
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1628836253-7432-2-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/mtu3/mtu3_gadget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/mtu3/mtu3_gadget.c b/drivers/usb/mtu3/mtu3_gadget.c index 7b54631ca335..45e7d2e3b04b 100644 --- a/drivers/usb/mtu3/mtu3_gadget.c +++ b/drivers/usb/mtu3/mtu3_gadget.c @@ -92,7 +92,7 @@ static int mtu3_ep_enable(struct mtu3_ep *mep) usb_endpoint_xfer_int(desc)) { interval = desc->bInterval; interval = clamp_val(interval, 1, 16) - 1; - burst = (max_packet & GENMASK(12, 11)) >> 11; + mult = (max_packet & GENMASK(12, 11)) >> 11; } break; default: |