Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1338957pxb; Wed, 10 Feb 2021 06:19:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBd94I2h+CVA/MwnZtLVLlDLz6arJfO5UUIuBIfeQmC7qSSAVjHJ8JHT06V/PYs1Kvq7ND X-Received: by 2002:a50:fe18:: with SMTP id f24mr3281841edt.276.1612966776624; Wed, 10 Feb 2021 06:19:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612966776; cv=none; d=google.com; s=arc-20160816; b=U9j4y7Phx+j8NZAValAMh4BZC/6IG2nU0Njbr5dP96ZkG+armz5/mbU5FcbVi1XHcl 3fiBrbj33OSj5YrmdjzMFthKe9u19cZJ4IPzhuXYkUcXhEfUJdRsl71P2jMCZ/5q+zVk NBeTP4iJ0GXeOqZyoKjOrWA+rCHpcl5vDHyau9ue1Tdll2hEcaCQ5fY12jzmidGFcJUF ubVQO3s/rQQlh+NrEVQs1iebsx1YThgdtVV6BFA4VxADxHaZ8V2go9X0QDvG3UCfGjTl 0psf2p7eTHgDFKSbJ2U7Lv/ih23bpBhYVcQlXPLEq1/rwyl5ADEWNFu+8YN+Dt9zdpc3 LsOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=n8EsilSOgECefFIC90W+C9SGDDMLUf/2ZCfFobqFuVA=; b=LwV+EsrW+nOJqxdbfRKwax5Bf9JdsAuRJFCbo7vK62l5A/DKTmhtsmwpkBonXc4FqJ 7LuE/u8r3ggY7Z4oKFQwoValSEpEoNVSRqoxb4WOaWsWsE5+GKMsDspAyo+GFpovSmEV o6+5WtJgXeZCaO3+Uebjf8iNZ6Y4sORuCvASs8J9qWZITPOU++ceCZygP4NDgPNYT1Fd vI6E2Rba3qW0Rd/G5zNrvzBicYU7Bx+c8ACUORAyTveYMKFz4HSuis223E1FkT2eMSO3 OKTXe/KzkeYsrGAzks1hy0tDOPyfjbeX1Vrx+7az5lwnDCYgQbZQyw6NRSQQJ739KscG +vig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si1406915edy.511.2021.02.10.06.19.03; Wed, 10 Feb 2021 06:19:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231321AbhBJOSX (ORCPT + 99 others); Wed, 10 Feb 2021 09:18:23 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:58681 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbhBJOSQ (ORCPT ); Wed, 10 Feb 2021 09:18:16 -0500 X-Originating-IP: 86.202.109.140 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 399F660019; Wed, 10 Feb 2021 14:17:29 +0000 (UTC) Date: Wed, 10 Feb 2021 15:17:28 +0100 From: Alexandre Belloni To: Geert Uytterhoeven Cc: Lars Povlsen , Linus Walleij , Steen Hegelund , Microchip Linux Driver Support , "open list:GPIO SUBSYSTEM" , Linux ARM , "open list:BROADCOM NVRAM DRIVER" , Linux Kernel Mailing List Subject: Re: [PATCH] pinctrl: PINCTRL_MICROCHIP_SGPIO should depend on ARCH_SPARX5 || SOC_VCOREIII Message-ID: <20210210141728.GO351084@piout.net> References: <20210210132751.1422386-1-geert+renesas@glider.be> <87mtwcujd0.fsf@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/02/2021 14:53:01+0100, Geert Uytterhoeven wrote: > Hi Lars, > > On Wed, Feb 10, 2021 at 2:45 PM Lars Povlsen wrote: > > Geert Uytterhoeven writes: > > > the Microsemi/Microchip Serial GPIO device is present only Microsemi > > > VCore III and Microchip Sparx5 SoCs. Hence add a dependency on > > > ARCH_SPARX5 || SOC_VCOREIII, to prevent asking the user about this > > > driver when configuring a kernel without support for these SoCs. > > > > > > Fixes: 7e5ea974e61c8dd0 ("pinctrl: pinctrl-microchip-sgpio: Add pinctrl driver for Microsemi Serial GPIO") > > > 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 113073d5f89bbf70..3b75b1d7d3d1f1b0 100644 > > > --- a/drivers/pinctrl/Kconfig > > > +++ b/drivers/pinctrl/Kconfig > > > @@ -353,8 +353,8 @@ config PINCTRL_OCELOT > > > > > > config PINCTRL_MICROCHIP_SGPIO > > > bool "Pinctrl driver for Microsemi/Microchip Serial GPIO" > > > - depends on OF > > > - depends on HAS_IOMEM > > > + depends on OF && HAS_IOMEM > > > + depends on ARCH_SPARX5 || SOC_VCOREIII || COMPILE_TEST > > > select GPIOLIB > > > select GPIOLIB_IRQCHIP > > > select GENERIC_PINCONF > > > > Thank you for your patch. Unfortunately, it makes it impossible to use > > the driver across PCIe - which is a specifically desired configuration. > > > > Could you add CONFIG_PCI to the || chain? > > Sure. > > Is PCIe the only other transport over which the register can be accessed? > Or can this also be done over e.g. SPI, like on Ocelot[1]? > > [1] https://lore.kernel.org/linux-gpio/20200511145329.GV34497@piout.net/ > Yes, this driver IP is also available on Ocelot (this is SOC_VCOREIII) so this is also available over SPI. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com