Jamin,
Could you please check the Fix changes, patch 2-5 ? They appear to be valid
additions but I would like a second opinion.
Thanks,
C.
On 10/27/26 20:50, Timur Maksimov wrote:
> In non-packet mode, buffer and DMA modes are broken
> in the Aspeed I2C controller,
> probably because no available driver currently uses them.
> This patch fixes them, so byte, buffer, and DMA transfer modes
> now work correctly for both register modes, old and new ones.
> Tests are provided to prevent possible regressions.
>
> Signed-off-by: Timur Maksimov <gessingate@gmail.com>
> ---
> Changes in v2:
> - Fix commits description format. Some of them are reordered and clarified.
> - Link to v1: https://lore.kernel.org/qemu-devel/20261027-aspeed-i2c-nonpkt-fix-v1-0-076cdde514f8@gmail.com
>
> ---
> Timur Maksimov (6):
> hw/i2c: add dummy device
> hw/i2c/aspeed: fix BUSY status reading in new register mode
> hw/i2c/aspeed: fix I2CD_CMD register reading
> hw/i2c/aspeed: fix buffer transfer in non-packet mode
> hw/i2c/aspeed: fix DMA transfer in non-packet 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: 9b77fa7a4fe86c80d1ff526769c61ada7d28666a
> change-id: 20261025-aspeed-i2c-nonpkt-fix-89b852b5c84a
>