aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2010-03-17 18:05:59 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-20 16:21:34 -0400
commitf1e949ac4ea1f4e37187949944899afeaff33e1e (patch)
tree5e8a257fcf357549dbf992008c96fb5cc3d994dc
parentf08e07ac8b87b1a4b8ff88a061195e99282dfbbd (diff)
USB: serial: export generic throttle and unthrottle
Allow drivers to use the generic throttle and unthrottle implementation. This makes sense for drivers using the generic read functionality. Note that drivers need to set these explicitly in order to enable them (i.e., we do not set them at port probe if not defined). Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/serial/generic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c
index 176f1257b664..789a5af842a9 100644
--- a/drivers/usb/serial/generic.c
+++ b/drivers/usb/serial/generic.c
@@ -517,6 +517,7 @@ void usb_serial_generic_throttle(struct tty_struct *tty)
517 port->throttle_req = 1; 517 port->throttle_req = 1;
518 spin_unlock_irqrestore(&port->lock, flags); 518 spin_unlock_irqrestore(&port->lock, flags);
519} 519}
520EXPORT_SYMBOL_GPL(usb_serial_generic_throttle);
520 521
521void usb_serial_generic_unthrottle(struct tty_struct *tty) 522void usb_serial_generic_unthrottle(struct tty_struct *tty)
522{ 523{
@@ -534,6 +535,7 @@ void usb_serial_generic_unthrottle(struct tty_struct *tty)
534 if (was_throttled) 535 if (was_throttled)
535 usb_serial_generic_submit_read_urb(port, GFP_KERNEL); 536 usb_serial_generic_submit_read_urb(port, GFP_KERNEL);
536} 537}
538EXPORT_SYMBOL_GPL(usb_serial_generic_unthrottle);
537 539
538#ifdef CONFIG_MAGIC_SYSRQ 540#ifdef CONFIG_MAGIC_SYSRQ
539int usb_serial_handle_sysrq_char(struct tty_struct *tty, 541int usb_serial_handle_sysrq_char(struct tty_struct *tty,