soc: fsl: qbman: avoid race in clearing QMan interrupt
authorMadalin Bucur <madalin.bucur@nxp.com>
Fri, 21 Dec 2018 14:41:42 +0000 (16:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:04:58 +0000 (14:04 -0700)
commitd31765ea42565bec01b1319c2a750a1d502e731a
tree0b3f45bd6f8ae5c01276f30a1b9ad67241bfff6d
parent37b6ac5254e6f16823b81e94173c603fd0e8a70a
soc: fsl: qbman: avoid race in clearing QMan interrupt

[ Upstream commit 89857a8a5c89a406b967ab2be7bd2ccdbe75e73d ]

By clearing all interrupt sources, not only those that
already occurred, the existing code may acknowledge by
mistake interrupts that occurred after the code checks
for them.

Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/fsl/qbman/qman.c