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

Commit 729ed6d5 authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman
Browse files

USB: ethernet gadget avoids zlps for musb_hdrc



For systems using the Mentor HDRC controllers we get better TX DMA throughput
if we can avoid falling back to PIO to write zero length packets ... so tell
the driver to avoid ZLPs.

Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4d6cd483
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -2230,6 +2230,9 @@ eth_bind (struct usb_gadget *gadget)
	if (gadget_is_pxa (gadget)) {
	if (gadget_is_pxa (gadget)) {
		/* pxa doesn't support altsettings */
		/* pxa doesn't support altsettings */
		cdc = 0;
		cdc = 0;
	} else if (gadget_is_musbhdrc(gadget)) {
		/* reduce tx dma overhead by avoiding special cases */
		zlp = 0;
	} else if (gadget_is_sh(gadget)) {
	} else if (gadget_is_sh(gadget)) {
		/* sh doesn't support multiple interfaces or configs */
		/* sh doesn't support multiple interfaces or configs */
		cdc = 0;
		cdc = 0;