diff options
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/cypress_m8.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index 47a18193aba..60c200230bc 100644 --- a/drivers/usb/serial/cypress_m8.c +++ b/drivers/usb/serial/cypress_m8.c | |||
@@ -73,6 +73,7 @@ | |||
73 | static int debug; | 73 | static int debug; |
74 | static int stats; | 74 | static int stats; |
75 | static int interval; | 75 | static int interval; |
76 | static int unstable_bauds; | ||
76 | 77 | ||
77 | /* | 78 | /* |
78 | * Version Information | 79 | * Version Information |
@@ -291,6 +292,9 @@ static int analyze_baud_rate(struct usb_serial_port *port, speed_t new_rate) | |||
291 | struct cypress_private *priv; | 292 | struct cypress_private *priv; |
292 | priv = usb_get_serial_port_data(port); | 293 | priv = usb_get_serial_port_data(port); |
293 | 294 | ||
295 | if (unstable_bauds) | ||
296 | return new_rate; | ||
297 | |||
294 | /* | 298 | /* |
295 | * The general purpose firmware for the Cypress M8 allows for | 299 | * The general purpose firmware for the Cypress M8 allows for |
296 | * a maximum speed of 57600bps (I have no idea whether DeLorme | 300 | * a maximum speed of 57600bps (I have no idea whether DeLorme |
@@ -1643,3 +1647,5 @@ module_param(stats, bool, S_IRUGO | S_IWUSR); | |||
1643 | MODULE_PARM_DESC(stats, "Enable statistics or not"); | 1647 | MODULE_PARM_DESC(stats, "Enable statistics or not"); |
1644 | module_param(interval, int, S_IRUGO | S_IWUSR); | 1648 | module_param(interval, int, S_IRUGO | S_IWUSR); |
1645 | MODULE_PARM_DESC(interval, "Overrides interrupt interval"); | 1649 | MODULE_PARM_DESC(interval, "Overrides interrupt interval"); |
1650 | module_param(unstable_bauds, bool, S_IRUGO | S_IWUSR); | ||
1651 | MODULE_PARM_DESC(unstable_bauds, "Allow unstable baud rates"); | ||