Skip to content
Commit 41c60687 authored by Hui Wang's avatar Hui Wang Committed by Greg Kroah-Hartman
Browse files

Revert "serial: sc16is7xx: Clear RS485 bits in the shutdown"

This reverts commit 927728a3.

Once the uart_port->rs485->flag is set to SER_RS485_ENABLED, the port
should always work in RS485 mode. If users want the port to leave
RS485 mode, they need to call ioctl() to clear SER_RS485_ENABLED.

So here we shouldn't clear the RS485 bits in the shutdown().

Fixes: 927728a3

 ("serial: sc16is7xx: Clear RS485 bits in the shutdown")
Signed-off-by: default avatarHui Wang <hui.wang@canonical.com>
Link: https://lore.kernel.org/r/20220418094339.678144-1-hui.wang@canonical.com
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 48473802
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment