[media] tm6000: Fix fast USB access quirk
authorThierry Reding <thierry.reding@avionic-design.de>
Tue, 6 Dec 2011 12:05:03 +0000 (09:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 11 Dec 2011 12:46:58 +0000 (10:46 -0200)
The original patch used the fast USB quirk to enable fast access to
registers in the tm6000_read_write_usb(). The applied patch moved the
check to the tm6000_reset(), probably due to some merge conflicts.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/tm6000/tm6000-core.c

index fa37b5fc7b2ac449b3438e8809def6292ae6b1fa..979c85b73814d0ae731c391d46d984a11387a891 100644 (file)
@@ -88,7 +88,9 @@ int tm6000_read_write_usb(struct tm6000_core *dev, u8 req_type, u8 req,
        }
 
        kfree(data);
-       msleep(5);
+
+       if ((dev->quirks & TM6000_QUIRK_NO_USB_DELAY) == 0)
+               msleep(5);
 
        mutex_unlock(&dev->usb_lock);
        return ret;