USB: serial: ch341: fix line settings after reset-resume
authorJohan Hovold <johan@kernel.org>
Fri, 6 Jan 2017 18:15:15 +0000 (19:15 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 9 Jan 2017 13:55:39 +0000 (14:55 +0100)
commit3cca8624b6624e7ffb87dcd8a0a05bef9b50e97b
tree140e873caf7599ec4fbfe82bc6b083f25e3dd16a
parentce5e292828117d1b71cbd3edf9e9137cf31acd30
USB: serial: ch341: fix line settings after reset-resume

A recent change added support for modifying the default line-control
settings, but did not make sure that the modified settings were used as
part of reconfiguration after a device has been reset during resume.

This caused a port that was open before suspend to be unusable until
being closed and reopened.

Fixes: ba781bdf8662 ("USB: serial: ch341: add support for parity, frame
length, stop bits")
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ch341.c