MIPS: ralink: enable PCI support only if driver for mt7621 SoC is selected
[ Upstream commit5.4-rM2-2.2.x-imx-squashed3b2fa0c926
] Some versions of SoC MT7621 have three PCI express hosts. Some boards make use of those PCI through the staging driver mt7621-pci. Recently PCI support has been removed from MT7621 Soc kernel configuration due to a build error. This makes imposible to compile staging driver and produces a regression for gnubee based boards. Enable support for PCI again but enable it only if staging mt7621-pci driver is selected. Fixes:c4d48cf5e2
("MIPS: ralink: deactivate PCI support for SOC_MT7621") Cc: Hauke Mehrtens <hauke@hauke-m.de> Cc: ralf@linux-mips.org Cc: jhogan@kernel.org Cc: john@phrozen.org Cc: NeilBrown <neil@brown.name> Cc: linux-mips@vger.kernel.org Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Link: https://lore.kernel.org/r/20191019081233.7337-1-sergio.paracuellos@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
parent
519a279894
commit
114a9b2c0c
|
@ -51,6 +51,7 @@ choice
|
||||||
select MIPS_GIC
|
select MIPS_GIC
|
||||||
select COMMON_CLK
|
select COMMON_CLK
|
||||||
select CLKSRC_MIPS_GIC
|
select CLKSRC_MIPS_GIC
|
||||||
|
select HAVE_PCI if PCI_MT7621
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
choice
|
choice
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
config PCI_MT7621
|
config PCI_MT7621
|
||||||
tristate "MediaTek MT7621 PCI Controller"
|
tristate "MediaTek MT7621 PCI Controller"
|
||||||
depends on RALINK
|
depends on RALINK
|
||||||
depends on PCI
|
|
||||||
select PCI_DRIVERS_GENERIC
|
select PCI_DRIVERS_GENERIC
|
||||||
help
|
help
|
||||||
This selects a driver for the MediaTek MT7621 PCI Controller.
|
This selects a driver for the MediaTek MT7621 PCI Controller.
|
||||||
|
|
Loading…
Reference in New Issue