mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
i2c: aspeed: Mask IRQ status to relevant bits
[ Upstream commit 1a1d6db23ddacde0b15ea589e9103373e05af8de ] Mask the IRQ status to only the bits that the driver checks. This prevents excessive driver warnings when operating in slave mode when additional bits are set that the driver doesn't handle. Signed-off-by: Eddie James <eajames@linux.ibm.com> Reviewed-by: Tao Ren <rentao.bupt@gmail.com> Signed-off-by: Wolfram Sang <wsa@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
66d987b80d
commit
fdd60315b9
1 changed files with 2 additions and 0 deletions
|
|
@ -69,6 +69,7 @@
|
|||
* These share bit definitions, so use the same values for the enable &
|
||||
* status bits.
|
||||
*/
|
||||
#define ASPEED_I2CD_INTR_RECV_MASK 0xf000ffff
|
||||
#define ASPEED_I2CD_INTR_SDA_DL_TIMEOUT BIT(14)
|
||||
#define ASPEED_I2CD_INTR_BUS_RECOVER_DONE BIT(13)
|
||||
#define ASPEED_I2CD_INTR_SLAVE_MATCH BIT(7)
|
||||
|
|
@ -604,6 +605,7 @@ static irqreturn_t aspeed_i2c_bus_irq(int irq, void *dev_id)
|
|||
writel(irq_received & ~ASPEED_I2CD_INTR_RX_DONE,
|
||||
bus->base + ASPEED_I2C_INTR_STS_REG);
|
||||
readl(bus->base + ASPEED_I2C_INTR_STS_REG);
|
||||
irq_received &= ASPEED_I2CD_INTR_RECV_MASK;
|
||||
irq_remaining = irq_received;
|
||||
|
||||
#if IS_ENABLED(CONFIG_I2C_SLAVE)
|
||||
|
|
|
|||
Loading…
Reference in a new issue