]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: OCTEON: don't set octeon_dma_bar_type if PCI is disabled
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sun, 27 Jan 2019 21:28:33 +0000 (23:28 +0200)
committerPaul Burton <paul.burton@mips.com>
Tue, 29 Jan 2019 19:47:02 +0000 (11:47 -0800)
commit77ad34ca8e0baf65d8dca410b0e9ad082ba77957
tree5d0b294999b3a7b63ac731769d351bb416ae6d64
parent4bd6719d6a585666f32cc243aad4f2dfddb3664a
MIPS: OCTEON: don't set octeon_dma_bar_type if PCI is disabled

Don't set octeon_dma_bar_type if PCI is disabled. This avoids creation
of the MSI irqchip later on, and saves a bit of memory.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Fixes: 01324c66ee7e ("Disable MSI also when pcie-octeon.pcie_disable on")
Cc: stable@vger.kernel.org # v3.3+
Cc: linux-mips@vger.kernel.org
arch/mips/pci/pci-octeon.c