[PATCH 5.10 0/2] Stable 5.10 backport of RS485 initial polarity fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is the backport of the RS485 polarity fixes discussed here:
https://lkml.kernel.org/r/20221010085305.GA32599@xxxxxxxxx

It fixes RS485 DE initially set wrong on driver init, blocking other
devices from transmitting on the bus.

Mizobuchi-san did the backport and tested on our imx-based platform, but
we do not have any hardware to test other drivers.


The commits also apply cleanly on 5.15, and for 5.19 the second commit
does (first one has already been picked up), but these have not been
tested so would require more checking.

Kernels older than 5.10 do not have this particular polarity inversion
problem and do not need this as far as I can see.
(there might be other problems this addresses that I am not aware of
though)


Thanks,


Lino Sanfilippo (1):
  serial: core: move RS485 configuration tasks from drivers into core

Lukas Wunner (1):
  serial: Deassert Transmit Enable on probe in driver-specific way

 drivers/tty/serial/8250/8250_omap.c |  3 ++
 drivers/tty/serial/8250/8250_pci.c  |  9 +----
 drivers/tty/serial/8250/8250_port.c | 12 +++---
 drivers/tty/serial/fsl_lpuart.c     |  7 ++--
 drivers/tty/serial/imx.c            |  8 +---
 drivers/tty/serial/serial_core.c    | 61 +++++++++++++++++++++++------
 6 files changed, 65 insertions(+), 35 deletions(-)

-- 
2.35.1





[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux