[media] gspca: Fix ov519 i2c r/w not working when connected to a xhci host
authorWesley Post <pa4wdh@xs4all.nl>
Mon, 29 Feb 2016 18:39:10 +0000 (15:39 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 1 Mar 2016 13:40:14 +0000 (10:40 -0300)
commitf7c7ac480d246f2f625a70f56ea6650710c23f30
treef9c01e88c7c267edc465b471f5ae79df7d03ac8f
parent5c915c68763889f0183a1cc61c84bb228b60124a
[media] gspca: Fix ov519 i2c r/w not working when connected to a xhci host

Fix the ov519 driver not working (unable to talk to the sensor) when
plugged into a xhci host. The root cause here is that uhci/ohci/ehci
hosts typically will send any pending async requests every milli-second
and then go to sleep for the rest if the milli-second, where as xhci hosts
send them immediately, causing things to go too fast for the ov519 bridge.

This commit adds a few delays fixing this.

Signed-off-by: Wesley Post <pa4wdh@xs4all.nl>
[hdegoede@redhat.com: Also add delays to w996Xcf.c, as that needs them too]
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/gspca/ov519.c
drivers/media/usb/gspca/w996Xcf.c