Received: by 10.192.165.148 with SMTP id m20csp1027841imm; Thu, 10 May 2018 04:35:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqoFnH40RNNaur+2zjiQOzk529dMmf+s0GOvPuEyuYpQCFuTogNdTI+ieAC+PAa+LPAqeEa X-Received: by 2002:a63:ba05:: with SMTP id k5-v6mr861084pgf.39.1525952159664; Thu, 10 May 2018 04:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525952159; cv=none; d=google.com; s=arc-20160816; b=Zz0ICMrq7h6eJanLT8CQeLMUesk2ht6mU8obZa2JnLvqbUcha3IoXvB6YWeHMAJTJO 8OauqawcGOSOzLXW41wHU7ViUVDZ6cpnkGrrgayqYuUqqpk5e2h3jLbYBpFq/CjashbD JK5uN2XcjFcWJRzKPSCxZ0aL/cSFfNxZpTK2msK//wZn1vStxFCCW9POO+ghuNjM38qV HKangd2IliQp8vWTg93rTO8rH5szg9K9QaafR2ibw1ggFcY+4n6DBO65Xl18qN3DPNTE fwGX+L3ZnnjMzBEKeXtL0b5rPytOrJPNiuIliBTY+d63KbTxMG6x8t73RF8414T/IAzg e1/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=+RPLYB/VK9JaF9pSPDS611J/3bA9Vip5sAU9WeIgFI8=; b=BVxvh+6ISATn0cRHlufvGlUe8KcQkkDLyW6LIGtllEXH7JGfxuweJW29/GaIPlmCsD in9WnymY4bHU3yjteTpTHHR/NWbKTDtrJYQia78VNe1n6kiS1FZFlcU7lWvuxhVgnwiN 6ZT5rNkWv2yHyin8X9D6foBHCr/gaZsaOnWm0HNoBI9Tz1FRgGImQIoEn2hnkkeECacz 4rJujSt5PfL6EBMm1sR6M5sCC/9+zooCcREGmCa8GwE1B4lmUn45H7bE5yPZmNkxsKvZ qgA34XoTKWfvQpuSpdlcQw1Ix3lzKyYNHYyGZjXT1h+AjgmfTTQDxxoN93H/iCDTc3RW jkhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b60-v6si646551plc.270.2018.05.10.04.35.45; Thu, 10 May 2018 04:35:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757170AbeEJLfR convert rfc822-to-8bit (ORCPT + 99 others); Thu, 10 May 2018 07:35:17 -0400 Received: from 9pmail.ess.barracuda.com ([64.235.150.225]:41242 "EHLO 9pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757123AbeEJLfQ (ORCPT ); Thu, 10 May 2018 07:35:16 -0400 Received: from mipsdag02.mipstec.com (mail2.mips.com [12.201.5.32]) by mx3.ess.sfj.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=NO); Thu, 10 May 2018 11:34:44 +0000 Received: from [192.168.155.41] (192.168.155.41) by mipsdag02.mipstec.com (10.20.40.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1415.2; Thu, 10 May 2018 04:35:09 -0700 Subject: Re: [PATCH 4.17 2/2] ssb: make SSB_PCICORE_HOSTMODE depend on SSB = y To: =?UTF-8?Q?Michael_B=c3=bcsch?= , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= CC: Kalle Valo , Larry Finger , "linux-wireless@vger.kernel.org" , Hauke Mehrtens , LKML , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= References: <20180510111401.1161-1-zajec5@gmail.com> <20180510111401.1161-2-zajec5@gmail.com> <20180510131725.111079af@wiggum> <20180510132612.25c8c20e@wiggum> From: Matt Redfearn Message-ID: Date: Thu, 10 May 2018 12:35:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180510132612.25c8c20e@wiggum> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8BIT X-Originating-IP: [192.168.155.41] X-ClientProxiedBy: mipsdag02.mipstec.com (10.20.40.47) To mipsdag02.mipstec.com (10.20.40.47) X-BESS-ID: 1525952083-298554-31095-59973-1 X-BESS-VER: 2018.5-r1804261738 X-BESS-Apparent-Source-IP: 12.201.5.32 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.192873 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 10/05/18 12:26, Michael Büsch wrote: > On Thu, 10 May 2018 13:20:01 +0200 > Rafał Miłecki wrote: > >> On 10 May 2018 at 13:17, Michael Büsch wrote: >>> On Thu, 10 May 2018 13:14:01 +0200 >>> Rafał Miłecki wrote: >>> >>>> From: Rafał Miłecki >>>> >>>> SSB_PCICORE_HOSTMODE protects MIPS specific code that calls not exported >>>> 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ł Miłecki >>>> --- >>>> 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 = 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? Yeah - that was commit 58eae1416b80 ("ssb: Disable PCI host for PCI_DRIVERS_GENERIC"). > > 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. > Yeah the dependency would seem to be in the wrong place and should be on SSB_PCICORE_HOSTMODE, in the same way as the bcma driver - commits 664eadd6f44b ("bcma: Fix 'allmodconfig' and BCMA builds on MIPS targets") & 79ca239a68f8 ("bcma: Prevent build of PCI host features in module"). Thanks, Matt