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>
Mon, 14 Apr 2014 13:44:23 +0000 (06:44 -0700)
commit017f42518a72858f4332572a963be4212e0ee795
treee55d717ab3c8be8dfad920c0447f5eb4ce337a33
parentcae4d9a21738dce33a18f533c703b42f59e55244
USB: serial: add modem-status-change wait queue

commit e5b33dc9d16053c2ae4c2c669cf008829530364b upstream.

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).

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/usb/serial.h