All of lore.kernel.org
 help / color / mirror / Atom feed
* [[RFC V3] 0/1] i2c: imx: add slave support
@ 2016-12-14  6:01 Joshua Frkuska
  2016-12-14  6:01 ` [[RFC V3] 1/1] " Joshua Frkuska
  0 siblings, 1 reply; 5+ messages in thread
From: Joshua Frkuska @ 2016-12-14  6:01 UTC (permalink / raw)
  To: linux-i2c
  Cc: joshua_frkuska, wsa, syrchin, peda, vladimir_zapolskiy, Jiada_Wang

This patch was tested on i.MX6q sabresd and sabreai development boards. It is a continuation of the work started in the following thread https://www.spinics.net/lists/linux-i2c/msg27340.html

Its purpose is to introduce i2c slave and multimaster capabilities to the imx i2c controller driver. Slave mode can be tested using the i2c test EEPROM i2c slave device available in tree. Multimaster can be tested by creating a bus with 1 or more slave devices with 2 masters. For the purpose of this test, a sabreai and sabresd board were hooked together to form a multimaster bus. In this configuration, slave and multimaster configurations can alternatively be stress tested.

Some points to note:

The patch considers when I2C_SLAVE support is not enabled but introduces unused data structs and members even in this case. This can still probably be cleaned up further but it is left this way to reduce the number of conditional code in the driver.

Furthermore the state machine introduced to handle the slave states does not handle the master mode behavior. This is also done in order to allow an evolutionary change to the driver. A future update can integrate the master entirely into the statemachine.

Any constructive comments would be greatly appreciated.

Thank you

Joshua Frkuska (1):
  i2c: imx: add slave support

 drivers/i2c/busses/i2c-imx.c | 724 +++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 694 insertions(+), 30 deletions(-)

-- 
2.5.5

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

end of thread, other threads:[~2016-12-15  5:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <b125df4d-cde7-967d-13eb-9047285fe6ea@mentor.com>
2016-12-15  5:53 ` [[RFC V3] 1/1] i2c: imx: add slave support Frkuska, Joshua
2016-12-14  6:01 [[RFC V3] 0/1] " Joshua Frkuska
2016-12-14  6:01 ` [[RFC V3] 1/1] " Joshua Frkuska
2016-12-14 13:30   ` Vladimir Zapolskiy
2016-12-14 13:36   ` Wolfram Sang
2016-12-15  0:42     ` Frkuska, Joshua

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.