USB: serial: add modem-status-change wait queue
authorJohan Hovold <jhovold@gmail.com>
Tue, 19 Mar 2013 08:21:10 +0000 (09:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Mar 2013 22:59:02 +0000 (15:59 -0700)
commite5b33dc9d16053c2ae4c2c669cf008829530364b
tree620a348191d18d4bb6fe92ee80dfeb5b0723ef9c
parentd7971051e4df825e0bc11b995e87bfe86355b8e5
USB: serial: add modem-status-change wait queue

Add modem-status-change wait queue to struct usb_serial_port that
subdrivers can use to implement TIOCMIWAIT.

Currently subdrivers use a private wait queue which may have been
released when waking up after device disconnected.

Note that we're adding a new wait queue rather than reusing the tty-port
one as we do not want to get woken up at hangup (yet).

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/usb/serial.h