From 483ccd00c17db8752fe343a5096e0daa8d992f08 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 18 Dec 2009 16:33:03 -0500 Subject: [PATCH] --- yaml --- r: 185259 b: refs/heads/master c: c312659c5ff1e54bac2d91e1ce1005d58784a7b5 h: refs/heads/master i: 185257: 9f94117e20d7fe25592fb18a5ed41fda73d7e648 185255: b3f689d1b734b9c0865113fd13dd596419073a16 v: v3 --- [refs] | 2 +- trunk/drivers/usb/serial/cypress_m8.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 0c724c7cab35..3058f9f63378 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2805eb13c3b5be7bd6ec7380502bc054b570afd5 +refs/heads/master: c312659c5ff1e54bac2d91e1ce1005d58784a7b5 diff --git a/trunk/drivers/usb/serial/cypress_m8.c b/trunk/drivers/usb/serial/cypress_m8.c index 47a18193abad..60c200230bc8 100644 --- a/trunk/drivers/usb/serial/cypress_m8.c +++ b/trunk/drivers/usb/serial/cypress_m8.c @@ -73,6 +73,7 @@ static int debug; static int stats; static int interval; +static int unstable_bauds; /* * Version Information @@ -291,6 +292,9 @@ static int analyze_baud_rate(struct usb_serial_port *port, speed_t new_rate) struct cypress_private *priv; priv = usb_get_serial_port_data(port); + if (unstable_bauds) + return new_rate; + /* * The general purpose firmware for the Cypress M8 allows for * a maximum speed of 57600bps (I have no idea whether DeLorme @@ -1643,3 +1647,5 @@ module_param(stats, bool, S_IRUGO | S_IWUSR); MODULE_PARM_DESC(stats, "Enable statistics or not"); module_param(interval, int, S_IRUGO | S_IWUSR); MODULE_PARM_DESC(interval, "Overrides interrupt interval"); +module_param(unstable_bauds, bool, S_IRUGO | S_IWUSR); +MODULE_PARM_DESC(unstable_bauds, "Allow unstable baud rates");