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

Commit 9a32315b authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman
Browse files

staging: most: usb: don't set URB_ZERO_PACKET flag for synchronous data



This patch avoids setting the URB_ZERO_PACKET transfer flag for synchronous
data. This is needed to prevent the host from sending an empty packet when
data is aligned to an endpoint packet boundary.

Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d060bff7
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -592,7 +592,8 @@ static int hdm_enqueue(struct most_interface *iface, int channel,
				  length,
				  length,
				  hdm_write_completion,
				  hdm_write_completion,
				  mbo);
				  mbo);
		if (conf->data_type != MOST_CH_ISOC)
		if (conf->data_type != MOST_CH_ISOC &&
		    conf->data_type != MOST_CH_SYNC)
			urb->transfer_flags |= URB_ZERO_PACKET;
			urb->transfer_flags |= URB_ZERO_PACKET;
	} else {
	} else {
		usb_fill_bulk_urb(urb, mdev->usb_device,
		usb_fill_bulk_urb(urb, mdev->usb_device,