Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 5.10 0/2] Stable 5.10 backport of RS485 initial polarity fix
@ 2022-10-17  1:38 Dominique Martinet
  2022-10-17  1:39 ` [PATCH 5.10 1/2] serial: core: move RS485 configuration tasks from drivers into core Dominique Martinet
  2022-10-17  1:39 ` [PATCH 5.10 2/2] serial: Deassert Transmit Enable on probe in driver-specific way Dominique Martinet
  0 siblings, 2 replies; 5+ messages in thread
From: Dominique Martinet @ 2022-10-17  1:38 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Lukas Wunner, stable
  Cc: Ilpo Järvinen, Matthias Schiffer, Roosen Henri, linux-serial,
	Lino Sanfilippo, Daisuke Mizobuchi, Dominique Martinet


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

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-17  5:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-17  1:38 [PATCH 5.10 0/2] Stable 5.10 backport of RS485 initial polarity fix Dominique Martinet
2022-10-17  1:39 ` [PATCH 5.10 1/2] serial: core: move RS485 configuration tasks from drivers into core Dominique Martinet
2022-10-17  1:39 ` [PATCH 5.10 2/2] serial: Deassert Transmit Enable on probe in driver-specific way Dominique Martinet
2022-10-17  1:57   ` Dominique Martinet
2022-10-17  5:13     ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox