diff options
author | Johan Hovold <jhovold@gmail.com> | 2009-09-29 06:39:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-10-09 16:52:05 -0400 |
commit | ba6b702f85a61561d329c4c11d3ed95604924f9a (patch) | |
tree | 25179fae8c8eba9dffa6a668fb18605b6b29666d /drivers/usb | |
parent | 9388e2e71a51fab0aa2309bbb45e8a23d89a95a9 (diff) |
USB: digi_acceleport: Fix broken unthrottle.
This patch fixes a regression introduced in
39892da44b21b5362eb848ca424d73a25ccc488f.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Acked-by: Oliver Neukum <oliver@neukum.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/serial/digi_acceleport.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c index ab3dd991586b..68e80be6b9e1 100644 --- a/drivers/usb/serial/digi_acceleport.c +++ b/drivers/usb/serial/digi_acceleport.c | |||
@@ -898,16 +898,16 @@ static void digi_rx_unthrottle(struct tty_struct *tty) | |||
898 | 898 | ||
899 | spin_lock_irqsave(&priv->dp_port_lock, flags); | 899 | spin_lock_irqsave(&priv->dp_port_lock, flags); |
900 | 900 | ||
901 | /* turn throttle off */ | ||
902 | priv->dp_throttled = 0; | ||
903 | priv->dp_throttle_restart = 0; | ||
904 | |||
905 | /* restart read chain */ | 901 | /* restart read chain */ |
906 | if (priv->dp_throttle_restart) { | 902 | if (priv->dp_throttle_restart) { |
907 | port->read_urb->dev = port->serial->dev; | 903 | port->read_urb->dev = port->serial->dev; |
908 | ret = usb_submit_urb(port->read_urb, GFP_ATOMIC); | 904 | ret = usb_submit_urb(port->read_urb, GFP_ATOMIC); |
909 | } | 905 | } |
910 | 906 | ||
907 | /* turn throttle off */ | ||
908 | priv->dp_throttled = 0; | ||
909 | priv->dp_throttle_restart = 0; | ||
910 | |||
911 | spin_unlock_irqrestore(&priv->dp_port_lock, flags); | 911 | spin_unlock_irqrestore(&priv->dp_port_lock, flags); |
912 | 912 | ||
913 | if (ret) | 913 | if (ret) |