diff options
author | Johan Hovold <jhovold@gmail.com> | 2013-12-29 22:22:53 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-04 00:31:46 +0400 |
commit | 623c8263376c0b8a4b0c220232e7313d762cd0cc (patch) | |
tree | ca59cfc957ff24d174401c32d12ece3701bf01d1 /drivers/usb/serial/metro-usb.c | |
parent | 73ad0adcb69d6a895ff73855ab366a7ae0b2fb0b (diff) | |
download | linux-623c8263376c0b8a4b0c220232e7313d762cd0cc.tar.xz |
USB: pl2303: fix data corruption on termios updates
Some PL2303 devices are known to lose bytes if you change serial
settings even to the same values as before. Avoid this by comparing the
encoded settings with the previsouly used ones before configuring the
device.
The common case was fixed by commit bf5e5834bffc6 ("pl2303: Fix mode
switching regression"), but this problem was still possible to trigger,
for instance, by using the TCSETS2-interface to repeatedly request
115201 baud, which gets mapped to 115200 and thus always triggers a
settings update.
Cc: Frank Schäfer <fschaefer.oss@googlemail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/metro-usb.c')
0 files changed, 0 insertions, 0 deletions