memory: tegra: Do not handle spurious interrupts
authorDmitry Osipenko <digetx@gmail.com>
Mon, 9 Apr 2018 19:28:27 +0000 (22:28 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 27 Apr 2018 09:21:52 +0000 (11:21 +0200)
commitbf3fbdfbec947cdd04b2f2c4bce11534c8786eee
tree148f03b8cc51571af949a890ff912187955c2d35
parent5c8d08f3471265dfd2f6db6d381751848dbf7db3
memory: tegra: Do not handle spurious interrupts

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>
drivers/memory/tegra/mc.c