aspeed/i2c: interrupts should be cleared by software only
commit5540cb97f711d191bae6cde89a03a8a9c306b638
authorCédric Le Goater <clg@kaod.org>
Tue, 25 Sep 2018 13:02:31 +0000 (25 14:02 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 25 Sep 2018 13:14:07 +0000 (25 14:14 +0100)
tree8b67639490c750a3ff55ab53b1de92b8cc4a351d
parentb148ed466514c8b50e7cf6fb45985a1ab98db1f8
aspeed/i2c: interrupts should be cleared by software only

aspeed i2c interrupts should be cleared by software only, and the bus
interrupt should be lowered when all interrupts have been cleared.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20180914063506.20815-2-clg@kaod.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: drop TODO comment describing an issue which is
 fixed later in the patch series, and clean up commit message]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/i2c/aspeed_i2c.c