lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <X8pA0PBuFFKUBTwV@localhost>
Date:   Fri, 4 Dec 2020 14:59:44 +0100
From:   Johan Hovold <johan@...nel.org>
To:     linux-usb@...r.kernel.org
Cc:     Sheng Long Wang <shenglong.wang.ext@...mens.com>,
        linux-kernel@...r.kernel.org, Johan Hovold <johan@...nel.org>
Subject: Re: [PATCH 0/6] USB: serial: cp210x: clean up termios handling

On Mon, Nov 16, 2020 at 05:18:20PM +0100, Johan Hovold wrote:
> Unlike other drivers cp210x have been retrieving the current terminal
> settings from the device on open and reflecting those in termios.
>     
> Due to how set_termios() was implemented this saved a few control
> requests on open but has instead caused problems like broken flow
> control and has required adding workarounds for swapped line-control in
> cp2108 and line-speed initialisation on cp2104.
> 
> This unusual implementation also complicates adding new features for no
> good reason.
> 
> Rip out the corresponding code and the above mentioned workarounds and
> instead initialise the terminal settings unconditionally on open.

> Johan Hovold (6):
>   USB: serial: cp210x: return early on unchanged termios
>   USB: serial: cp210x: clean up line-control handling
>   USB: serial: cp210x: set terminal settings on open
>   USB: serial: cp210x: drop flow-control debugging
>   USB: serial: cp210x: refactor flow-control handling
>   USB: serial: cp210x: clean up dts_rts
> 
>  drivers/usb/serial/cp210x.c | 499 ++++++++----------------------------
>  1 file changed, 104 insertions(+), 395 deletions(-)

I have applied this series for -next now.

Johan

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ