Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f60a16fb authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: Use 512 bytes as min RX buffer size"

parents 62056f62 b6bf7ab2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -617,7 +617,8 @@ static inline size_t
usb_ep_align_maybe(struct usb_gadget *g, struct usb_ep *ep, size_t len)
{
	return !g->quirk_ep_out_aligned_size ? len :
			round_up(len, (size_t)ep->desc->wMaxPacketSize);
			max_t(size_t, 512,
			round_up(len, (size_t)ep->desc->wMaxPacketSize));
}

/**