Disable MSI also when pcie-octeon.pcie_disable on
authorYunQiang Su <ysu@wavecomp.com>
Tue, 8 Jan 2019 05:45:10 +0000 (13:45 +0800)
committerPaul Burton <paul.burton@mips.com>
Thu, 10 Jan 2019 18:57:13 +0000 (10:57 -0800)
commita214720cbf50cd8c3f76bbb9c3f5c283910e9d33
tree81901df2b274ae6008c52d9ec5175a0bcaaf6984
parent321c46b91550adc03054125fa7a1639390608e1a
Disable MSI also when pcie-octeon.pcie_disable on

Octeon has an boot-time option to disable pcie.

Since MSI depends on PCI-E, we should also disable MSI also with
this option is on in order to avoid inadvertently accessing PCIe
registers.

Signed-off-by: YunQiang Su <ysu@wavecomp.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: pburton@wavecomp.com
Cc: linux-mips@vger.kernel.org
Cc: aaro.koskinen@iki.fi
Cc: stable@vger.kernel.org # v3.3+
arch/mips/pci/msi-octeon.c