memory: tegra: Do not handle spurious interrupts
authorDmitry Osipenko <digetx@gmail.com>
Mon, 9 Apr 2018 19:28:27 +0000 (22:28 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:55:24 +0000 (07:55 +0200)
commit1516a6019485297c1c5b8d10a869fe6769d9227a
tree4b4eea6865341bd32f1c3d75a54c740646aee8a1
parent7d044d940faeb6a7e65a1d215415e425822f365c
memory: tegra: Do not handle spurious interrupts

[ Upstream commit bf3fbdfbec947cdd04b2f2c4bce11534c8786eee ]

The ISR reads interrupts-enable mask, but doesn't utilize it. Apply the
mask to the interrupt status and don't handle interrupts that MC driver
haven't asked for. Kernel would disable spurious MC IRQ and report the
error. This would happen only in a case of a very severe bug.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/memory/tegra/mc.c