Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Octeon: Determine if helper needs to be built

This patch adds an config switch to determine if we need to build some
workaround helper files.

The staging driver octeon-ethernet references some symbols which are only
built when PCI is enabled. The new config switch enables these symbols in
bothe cases.

Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
To: linux-kernel@vger.kernel.org
Cc: Andreas Bießmann <biessmann@corscience.de>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1543/
Acked-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Andreas Bießmann and committed by
Ralf Baechle
1ec0e739 2b78920d

+5 -1
+4
arch/mips/cavium-octeon/Kconfig
··· 83 83 def_bool y 84 84 select SPARSEMEM_STATIC 85 85 depends on CPU_CAVIUM_OCTEON 86 + 87 + config CAVIUM_OCTEON_HELPER 88 + def_bool y 89 + depends on OCTEON_ETHERNET || PCI
+1 -1
arch/mips/cavium-octeon/executive/Makefile
··· 11 11 12 12 obj-y += cvmx-bootmem.o cvmx-l2c.o cvmx-sysinfo.o octeon-model.o 13 13 14 - obj-$(CONFIG_PCI) += cvmx-helper-errata.o cvmx-helper-jtag.o 14 + obj-$(CONFIG_CAVIUM_OCTEON_HELPER) += cvmx-helper-errata.o cvmx-helper-jtag.o