All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] hw/i2c/aspeed: fix non-packet buffer and DMA transfer modes
@ 2026-10-27 19:50 Timur Maksimov
  2026-10-27 19:50 ` [PATCH v2 1/6] hw/i2c: add dummy device Timur Maksimov
                   ` (6 more replies)
  0 siblings, 7 replies; 32+ messages in thread
From: Timur Maksimov @ 2026-10-27 19:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Cédric Le Goater, Peter Maydell, Jamin Lin,
	Kane Chen, qemu-arm, Fabiano Rosas, Laurent Vivier,
	Timur Maksimov

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

-- 
Timur Maksimov <gessingate@gmail.com>



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

end of thread, other threads:[~2026-10-29 13:05 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-27 19:50 [PATCH v2 0/6] hw/i2c/aspeed: fix non-packet buffer and DMA transfer modes Timur Maksimov
2026-10-27 19:50 ` [PATCH v2 1/6] hw/i2c: add dummy device Timur Maksimov
2026-10-28  8:54   ` Cédric Le Goater
2026-10-28 10:17     ` Markus Armbruster
2026-10-28 11:04       ` Cédric Le Goater
2026-10-28 11:26         ` Markus Armbruster
2026-10-28 16:20       ` Timur Maksimov
2026-10-29  7:22         ` Markus Armbruster
2026-10-29  8:20           ` Timur Maksimov
2026-10-29  8:37             ` Cédric Le Goater
2026-10-29 12:45               ` Corey Minyard
2026-10-29 13:04                 ` Cédric Le Goater
2026-10-27 19:50 ` [PATCH v2 2/6] hw/i2c/aspeed: fix BUSY status reading in new register mode Timur Maksimov
2026-10-28  8:17   ` Cédric Le Goater
2026-10-28 21:24   ` Cédric Le Goater
2026-10-29  5:21   ` Jamin Lin
2026-10-27 19:50 ` [PATCH v2 3/6] hw/i2c/aspeed: fix I2CD_CMD register reading Timur Maksimov
2026-10-29  5:23   ` Jamin Lin
2026-10-27 19:50 ` [PATCH v2 4/6] hw/i2c/aspeed: fix buffer transfer in non-packet mode Timur Maksimov
2026-10-29  6:33   ` Jamin Lin
2026-10-29  7:23     ` Timur Maksimov
2026-10-29  7:44       ` Jamin Lin
2026-10-29  8:45         ` Timur Maksimov
2026-10-27 19:50 ` [PATCH v2 5/6] hw/i2c/aspeed: fix DMA " Timur Maksimov
2026-10-28 21:32   ` Cédric Le Goater
2026-10-29  6:23     ` Jamin Lin
2026-10-27 19:50 ` [PATCH v2 6/6] tests/qtest: Add cases for 32-bit Aspeed I2C controllers Timur Maksimov
2026-10-28  8:56   ` Cédric Le Goater
2026-10-28 14:47     ` Timur Maksimov
2026-10-29  7:25       ` Jamin Lin
2026-10-29  8:25         ` Timur Maksimov
2026-10-28 11:07 ` [PATCH v2 0/6] hw/i2c/aspeed: fix non-packet buffer and DMA transfer modes Cédric Le Goater

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.