Skip to content

aspeed/i2c: fix receive done interrupt model

Cédric Le Goater qemu-arm qemu-devel 1 version Applied

Status from this message: Applied to target-arm.next (with patch 1's TODO comment removed

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3aspeed/i2c: interrupts should be cleared by software onlyhw/i2c/aspeed_i2c.c+17 -44 replies
2/3aspeed/i2c: Handle receive command in separate functionhw/i2c/aspeed_i2c.c+21 -160 replies
3/3aspeed/i2c: Fix receive done interrupt handlinghw/i2c/aspeed_i2c.c+9 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] aspeed/i2c: fix receive done interrupt model

Hello,

The interrupt model of the Aspeed I2C controller does handle correctly the RX_DONE bit. As indicated in the AST2500 datasheet, the RX_DONE bit needs to be cleared to allow mode data to be received. This series fixes the behavior and delays the data reception until the bit has been cleared.

Revealed by :

[PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events
https://lkml.org/lkml/2018/8/23/1366

which fixes irq handling in Linux at high bus frequencies.

Thanks,

C.

Cédric Le Goater (1):
aspeed/i2c: interrupts should be cleared by software only

Guenter Roeck (2):
aspeed/i2c: Handle receive command in separate function aspeed/i2c: Fix receive done interrupt handling

 hw/i2c/aspeed_i2c.c | 68 +++++++++++++++++++++++++++++++--------------
 1 file changed, 47 insertions(+), 21 deletions(-)
Signature · 1 line
2.17.1