From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7445C38A24 for ; Thu, 7 May 2020 12:47:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 873EB207DD for ; Thu, 7 May 2020 12:47:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726451AbgEGMr0 (ORCPT ); Thu, 7 May 2020 08:47:26 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:44797 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbgEGMr0 (ORCPT ); Thu, 7 May 2020 08:47:26 -0400 Received: from localhost (lfbn-lyo-1-9-35.w86-202.abo.wanadoo.fr [86.202.105.35]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 52913200022; Thu, 7 May 2020 12:44:19 +0000 (UTC) Date: Thu, 7 May 2020 14:44:19 +0200 From: Alexandre Belloni To: Lars Povlsen Cc: Geert Uytterhoeven , Linus Walleij , Arnd Bergmann , Microchip Linux Driver Support , linux-gpio@vger.kernel.org, linux-mips@vger.kernel.org Subject: Re: [PATCH] pinctrl: ocelot: Add platform dependency Message-ID: <20200507124419.GG34497@piout.net> References: <20200507114015.24461-1-geert+renesas@glider.be> <20200507114525.GE34497@piout.net> <87ftccorqd.fsf@soft-dev15.microsemi.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ftccorqd.fsf@soft-dev15.microsemi.net> Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org On 07/05/2020 14:27:06+0200, Lars Povlsen wrote: > > Alexandre Belloni writes: > > > Hi, > > > > On 07/05/2020 13:40:15+0200, Geert Uytterhoeven wrote: > >> The Microsemi Ocelot pin controller is only present on Microsemi Ocelot > >> and Jaguar2 SoCs. Add a platform dependency to the PINCTRL_OCELOT > >> config symbol, to avoid asking the user about it when configuring a > >> kernel without Ocelot or Jaguar2 support. > >> > > > > I have to NAK here because there are upcoming (hopefully this cycle) > > SoCs using this driver. > > > > Not only because of that, but also an arbitrary system connecting to > ocelot by PCI could be using the driver. > Right, and that was why I removed the dependency when adding jaguar2 support I never booted the mips core of jaguar2, I used it using PCIe. > >> Signed-off-by: Geert Uytterhoeven > >> --- > >> drivers/pinctrl/Kconfig | 4 ++-- > >> 1 file changed, 2 insertions(+), 2 deletions(-) > >> > >> diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig > >> index f0ce4ce3e0f52456..bed67c08a0892240 100644 > >> --- a/drivers/pinctrl/Kconfig > >> +++ b/drivers/pinctrl/Kconfig > >> @@ -394,8 +394,8 @@ config PINCTRL_RK805 > >> > >> config PINCTRL_OCELOT > >> bool "Pinctrl driver for the Microsemi Ocelot and Jaguar2 SoCs" > >> - depends on OF > >> - depends on HAS_IOMEM > >> + depends on OF && HAS_IOMEM > >> + depends on MSCC_OCELOT || COMPILE_TEST > >> select GPIOLIB > >> select GPIOLIB_IRQCHIP > >> select GENERIC_PINCONF > >> -- > >> 2.17.1 > >> > > -- > Lars Povlsen, > Microchip -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com