linux-stable/drivers/media
Brad Love e4504b80e0 media: em28xx: USB bulk packet size fix
[ Upstream commit c7c7e8d780 ]

Hauppauge em28xx bulk devices exhibit continuity errors and corrupted
packets, when run in VMWare virtual machines. Unknown if other
manufacturers bulk models exhibit the same issue. KVM/Qemu is unaffected.

According to documentation the maximum packet multiplier for em28xx in bulk
transfer mode is 256 * 188 bytes. This changes the size of bulk transfers
to maximum supported value and have a bonus beneficial alignment.

Before:

After:

This sets up USB to expect just as many bytes as the em28xx is set to emit.

Successful usage under load afterwards natively and in both VMWare
and KVM/Qemu virtual machines.

Signed-off-by: Brad Love <brad@nextdimension.cc>
Reviewed-by: Michael Ira Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-25 16:17:42 +02:00
..
cec License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
common License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dvb-core dvb_frontend: don't use-after-free the frontend struct 2017-12-17 15:08:01 +01:00
dvb-frontends media: lgdt3306a: Fix module count mismatch on usb unplug 2018-05-25 16:17:42 +02:00
firewire
i2c media: ov13858: Select V4L2_FWNODE 2018-02-25 11:07:55 +01:00
mmc License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci media: bt8xx: Fix err 'bt878_probe()' 2018-03-24 11:01:22 +01:00
platform media: vsp1: Fix BRx conditional path in WPF 2018-04-24 09:36:25 +02:00
radio License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rc media: rc: partial revert of "media: rc: per-protocol repeat period" 2017-12-14 09:53:00 +01:00
spi
tuners media: r820t: fix r820t_write_reg for KASAN 2018-02-22 15:42:32 +01:00
usb media: em28xx: USB bulk packet size fix 2018-05-25 16:17:42 +02:00
v4l2-core media: v4l2-compat-ioctl32: don't oops on overlay 2018-04-19 08:56:16 +02:00
Kconfig media: rc-core: do not depend on MEDIA_SUPPORT 2017-08-20 09:39:36 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
media-device.c media: drop use of MEDIA_API_VERSION 2017-08-08 06:03:15 -04:00
media-devnode.c media: utilize new cdev_device_add helper function 2017-03-21 06:44:33 +01:00
media-entity.c media: Make parameter of media_entity_remote_pad() const 2017-07-20 16:54:04 -04:00