Message ID | 1628836253-7432-7-git-send-email-chunfeng.yun@mediatek.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 97d99f7e8f1ccaa18d6447f4a3b0b48ed64aa214 |
Headers | show |
Series | [v3,1/7] usb: mtu3: restore HS function when set SS/SSP | expand |
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index 75c7538e350a..f181c84310b6 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h @@ -491,7 +491,7 @@ extern char *usb_get_gadget_udc_name(void); */ static inline size_t usb_ep_align(struct usb_ep *ep, size_t len) { - int max_packet_size = (size_t)usb_endpoint_maxp(ep->desc) & 0x7ff; + int max_packet_size = (size_t)usb_endpoint_maxp(ep->desc); return round_up(len, max_packet_size); }