i2c: aspeed: Mask IRQ status to relevant bits
authorEddie James <eajames@linux.ibm.com>
Wed, 9 Sep 2020 20:30:57 +0000 (15:30 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 15:36:24 +0000 (17:36 +0200)
commitb7b5742eb70b2a168b43d5a2cbaf90bff18ae636
tree77bc73abe21a539c4c290fb870e5d4a15fb47065
parentaf5681dfa0aaf4fc96f1bd1dfb00a39270107053
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>
drivers/i2c/busses/i2c-aspeed.c