qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] hw/i2c: smbus: Reset fixes
@ 2024-02-02 20:48 Joe Komlodi
  2024-02-02 20:48 ` [PATCH v3 1/3] hw/i2c: core: Add reset Joe Komlodi
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Joe Komlodi @ 2024-02-02 20:48 UTC (permalink / raw)
  To: qemu-devel; +Cc: venture, komlodi, minyard, peter.maydell

Changelog:

v2 -> v3
Patch 1
- Removed I3CBus class definition, since it was unneeded.
- whitespace fixes
- Changed enter_reset to hold_reset

Patch 2
- Moved pointer returned by object_get_canonical_path outside of printf
  so it can be freed

Patch 3
- Changed enter_reset to hold_reset

v1 -> v2
- Dropped 4th patch "hw/i2c: smbus: mux: Reset SMBusDevice state
on reset". After more testing and Corey's comment, I realized it
wasn't needed.

Original message:

Hi all,

This series adds some resets for SMBus and for the I2C core. Along with
it, we make SMBus slave error printing a little more helpful.

These reset issues were very infrequent, they would maybe occur in 1 out
of hundreds of resets in our testing, but the way they happen is pretty
straightforward.

Basically as long as a reset happens in the middle of a transaction, the
state of the old transaction would still partially be there after the
reset. Once a new transaction comes in, the partial stale state can
cause the new transaction to incorrectly fail.

Thanks,
Joe

Joe Komlodi (3):
  hw/i2c: core: Add reset
  hw/i2c/smbus_slave: Add object path on error prints
  hw/i2c: smbus_slave: Reset state on reset

 hw/i2c/core.c        | 19 +++++++++++++++++++
 hw/i2c/smbus_slave.c | 17 +++++++++++++++--
 include/hw/i2c/i2c.h |  2 +-
 3 files changed, 35 insertions(+), 3 deletions(-)

-- 
2.43.0.594.gd9cf4e227d-goog



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

end of thread, other threads:[~2024-02-20 19:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-02 20:48 [PATCH v3 0/3] hw/i2c: smbus: Reset fixes Joe Komlodi
2024-02-02 20:48 ` [PATCH v3 1/3] hw/i2c: core: Add reset Joe Komlodi
2024-02-08 16:39   ` Peter Maydell
2024-02-16 23:05     ` Joe Komlodi
2024-02-17  1:04     ` Corey Minyard
2024-02-20 19:11       ` Joe Komlodi
2024-02-02 20:48 ` [PATCH v3 2/3] hw/i2c/smbus_slave: Add object path on error prints Joe Komlodi
2024-02-08 16:28   ` Peter Maydell
2024-02-02 20:48 ` [PATCH v3 3/3] hw/i2c: smbus_slave: Reset state on reset Joe Komlodi
2024-02-08 16:31   ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).