Received: by 10.192.165.148 with SMTP id m20csp1028587imm; Thu, 10 May 2018 04:36:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoiMXkNVKjcK1hID3oMCPYX+UUkVFKCdzy8ypI/CPHf8XGMtqHFuw/YseO+aMLkp3P7Lrnt X-Received: by 2002:a63:603:: with SMTP id 3-v6mr847788pgg.435.1525952206664; Thu, 10 May 2018 04:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525952206; cv=none; d=google.com; s=arc-20160816; b=r9r6HNX0qP9inoe2OwLbMnOIYPqdNIcP6kXL0uqp2MKp3OvUoQFG/0bFbzq6Gi9TmA 5kvv22XVmjPig5ok+1FeX1i19bhAIvLNd+8A0MhZ4/oGr3oW3y5nNCJi2oZaX7OMMOL9 jBJdZNZhzOvnl+T7Tl2rzFm+60+pT8jM0QJvSCwcHAYSCzGNyHWVCB+Gnqob/O0Lp/z9 KK9EC/+P6BrXMFY7Eo67PmtnjVhs9IEFFHrt1fCXxodhMUlC0xJ1Ss0Cz/FowJUpw8JW Hm6nh9cjXpDf9O5cz8ccGQXlmb5cs++xP/uN0NfqJ4sLtn0r7ZuSThJYg6Iak92PJkJm yUug== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=hIHaHGSF6LAmZgD7o/JXK0CJ7k9WXDDqe9+5LvsyWYA=; b=YBeqOItESz/IUgqJs4z0cvbLrIjhvMzG8EaQscq4jof6YxWKpFHGeqNZSht718xAfI 8b0Egldirn8QXqe95VAlAfjx1tlz6f+7pKutAGGv1V33JZ2pJb6IZHw8zbL0EjU/3KX9 JweQcAU1ja0nfUKlPD8aXH8rkRIyYGYDzlVBZxMqz/HbQ4+WvNl4beb8R/OXQ+bdd2Fx 6f8hTLzt6P9bKIPh82DnuE7vzAFlXSkJbGi6M4cK2SOVU0vfiFr7NAAma6LVjIjYnJkK PwCxXJ7h2h/PVCsiyvwZD2kJxE9mjjsfvospHU1yAumHH/Y/mGvvh4b1rlnKwOBshU0O mQWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pq5pS9Bz; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a23-v6si567483pfi.353.2018.05.10.04.36.32; Thu, 10 May 2018 04:36:46 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pq5pS9Bz; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757187AbeEJLfa (ORCPT + 99 others); Thu, 10 May 2018 07:35:30 -0400 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 Received: by mail-wm0-f68.google.com with SMTP id j5-v6so3772098wme.5; Thu, 10 May 2018 04:35:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hIHaHGSF6LAmZgD7o/JXK0CJ7k9WXDDqe9+5LvsyWYA=; b=pq5pS9BzCPO7zBLiuuDKV/T6kCJ+88tb4tf118+X/oPpEe3wwXswgY4z+V3X7+7dN8 0XOPFohDhiWBUmb69Xg/VdWcc8o6SfSzL6AFP/Sxsaq5nMe3V+HGnBhVYeiasf7vPQ0C GEIc/EleVsuX9q/fNwkExjnj+WFpQABEJbaDMvr58KMvQGM49W0BwHZgS78euNTAyECm jdrGQV/D3poIRWt5bN/dbm3rtwF9Cg1FIXQJKnb3SIBeRF94PWZ3dDTg1fIr8/zc+xUM 4jPEr+rgOUH4fDf5UKogRu03w/3X0rmdq6VQNABqjABBU6I69cMM8OCDs0EYel1FSisy +5Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hIHaHGSF6LAmZgD7o/JXK0CJ7k9WXDDqe9+5LvsyWYA=; b=OC9AuFF//vPiAm0F6dNT0Ix0iLFLhpcSORnRMXTZZsisA5Ba7QEf2vmJ+5xVnLPMDQ vF+/gHSXVUAQklr8LeQHWL44tzdNcypMFLMXf0CYWF/fqz0Xru5Bl79NoQ4ed5vdOR3Z vtHiMwFXg7uBMqWnZtEaOCs3srutI0ul+Z51ChGJTbB1wwR2xXorjIanNB9qfX9E3Pb6 ENyzRrz89ZS729dNtnxF8B1GAlUSA4Mu/Ch/0BNxTHtzHOvSIbuiaDoVNk8PjGy7tGeo xEOPtvF7hkokKl1ooEmCs4Z8B8TD/LUlepD1SUd58wlGIv/UeWV/CYZj2ti7FULkuV55 oIhw== X-Gm-Message-State: ALKqPwc/OcYNIgNOk04ZlSNuSakmvAchw0a/LTErqYooSpKEhjq4QI/P BMlNRHvhkcuQBCdv0B2N1BNfyKZUzRlIFidbGIM= X-Received: by 2002:a1c:e182:: with SMTP id y124-v6mr1048880wmg.57.1525952126821; Thu, 10 May 2018 04:35:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.145.78 with HTTP; Thu, 10 May 2018 04:35:26 -0700 (PDT) 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: 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" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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