Skip to content

Commit

Permalink
usb: mtu3: use @mult for HS isoc or intr
Browse files Browse the repository at this point in the history
commit fd7cb39 upstream.

For HS isoc or intr, should use @mult but not @burst
to save mult value.

Fixes: 4d79e04 ("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>
  • Loading branch information
Chunfeng Yun authored and gregkh committed Sep 12, 2021
1 parent 49c1ac6 commit aae2250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/mtu3/mtu3_gadget.c
Expand Up @@ -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:
Expand Down

0 comments on commit aae2250

Please sign in to comment.