From: Johan Hovold Date: Wed, 17 Mar 2010 22:05:59 +0000 (+0100) Subject: USB: serial: export generic throttle and unthrottle X-Git-Tag: v2.6.35-rc1~471^2~185 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f1e949ac4ea1f4e37187949944899afeaff33e1e;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index 176f125..789a5af 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) port->throttle_req = 1; spin_unlock_irqrestore(&port->lock, flags); } +EXPORT_SYMBOL_GPL(usb_serial_generic_throttle); void usb_serial_generic_unthrottle(struct tty_struct *tty) { @@ -534,6 +535,7 @@ void usb_serial_generic_unthrottle(struct tty_struct *tty) if (was_throttled) usb_serial_generic_submit_read_urb(port, GFP_KERNEL); } +EXPORT_SYMBOL_GPL(usb_serial_generic_unthrottle); #ifdef CONFIG_MAGIC_SYSRQ int usb_serial_handle_sysrq_char(struct tty_struct *tty,