public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/6] i2c: designware: Enable mode swapping
@ 2025-12-16 13:14 Heikki Krogerus
  2025-12-16 13:14 ` [PATCH v1 1/6] i2c: designware: Remove useless driver specific option for I2C target Heikki Krogerus
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Heikki Krogerus @ 2025-12-16 13:14 UTC (permalink / raw)
  To: Andi Shyti, Andy Shevchenko, Mika Westerberg
  Cc: Jan Dabros, Raag Jadav, linux-i2c, linux-kernel

Hi,

It's currently not possible to support MCTP or any other protocol that
requires support for both modes with the DesignWare I2C because the
driver can only be used in one mode. I'm assuming that the driver was
designed this way because the DesignWare I2C can not be operated as
I2C master and I2C slave simultaneously, however, that does not
actually mean both modes could not be supported at the same time. See
the patch 5/6 for more detailed explanation.

This series will enable support for both modes in the driver by
utilising a simple mode swap method, and that way make it possible to
support MCTP, IPMI, SMBus Host Notification Protocol, and any other
protocol requires the support for both modes with the DesignWare I2C.

I've prepared these on top of Andi's i2c-host branch.

thanks,

Heikki Krogerus (6):
  i2c: designware: Remove useless driver specific option for I2C target
  i2c: designware: Remove unnecessary function exports
  i2c: designware: Combine some of the common functions
  i2c: designware: Combine the init functions
  i2c: designware: Enable mode swapping
  i2c: designware: Remove an unnecessary condition

 drivers/i2c/busses/Kconfig                 |  10 +-
 drivers/i2c/busses/Makefile                |   2 +-
 drivers/i2c/busses/i2c-designware-common.c | 210 +++++++++++++++++++--
 drivers/i2c/busses/i2c-designware-core.h   |  25 +--
 drivers/i2c/busses/i2c-designware-master.c | 174 ++---------------
 drivers/i2c/busses/i2c-designware-slave.c  | 125 ++----------
 6 files changed, 249 insertions(+), 297 deletions(-)

-- 
2.50.1


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

end of thread, other threads:[~2025-12-17  3:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-16 13:14 [PATCH v1 0/6] i2c: designware: Enable mode swapping Heikki Krogerus
2025-12-16 13:14 ` [PATCH v1 1/6] i2c: designware: Remove useless driver specific option for I2C target Heikki Krogerus
2025-12-16 13:14 ` [PATCH v1 2/6] i2c: designware: Remove unnecessary function exports Heikki Krogerus
2025-12-16 13:14 ` [PATCH v1 3/6] i2c: designware: Combine some of the common functions Heikki Krogerus
2025-12-16 13:14 ` [PATCH v1 4/6] i2c: designware: Combine the init functions Heikki Krogerus
2025-12-16 21:04   ` kernel test robot
2025-12-17  3:42   ` kernel test robot
2025-12-16 13:14 ` [PATCH v1 5/6] i2c: designware: Enable mode swapping Heikki Krogerus
2025-12-16 13:14 ` [PATCH v1 6/6] i2c: designware: Remove an unnecessary condition Heikki Krogerus

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