Return-path: Received: from mail-wm0-f68.google.com ([74.125.82.68]:40209 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757103AbeEJLf2 (ORCPT ); Thu, 10 May 2018 07:35:28 -0400 MIME-Version: 1.0 In-Reply-To: <20180510132612.25c8c20e@wiggum> References: <20180510111401.1161-1-zajec5@gmail.com> <20180510111401.1161-2-zajec5@gmail.com> <20180510131725.111079af@wiggum> <20180510132612.25c8c20e@wiggum> From: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Date: Thu, 10 May 2018 13:35:26 +0200 Message-ID: (sfid-20180510_133542_954929_D189EACF) Subject: Re: [PATCH 4.17 2/2] ssb: make SSB_PCICORE_HOSTMODE depend on SSB = y To: =?UTF-8?Q?Michael_B=C3=BCsch?= Cc: Kalle Valo , Larry Finger , Matt Redfearn , "linux-wireless@vger.kernel.org" , Hauke Mehrtens , LKML , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org List-ID: On 10 May 2018 at 13:26, Michael B=C3=BCsch wrote: > On Thu, 10 May 2018 13:20:01 +0200 > Rafa=C5=82 Mi=C5=82ecki wrote: > >> On 10 May 2018 at 13:17, Michael B=C3=BCsch wrote: >> > On Thu, 10 May 2018 13:14:01 +0200 >> > Rafa=C5=82 Mi=C5=82ecki wrote: >> > >> >> From: Rafa=C5=82 Mi=C5=82ecki >> >> >> >> SSB_PCICORE_HOSTMODE protects MIPS specific code that calls not expor= ted >> >> symbols pcibios_enable_device and register_pci_controller. This code = is >> >> supposed to be compiled only with ssb builtin. >> >> >> >> This fixes: >> >> ERROR: "pcibios_enable_device" [drivers/ssb/ssb.ko] undefined! >> >> ERROR: "register_pci_controller" [drivers/ssb/ssb.ko] undefined! >> >> make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1 >> >> >> >> Signed-off-by: Rafa=C5=82 Mi=C5=82ecki >> >> --- >> >> drivers/ssb/Kconfig | 2 +- >> >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> >> >> diff --git a/drivers/ssb/Kconfig b/drivers/ssb/Kconfig >> >> index b3f5cae98ea6..c574dd210500 100644 >> >> --- a/drivers/ssb/Kconfig >> >> +++ b/drivers/ssb/Kconfig >> >> @@ -131,7 +131,7 @@ config SSB_DRIVER_PCICORE >> >> >> >> config SSB_PCICORE_HOSTMODE >> >> bool "Hostmode support for SSB PCI core" >> >> - depends on SSB_DRIVER_PCICORE && SSB_DRIVER_MIPS >> >> + depends on SSB_DRIVER_PCICORE && SSB_DRIVER_MIPS && SSB =3D y >> >> help >> >> PCIcore hostmode operation (external PCI bus). >> >> >> > >> > >> > I think we also need to depend on PCI_DRIVERS_LEGACY. >> > See the other patch that floats around. >> >> I believe it's already handled by SSB_PCIHOST_POSSIBLE's dependency on >> PCI_DRIVERS_LEGACY. > > > That dependency seems to be wrong there. > Was it added among some other "let's just unbreak some random > build" change as well? I guess so. > SSB_PCIHOST enables support for SSB on top of PCI. (Which is 99% of it > uses). I don't see how this uses the legacy API. > > SSB_PCICORE_HOSTMODE enables PCI on top of SSB. Which is a MIPS corner > case. This uses the legacy MIPS API to register a PCI bus. I agree current dependency on PCI_DRIVERS_LEGACY doesn't make sense. It doesn't break thing though, thanks to the || !MIPS. I'm going to fix that up in separated patch. --=20 Rafa=C5=82