hw/i2c: smbus: Reset fixes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest3 patches 2 repliesIn review
- v33 patches 6 repliesSuperseded
- v23 patches 4 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 4 patches | 3 replies | Superseded |
v2 -> v3 from the cover letter
Patch 1
- Removed I3CBus class definition, since it was unneeded.
- whitespace fixes
- Changed enter_reset to hold_reset
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | hw/i2c: core: Add resethw/ | +19 | 0 replies | |
| 2/3 | hw/i2c/smbus_slave: Add object path on error printshw/ | +6 | 1 reply | |
| 3/3 | hw/i2c: smbus_slave: Reset state on resethw/ | +9 | 0 replies |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Peter Maydell | Philippe Mathieu-Daudé |
|---|---|---|
| 1/3 | ||
| 2/3 | R-b | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/3] hw/i2c: smbus: Reset fixes
Changelog:
v3 -> v4
Patch 1
- Removed the rest of the I3CBus class definition that I forgot to remove in v3
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 +++++++++++++++-- 2 files changed, 34 insertions(+), 2 deletions(-)
Signature · 1 line
2.44.0.rc0.258.g7320e95886-goog