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=-14.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,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 79AB4C433DB for ; Wed, 10 Feb 2021 13:46:52 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 292C964E6F for ; Wed, 10 Feb 2021 13:46:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 292C964E6F Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:In-Reply-To:Subject:To: From:References:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LqNzl4cpMQqYxPIkFAeg4zJ1kcA05KK/Rma9YZxdsCg=; b=wSwHArvqhmTCnZzuDGzozMvc1 jf+h/J8oM/dS7aGo8D1BSJ2TGDNICAuzt9rkExT9qs4CeeK6sxTqqRcOVtoaT1awpKsbMd92aOW3j 3mZphaVc1Le6Y35O+DGEEneemUOn0dm58uJAERej4/gzbawtsHld5exTi4DuYEiTQN3e8bcINj9uB UvRcxB2TwvgYPujsreiKGY9bYA+sYOUu7dKOuHKt3SXXSYyb091YZPWkrEO8cP7Fm4Cp4u475SpZj g/WP3VnZPuWoiOKHrtsQ/aOycvoTFVTEdvOEefadBVGJ7loyPZLw2QQu1DkNvIoNBZPnns74nEwiL Un7jf1Fyw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l9poN-0003yb-MC; Wed, 10 Feb 2021 13:45:43 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l9poI-0003xf-Sa for linux-arm-kernel@lists.infradead.org; Wed, 10 Feb 2021 13:45:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1612964738; x=1644500738; h=references:from:to:cc:subject:in-reply-to:date: message-id:mime-version; bh=ZK4J4t3KWKLxryUAQFN/kK0YWfWodwLhG+egShcVgjk=; b=pTGu6Eth3ttIuUmjRF00pPB3xvTzcdL1JzfoUC6Gz2QJtgAE2zgkRVKw b+k5qZi68meSUorOP5cXR40KGpKvmyHoP5kOtZ7sebc5EKKWTgzU9Gm19 eNqJaiPpNdZWL6vL6yxWaweMptmERccd+Qb1/fspG4riCT8L6rDn6AdUD Ap1OVKz5rOyAp6SKGPjhxGU0hgkLqP6RDHMZIzzqz8sL2bPcjEJIExyCw 2ssZH1Bo971jvt7rPrxmjb1w7VAuGbdgj6dgloWjXg40VD2Tb4bxId4eG yNB0lOaQb5B0Vfbdsbmq1cvEivZkWGDxPr6PTAaImP+DxcPykiQ++RCTB Q==; IronPort-SDR: 0YM2d3k1fC5uD+d18/ORVHjsexLnkcU6bWKJubDijtuma1EpLElYgzgyBJqZ6bJseDv/VthiXn guCoa1Eh4gUaz7c/oZrloXPJH8FoS/lrz6wQqXwcHEsfM0ixnXx45amA4hyoL/KGmI1SjJnuAK k/OOWl/mTLMR6v5GXPbVi+RfEF+WeW4giC3X04RJT2i5zkn0uwu6+muiPLKOCYtUdwhKFA7t04 CFv2RCDEu7QJCMZXPdrdg9xmZUaIcA9QR6blI4TdW25E3FIRT5mXlOIwkCzjAB5HIfwrUR20xf LEc= X-IronPort-AV: E=Sophos;i="5.81,168,1610434800"; d="scan'208";a="106116804" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 10 Feb 2021 06:45:35 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Wed, 10 Feb 2021 06:45:35 -0700 Received: from soft-dev10.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3 via Frontend Transport; Wed, 10 Feb 2021 06:45:33 -0700 References: <20210210132751.1422386-1-geert+renesas@glider.be> User-agent: mu4e 1.2.0; emacs 26.3 From: Lars Povlsen To: Geert Uytterhoeven Subject: Re: [PATCH] pinctrl: PINCTRL_MICROCHIP_SGPIO should depend on ARCH_SPARX5 || SOC_VCOREIII In-Reply-To: <20210210132751.1422386-1-geert+renesas@glider.be> Date: Wed, 10 Feb 2021 14:45:31 +0100 Message-ID: <87mtwcujd0.fsf@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210210_084539_140413_F0C79A36 X-CRM114-Status: GOOD ( 16.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , linux-kernel@vger.kernel.org, Linus Walleij , linux-mips@vger.kernel.org, UNGLinuxDriver@microchip.com, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Steen Hegelund , Lars Povlsen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Geert, 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? Cheers, -- Lars Povlsen, Microchip _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel