|
@@ -1406,6 +1406,9 @@ static int write_latency_timer(struct usb_serial_port *port)
|
|
|
int rv;
|
|
|
int l = priv->latency;
|
|
|
|
|
|
+ if (priv->chip_type == SIO || priv->chip_type == FT8U232AM)
|
|
|
+ return -EINVAL;
|
|
|
+
|
|
|
if (priv->flags & ASYNC_LOW_LATENCY)
|
|
|
l = 1;
|
|
|
|
|
@@ -1429,6 +1432,9 @@ static int read_latency_timer(struct usb_serial_port *port)
|
|
|
unsigned char *buf;
|
|
|
int rv;
|
|
|
|
|
|
+ if (priv->chip_type == SIO || priv->chip_type == FT8U232AM)
|
|
|
+ return -EINVAL;
|
|
|
+
|
|
|
buf = kmalloc(1, GFP_KERNEL);
|
|
|
if (!buf)
|
|
|
return -ENOMEM;
|