Commit ba6b702f authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

USB: digi_acceleport: Fix broken unthrottle.

This patch fixes a regression introduced in
39892da4.
Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Acked-by: default avatarOliver Neukum <oliver@neukum.org>
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9388e2e7
...@@ -898,16 +898,16 @@ static void digi_rx_unthrottle(struct tty_struct *tty) ...@@ -898,16 +898,16 @@ static void digi_rx_unthrottle(struct tty_struct *tty)
spin_lock_irqsave(&priv->dp_port_lock, flags); spin_lock_irqsave(&priv->dp_port_lock, flags);
/* turn throttle off */
priv->dp_throttled = 0;
priv->dp_throttle_restart = 0;
/* restart read chain */ /* restart read chain */
if (priv->dp_throttle_restart) { if (priv->dp_throttle_restart) {
port->read_urb->dev = port->serial->dev; port->read_urb->dev = port->serial->dev;
ret = usb_submit_urb(port->read_urb, GFP_ATOMIC); ret = usb_submit_urb(port->read_urb, GFP_ATOMIC);
} }
/* turn throttle off */
priv->dp_throttled = 0;
priv->dp_throttle_restart = 0;
spin_unlock_irqrestore(&priv->dp_port_lock, flags); spin_unlock_irqrestore(&priv->dp_port_lock, flags);
if (ret) if (ret)
......
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