USB: add RESET_RESUME for webcams shown to be quirky
authorOliver Neukum <oneukum@suse.de>
Tue, 13 Sep 2011 06:42:21 +0000 (08:42 +0200)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:30 +0000 (15:35 -0400)
commit07f83bc23ce63d41fe22da7e9e75842cb03e6c16
treefba5c656b5ed99e2376d4ef386db5db320f8d773
parentd9724c0eaf683e14fb7a3868bbba6d1e0e48a7fe
USB: add RESET_RESUME for webcams shown to be quirky

commit 2394d67e446bf616a0885167d5f0d397bdacfdfc upstream.

The new runtime PM code has shown that many webcams suffer
from a race condition that may crash them upon resume.
Runtime PM is especially prone to show the problem because
it retains power to the cameras at all times. However
system suspension may also crash the devices and retain
power to the devices.
The only way to solve this problem without races is in
usbcore with the RESET_RESUME quirk.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/usb/core/quirks.c