All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i2c-next v3 0/3] i2c: aspeed: Add bus idle waiting logic for multi-master use cases
@ 2018-09-26 21:58 ` Jae Hyun Yoo
  0 siblings, 0 replies; 18+ messages in thread
From: Jae Hyun Yoo @ 2018-09-26 21:58 UTC (permalink / raw)
  To: Brendan Higgins, Wolfram Sang, Benjamin Herrenschmidt,
	Joel Stanley, Rob Herring, Mark Rutland, Andrew Jeffery,
	linux-i2c, openbmc, devicetree, linux-arm-kernel, linux-aspeed,
	linux-kernel
  Cc: Jarkko Nikula, James Feist, Vernon Mauery, Jae Hyun Yoo

In multi-master environment, this driver's master cannot know
exactly when peer master sends data to this driver's slave so a
case can be happened that this master tries to send data through
the master_xfer function but slave data from peer master is still
being processed by this driver.

To prevent state corruption in the case, this patch adds checking
code if any slave operation is ongoing and it waits up to the
timeout duration before starting a master_xfer operation.

Please review this patch set.

Thanks,

-Jae

Changes since v2:
- Changed the property name to 'aspeed,timeout' and made it to
  update the adapter's timeout configuration.

Changes since v1:
- Changed define names of timeout related.

Jae Hyun Yoo (3):
  dt-bindings: i2c: aspeed: Add 'timeout' property as an optional
    property
  i2c: aspeed: Add 'aspeed,timeout' DT property reading code
  i2c: aspeed: Add bus idle waiting logic for multi-master use cases

 .../devicetree/bindings/i2c/i2c-aspeed.txt    |  3 +
 drivers/i2c/busses/i2c-aspeed.c               | 71 ++++++++++++++-----
 2 files changed, 58 insertions(+), 16 deletions(-)

-- 
2.19.0


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

end of thread, other threads:[~2018-09-27 21:36 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-26 21:58 [PATCH i2c-next v3 0/3] i2c: aspeed: Add bus idle waiting logic for multi-master use cases Jae Hyun Yoo
2018-09-26 21:58 ` Jae Hyun Yoo
2018-09-26 21:58 ` [PATCH i2c-next v3 1/3] dt-bindings: i2c: aspeed: Add 'timeout' property as an optional property Jae Hyun Yoo
2018-09-26 21:58   ` Jae Hyun Yoo
2018-09-27 20:56   ` Rob Herring
2018-09-27 20:56     ` Rob Herring
2018-09-27 21:35     ` Jae Hyun Yoo
2018-09-27 21:35       ` Jae Hyun Yoo
2018-09-26 21:58 ` [PATCH i2c-next v3 2/3] i2c: aspeed: Add 'aspeed,timeout' DT property reading code Jae Hyun Yoo
2018-09-26 21:58   ` [PATCH i2c-next v3 2/3] i2c: aspeed: Add 'aspeed, timeout' " Jae Hyun Yoo
2018-09-26 21:58   ` Jae Hyun Yoo
2018-09-27  3:11   ` [PATCH i2c-next v3 2/3] i2c: aspeed: Add 'aspeed,timeout' " Joel Stanley
2018-09-27  3:11     ` Joel Stanley
2018-09-27  3:11     ` Joel Stanley
2018-09-27 17:41     ` Jae Hyun Yoo
2018-09-27 17:41       ` Jae Hyun Yoo
2018-09-26 21:58 ` [PATCH i2c-next v3 3/3] i2c: aspeed: Add bus idle waiting logic for multi-master use cases Jae Hyun Yoo
2018-09-26 21:58   ` Jae Hyun Yoo

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.