All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/8] Fixes and cleanup for RS485
@ 2022-07-10 16:44 ` Lino Sanfilippo
  0 siblings, 0 replies; 22+ messages in thread
From: Lino Sanfilippo @ 2022-07-10 16:44 UTC (permalink / raw)
  To: gregkh, jirislaby
  Cc: ilpo.jarvinen, robh+dt, krzysztof.kozlowski+dt, andriy.shevchenko,
	vz, linux-arm-kernel, devicetree, linux-serial, linux-kernel,
	lukas, p.rosenberger, Lino Sanfilippo

From: Lino Sanfilippo <l.sanfilippo@kunbus.com>

The following series includes cleanup and fixes around RS485 in the serial
core and uart drivers:

Patch 1: ar933x: Fix check for RS485 support
Patch 2: Remove superfluous code in ar933x.
Patch 3: Set the rs485 termination GPIO in the serial core. This is needed
	 since if the gpio is only accessible in sleepable context. It also
	 is a further step to make the RS485 handling more generic.
Patch 4: Move sanitizing of RS485 delays into an own function. This is in 
	 preparation of patch 4.
Patch 5: Sanitize RS485 delays read from device tree.
Patch 6: Correct RS485 delays in binding documentation.
Patch 7: Remove redundant code in 8250_dwlib.
Patch 8: Remove redundant code in 8250-lpc18xx.

Changes in v4:
- fixed logical error found by 
- capitalize "uart" and "gpio" in commit messages

Changes in v3:
- remove obsolete patch (due to changes by Ilpo)
- corrected and rephrase commit messages (pointed out by Andy)
- remove superfluous check (pointed out by Andy)
- separate ar933x UART bugfix and cleanup into different patches
  (as suggested by Ilpo)
- put the ar933x fix at the beginning of the series (as suggested by Andy)

Changes in v2:
- print a warning if termination GPIO is specified in DT/ACPI but is not
  supported by driver 
- fixed commit message for devtree documentation (as suggested by Andy)
- fixed code comment
- added patch 7

Lino Sanfilippo (8):
  serial: ar933x: Fix check for RS485 support
  serial: ar933x: Remove superfluous code in ar933x_config_rs485()
  serial: core, 8250: set RS485 termination GPIO in serial core
  serial: core: move sanitizing of RS485 delays into own function
  serial: core: sanitize RS485 delays read from device tree
  dt_bindings: rs485: Correct delay values
  serial: 8250_dwlib: remove redundant sanity check for RS485 flags
  serial: 8250: lpc18xx: Remove redundant sanity check for RS485 flags

 .../devicetree/bindings/serial/rs485.yaml     |  4 +-
 drivers/tty/serial/8250/8250_dwlib.c          | 10 +---
 drivers/tty/serial/8250/8250_lpc18xx.c        |  6 +-
 drivers/tty/serial/8250/8250_port.c           |  3 -
 drivers/tty/serial/ar933x_uart.c              | 18 ++----
 drivers/tty/serial/serial_core.c              | 60 ++++++++++++-------
 6 files changed, 50 insertions(+), 51 deletions(-)


base-commit: 7e5b4322cde067e1d0f1bf8f490e93f664a7c843
-- 
2.25.1


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

end of thread, other threads:[~2022-07-10 19:01 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-10 16:44 [PATCH v4 0/8] Fixes and cleanup for RS485 Lino Sanfilippo
2022-07-10 16:44 ` Lino Sanfilippo
2022-07-10 16:44 ` [PATCH v4 1/8] serial: ar933x: Fix check for RS485 support Lino Sanfilippo
2022-07-10 16:44   ` Lino Sanfilippo
2022-07-10 16:44 ` [PATCH v4 2/8] serial: ar933x: Remove superfluous code in ar933x_config_rs485() Lino Sanfilippo
2022-07-10 16:44   ` Lino Sanfilippo
2022-07-10 16:44 ` [PATCH v4 3/8] serial: core, 8250: set RS485 termination GPIO in serial core Lino Sanfilippo
2022-07-10 16:44   ` Lino Sanfilippo
2022-07-10 16:44 ` [PATCH v4 4/8] serial: core: move sanitizing of RS485 delays into own function Lino Sanfilippo
2022-07-10 16:44   ` Lino Sanfilippo
2022-07-10 16:44 ` [PATCH v4 5/8] serial: core: sanitize RS485 delays read from device tree Lino Sanfilippo
2022-07-10 16:44   ` Lino Sanfilippo
2022-07-10 16:44 ` [PATCH v4 6/8] dt_bindings: rs485: Correct delay values Lino Sanfilippo
2022-07-10 16:44   ` Lino Sanfilippo
2022-07-10 16:44 ` [PATCH v4 7/8] serial: 8250_dwlib: remove redundant sanity check for RS485 flags Lino Sanfilippo
2022-07-10 16:44   ` Lino Sanfilippo
2022-07-10 16:44 ` [PATCH v4 8/8] serial: 8250: lpc18xx: Remove " Lino Sanfilippo
2022-07-10 16:44   ` Lino Sanfilippo
2022-07-10 18:43 ` [PATCH v4 0/8] Fixes and cleanup for RS485 Andy Shevchenko
2022-07-10 18:43   ` Andy Shevchenko
2022-07-10 19:00   ` Lino Sanfilippo
2022-07-10 19:00     ` Lino Sanfilippo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.