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)
commitdcf0105039660e951dfea348d317043d17988dfc
tree17b7748bf83e08da5da530a257a81cc044110e91
parent0693196fe7bbb5e6cafd255dfce91ff6d10bc18f
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