diff options
author | 2018-05-08 11:45:14 +0200 | |
---|---|---|
committer | 2018-05-08 13:41:51 +0200 | |
commit | 9a32315b0b162a9ec13c41c0c69d4b93095494ca (patch) | |
tree | a635f0c6b077c20fb8548f731f88bf17818cad89 /drivers/staging/most | |
parent | staging: most: dim2: use device to allocate coherent memory (diff) | |
download | linux-9a32315b0b162a9ec13c41c0c69d4b93095494ca.tar.gz linux-9a32315b0b162a9ec13c41c0c69d4b93095494ca.tar.bz2 linux-9a32315b0b162a9ec13c41c0c69d4b93095494ca.zip |
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: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r-- | drivers/staging/most/usb/usb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/most/usb/usb.c b/drivers/staging/most/usb/usb.c index 3126b69cc392..d102b08a5504 100644 --- a/drivers/staging/most/usb/usb.c +++ b/drivers/staging/most/usb/usb.c @@ -592,7 +592,8 @@ static int hdm_enqueue(struct most_interface *iface, int channel, length, hdm_write_completion, 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; } else { usb_fill_bulk_urb(urb, mdev->usb_device, |