]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: opticon: fix CTS retrieval at open
authorJohan Hovold <johan@kernel.org>
Fri, 13 Jan 2017 12:21:08 +0000 (13:21 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 16 Jan 2017 15:42:21 +0000 (16:42 +0100)
commit19218a20f6ed25cf80ba641a7b73dcd1c1b789a2
tree1c999c9d819117e07b736cb88c834feea0f1a03d
parentbcfedb0d832d5b614306fa57135efe8e0779dcb4
USB: serial: opticon: fix CTS retrieval at open

The opticon driver used a control request at open to trigger a CTS
status notification to be sent over the bulk-in pipe. When the driver
was converted to using the generic read implementation, an inverted test
prevented this request from being sent, something which could lead to
TIOCMGET reporting an incorrect CTS state.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: e24d9146ee0e ("USB: opticon: switch to generic read
implementation")
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/opticon.c