Linux Serial subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/4] serial: sc16is7xx: split into core and I2C/SPI parts
@ 2024-02-06 21:42 Hugo Villeneuve
  2024-02-06 21:42 ` [PATCH 1/4] serial: sc16is7xx: simplify and improve Kconfig help text Hugo Villeneuve
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Hugo Villeneuve @ 2024-02-06 21:42 UTC (permalink / raw)
  To: gregkh, jirislaby; +Cc: linux-kernel, linux-serial, hugo, Hugo Villeneuve

From: Hugo Villeneuve <hvilleneuve@dimonoff.com>

Hello,
this patch series splits the SPI/I2C parts for the sc16is7xx driver into
separate source files (and separate I2C/SPI drivers).

These changes are based on suggestions made by Andy Shevchenko
following this discussion:

Link: https://lore.kernel.org/all/CAHp75VebCZckUrNraYQj9k=Mrn2kbYs1Lx26f5-8rKJ3RXeh-w@mail.gmail.com/

The patches are multiple, simply to facilitate the review process. In the end,
they could be merged into a single patch.

This patch series depends on the the following patch (in linux-next/stable):
    commit f7b487648986 ("lib/find: add atomic find_bit() primitives")

I have tested the changes on a custom board with two SC16IS752 DUART over
a SPI interface using a Variscite IMX8MN NANO SOM. The four UARTs are
configured in RS-485 mode.

I did not test the changes on a real SC16is7xx using the I2C interface. But
I slighly modified the driver to be able to simulate an I2C device using
i2c-stub. I was then able to instantiate a virtual I2C device without
disturbing existing connection/communication between real SPI devices on
/dev/ttySC0 and /dev/ttySC2 (using a loopback cable).

Thank you.

Hugo Villeneuve (4):
  serial: sc16is7xx: simplify and improve Kconfig help text
  serial: sc16is7xx: split into core and I2C/SPI parts (core)
  serial: sc16is7xx: split into core and I2C/SPI parts (sc16is7xx_lines)
  serial: sc16is7xx: split into core and I2C/SPI parts
    (sc16is7xx_regcfg)

 drivers/tty/serial/Kconfig         |  41 +++--
 drivers/tty/serial/Makefile        |   4 +-
 drivers/tty/serial/sc16is7xx.c     | 242 ++++++-----------------------
 drivers/tty/serial/sc16is7xx.h     |  41 +++++
 drivers/tty/serial/sc16is7xx_i2c.c |  74 +++++++++
 drivers/tty/serial/sc16is7xx_spi.c |  97 ++++++++++++
 6 files changed, 279 insertions(+), 220 deletions(-)
 create mode 100644 drivers/tty/serial/sc16is7xx.h
 create mode 100644 drivers/tty/serial/sc16is7xx_i2c.c
 create mode 100644 drivers/tty/serial/sc16is7xx_spi.c


base-commit: 52b56990d214c7403b20f691ac61861a37c0f0db
-- 
2.39.2


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

end of thread, other threads:[~2024-02-08 15:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-06 21:42 [PATCH 0/4] serial: sc16is7xx: split into core and I2C/SPI parts Hugo Villeneuve
2024-02-06 21:42 ` [PATCH 1/4] serial: sc16is7xx: simplify and improve Kconfig help text Hugo Villeneuve
2024-02-06 21:42 ` [PATCH 2/4] serial: sc16is7xx: split into core and I2C/SPI parts (core) Hugo Villeneuve
2024-02-06 21:42 ` [PATCH 3/4] serial: sc16is7xx: split into core and I2C/SPI parts (sc16is7xx_lines) Hugo Villeneuve
2024-02-07 17:23   ` kernel test robot
2024-02-07 23:25   ` kernel test robot
2024-02-08 15:26   ` Hugo Villeneuve
2024-02-06 21:42 ` [PATCH 4/4] serial: sc16is7xx: split into core and I2C/SPI parts (sc16is7xx_regcfg) Hugo Villeneuve

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