Some Aspeed I2C modes are broken,
probably because no available driver currently uses them.
This patch fixes them, so byte, buffer, and DMA transfer modes
work correctly for both register modes.
Tests are provided to prevent possible regressions.

Signed-off-by: Timur Maksimov <[email protected]>
---
Timur Maksimov (6):
      hw/i2c: add dummy device
      hw/i2c/aspeed: fix CMD register reading
      hw/i2c/aspeed: fix buffer transfer in a non-packet mode
      hw/i2c/aspeed: fix DMA transfer in non-packet mode
      hw/i2c/aspeed: fix BUSY status reading in new register mode
      tests/qtest: Add cases for 32-bit Aspeed I2C controllers

 hw/i2c/Kconfig                |   5 +
 hw/i2c/aspeed_i2c.c           |  23 +-
 hw/i2c/i2c-dummy-device.c     | 168 +++++++++
 hw/i2c/meson.build            |   3 +-
 tests/qtest/aspeed_i2c-test.c | 836 ++++++++++++++++++++++++++++++++++++++++++
 tests/qtest/meson.build       |   2 +
 6 files changed, 1029 insertions(+), 8 deletions(-)
---
base-commit: d73149283205645625bfa9fe029cfb68e4c4a9ae
change-id: 20261025-aspeed-i2c-nonpkt-fix-89b852b5c84a

-- 
Timur Maksimov <[email protected]>


Reply via email to