]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
USB: serial: generalise generic read implementation
authorJohan Hovold <jhovold@gmail.com>
Wed, 17 Mar 2010 22:05:57 +0000 (23:05 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:34 +0000 (13:21 -0700)
commit231543206452f5c42bace54b5c13dfe5a0313812
treecbefc56d6c37f50c895a37c47161ac5733cda24c
parent0f3d5bae2bdacce6c6c1d116809d6b3d50338df7
USB: serial: generalise generic read implementation

Add process_read_urb to usb_serial_driver so that a driver can rely on
the generic read (and throttle) mechanism but still do device specific
processing of incoming data (such as adding tty_flags before pushing to
line discipline).

The default generic implementation handles sysrq for consoles but
otherwise simply pushes to tty.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/generic.c
drivers/usb/serial/usb-serial.c
include/linux/usb/serial.h