]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: add generic wait_until_sent implementation
authorJohan Hovold <jhovold@gmail.com>
Wed, 8 May 2013 15:51:43 +0000 (17:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2013 00:32:21 +0000 (17:32 -0700)
commitaa5a23d3d45559adf0a2b517af1a04576adf3aac
tree17b7748bf83e08da5da530a257a81cc044110e91
parent3d9dec0d36f2593aeb8d65ec52e157df760005c6
USB: serial: add generic wait_until_sent implementation

Add generic wait_until_sent implementation which polls for empty
hardware buffers using the new port-operation tx_empty.

The generic implementation will be used for all sub-drivers that
implement tx_empty but does not define wait_until_sent.

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