diff options
author | Rickard x Andersson <rickaran@axis.com> | 2024-02-21 12:53:04 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-03-02 22:10:35 +0100 |
commit | 672448ccf9b6a676f96f9352cbf91f4d35f4084a (patch) | |
tree | 7b87830fc681efcaf361fe616fbce65df0a85990 /net/mac80211/sta_info.h | |
parent | d206a76d7d2726f3b096037f2079ce0bd3ba329b (diff) | |
download | linux-stable-672448ccf9b6a676f96f9352cbf91f4d35f4084a.tar.gz linux-stable-672448ccf9b6a676f96f9352cbf91f4d35f4084a.tar.bz2 linux-stable-672448ccf9b6a676f96f9352cbf91f4d35f4084a.zip |
tty: serial: imx: Fix broken RS485
When about to transmit the function imx_uart_start_tx is called and in
some RS485 configurations this function will call imx_uart_stop_rx. The
problem is that imx_uart_stop_rx will enable loopback in order to
release the RS485 bus, but when loopback is enabled transmitted data
will just be looped to RX.
This patch fixes the above problem by not enabling loopback when about
to transmit.
This driver now works well when used for RS485 half duplex master
configurations.
Fixes: 79d0224f6bf2 ("tty: serial: imx: Handle RS485 DE signal active high")
Cc: stable <stable@kernel.org>
Signed-off-by: Rickard x Andersson <rickaran@axis.com>
Tested-by: Christoph Niedermaier <cniedermaier@dh-electronics.com>
Link: https://lore.kernel.org/r/20240221115304.509811-1-rickaran@axis.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/mac80211/sta_info.h')
0 files changed, 0 insertions, 0 deletions