Commit d6a9a430 authored by Devin Heitmueller's avatar Devin Heitmueller Committed by Mauro Carvalho Chehab

V4L/DVB (11928): au0828: provide module option to disable USB speed check

Add an au0828 module option that allows a user to override the USB speed check.
Intended for advanced users who understand the consequences of trying to use
the device with a 12Mbps bus.
Signed-off-by: default avatarDevin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e2a1b79f
...@@ -36,6 +36,11 @@ int au0828_debug; ...@@ -36,6 +36,11 @@ int au0828_debug;
module_param_named(debug, au0828_debug, int, 0644); module_param_named(debug, au0828_debug, int, 0644);
MODULE_PARM_DESC(debug, "enable debug messages"); MODULE_PARM_DESC(debug, "enable debug messages");
static unsigned int disable_usb_speed_check;
module_param(disable_usb_speed_check, int, 0444);
MODULE_PARM_DESC(disable_usb_speed_check,
"override min bandwidth requirement of 480M bps");
#define _AU0828_BULKPIPE 0x03 #define _AU0828_BULKPIPE 0x03
#define _BULKPIPESIZE 0xffff #define _BULKPIPESIZE 0xffff
...@@ -186,7 +191,7 @@ static int au0828_usb_probe(struct usb_interface *interface, ...@@ -186,7 +191,7 @@ static int au0828_usb_probe(struct usb_interface *interface,
* video stream wouldn't likely work, since 12 Mbps is generally * video stream wouldn't likely work, since 12 Mbps is generally
* not enough even for most Digital TV streams. * not enough even for most Digital TV streams.
*/ */
if (usbdev->speed != USB_SPEED_HIGH) { if (usbdev->speed != USB_SPEED_HIGH && disable_usb_speed_check == 0) {
printk(KERN_ERR "au0828: Device initialization failed.\n"); printk(KERN_ERR "au0828: Device initialization failed.\n");
printk(KERN_ERR "au0828: Device must be connected to a " printk(KERN_ERR "au0828: Device must be connected to a "
"high-speed USB 2.0 port.\n"); "high-speed USB 2.0 port.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment