mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-18 16:44:27 +08:00
3a5fe2fb96
When BCM47XX_BCMA is enabled and BCMA_DRIVER_PCI is disabled, it results
in the following Kbuild warning:
WARNING: unmet direct dependencies detected for BCMA_DRIVER_PCI_HOSTMODE
Depends on [n]: MIPS [=y] && BCMA_DRIVER_PCI [=n] && PCI_DRIVERS_LEGACY [=y] && BCMA [=y]=y
Selected by [y]:
- BCM47XX_BCMA [=y] && BCM47XX [=y] && PCI [=y]
The reason is that BCM47XX_BCMA selects BCMA_DRIVER_PCI_HOSTMODE without
depending on or selecting BCMA_DRIVER_PCI while BCMA_DRIVER_PCI_HOSTMODE
depends on BCMA_DRIVER_PCI. This can also fail building the kernel.
Honor the kconfig dependency to remove unmet direct dependency warnings
and avoid any potential build failures.
Fixes: c1d1c5d421
("bcm47xx: add support for bcma bus")
Link: https://bugzilla.kernel.org/show_bug.cgi?id=209879
Signed-off-by: Necip Fazil Yildiran <fazilyildiran@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
if BCM47XX
|
|
|
|
config BCM47XX_SSB
|
|
bool "SSB Support for Broadcom BCM47XX"
|
|
select SYS_HAS_CPU_BMIPS32_3300
|
|
select SSB
|
|
select SSB_HOST_SOC
|
|
select SSB_DRIVER_MIPS
|
|
select SSB_DRIVER_EXTIF
|
|
select SSB_EMBEDDED
|
|
select SSB_PCIHOST if PCI
|
|
select SSB_B43_PCI_BRIDGE if PCI
|
|
select SSB_DRIVER_PCICORE if PCI
|
|
select SSB_PCICORE_HOSTMODE if PCI
|
|
select SSB_DRIVER_GPIO
|
|
default y
|
|
help
|
|
Add support for old Broadcom BCM47xx boards with Sonics Silicon Backplane support.
|
|
|
|
This will generate an image with support for SSB and MIPS32 R1 instruction set.
|
|
|
|
config BCM47XX_BCMA
|
|
bool "BCMA Support for Broadcom BCM47XX"
|
|
select SYS_HAS_CPU_MIPS32_R2
|
|
select SYS_SUPPORTS_HIGHMEM
|
|
select CPU_MIPSR2_IRQ_VI
|
|
select BCMA
|
|
select BCMA_HOST_SOC
|
|
select BCMA_DRIVER_MIPS
|
|
select BCMA_DRIVER_PCI if PCI
|
|
select BCMA_DRIVER_PCI_HOSTMODE if PCI
|
|
select BCMA_DRIVER_GPIO
|
|
default y
|
|
help
|
|
Add support for new Broadcom BCM47xx boards with Broadcom specific Advanced Microcontroller Bus.
|
|
|
|
This will generate an image with support for BCMA and MIPS32 R2 instruction set.
|
|
|
|
endif
|