All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/2] tty: serial: Add RS422 serial interface
@ 2023-12-01  7:15 Crescent CY Hsieh
  2024-01-16 15:58   ` Christoph Niedermaier
  2023-12-01  7:15 ` [PATCH v6 2/2] tty: serial: Add RS422 flag to struct serial_rs485 Crescent CY Hsieh
  0 siblings, 2 replies; 15+ messages in thread
From: Crescent CY Hsieh @ 2023-12-01  7:15 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby
  Cc: linux-kernel, linux-serial, Crescent CY Hsieh

This patch series adds RS422 flag to switch the serial interface into
RS422 if supported by using "TIOCSRS485" ioctl command.

---
Changes from v5 to v6:
- Split patch into cleanup patch and new feature patch
- [PATCH v6 2/2]:
	- Add termination resistors support for RS422

Changes from v4 to v5:
- Revise commit message.
- Delete RS422 checks within uart_set_rs485_termination().

Changes from v3 to v4:
- Include 'linux/const.h' header in '/include/uapi/linux/serial.h'
- Replace BIT() with _BITUL() which defined in
  '/include/uapi/linux/const.h'

Changes from v2 to v3:
- Remove "SER_RS422_ENABLED" flag from legacy flags.
- Revise "SER_RS422_ENABLED" into "SER_RS485_MODE_RS422".
- Remove the code which checks the conflicts between SER_RS485_ENABLED
  and SER_RS422_ENABLED.
- Add return check in uart_set_rs485_termination().

Changes from v1 to v2:
- Revise the logic that checks whether RS422/RS485 are enabled
  simultaneously.

v5: https://lore.kernel.org/all/20231121095122.15948-1-crescentcy.hsieh@moxa.com/
v4: https://lore.kernel.org/all/20231113094136.52003-1-crescentcy.hsieh@moxa.com/
v3: https://lore.kernel.org/all/20231108060719.11775-1-crescentcy.hsieh@moxa.com/
v2: https://lore.kernel.org/all/20231101064404.45711-1-crescentcy.hsieh@moxa.com/
v1: https://lore.kernel.org/all/20231030053632.5109-1-crescentcy.hsieh@moxa.com/

Crescent CY Hsieh (2):
  tty: serial: Cleanup the bit shift with macro
  tty: serial: Add RS422 flag to struct serial_rs485

 drivers/tty/serial/serial_core.c |  6 ++++++
 include/uapi/linux/serial.h      | 19 +++++++++++--------
 2 files changed, 17 insertions(+), 8 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2024-01-18  9:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-01  7:15 [PATCH v6 0/2] tty: serial: Add RS422 serial interface Crescent CY Hsieh
2023-12-01  7:15 ` [PATCH v6 1/2] tty: serial: Cleanup the bit shift with macro Crescent CY Hsieh
2024-01-16 15:58   ` Christoph Niedermaier
2024-01-16 15:58   ` Christoph Niedermaier
2024-01-17 14:56   ` Christoph Niedermaier
2024-01-17 14:56     ` Christoph Niedermaier
2024-01-18  7:01     ` Greg KH
2024-01-18  7:01       ` Greg KH
2024-01-18  8:14       ` Crescent CY Hsieh
2024-01-18  8:14         ` Crescent CY Hsieh
2024-01-18  8:44         ` Greg KH
2024-01-18  8:44           ` Greg KH
2024-01-18  9:29       ` Christoph Niedermaier
2024-01-18  9:29         ` Christoph Niedermaier
2023-12-01  7:15 ` [PATCH v6 2/2] tty: serial: Add RS422 flag to struct serial_rs485 Crescent CY Hsieh

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.