USB: serial: pl2303: fix tranceiver suspend mode
authorJohan Hovold <johan@kernel.org>
Tue, 2 Apr 2019 08:19:31 +0000 (10:19 +0200)
committerJohan Hovold <johan@kernel.org>
Wed, 3 Apr 2019 07:46:50 +0000 (09:46 +0200)
commitf64c3ab230682e8395a7fbd01f3eb5140c837d4e
tree31ae3e4f43c9592630a4907e006144da323fb862
parent68270dab97107b5679080b596aa2f5a360f79873
USB: serial: pl2303: fix tranceiver suspend mode

Add helper function to update register bits instead of overwriting the
entire control register when updating the flow-control settings.

This specifically avoids having the tranceiver suspend mode (bit 0)
depend on the flow control setting.

The tranceiver is currently configured at probe to be disabled during
suspend, but this was overridden when disabling flow control or enabling
xon/xoff.

Fixes: 715f9527c1c1 ("USB: flow control fix for pl2303")
Fixes: 7041d9c3f01b ("USB: serial: pl2303: add support for tx xon/xoff flow control")
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/pl2303.c