Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1303788pxb; Wed, 10 Feb 2021 05:30:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzimyB1jDGWIZ6B4/uE1fUPxR8njWYnYDzQzlKBxDxSqUqM1tShPh+2eOBDtXn6Ek7UrZIn X-Received: by 2002:a17:906:2b16:: with SMTP id a22mr2933245ejg.291.1612963812159; Wed, 10 Feb 2021 05:30:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612963812; cv=none; d=google.com; s=arc-20160816; b=BKXvunCgi61h+ybl8PAotx43LmXKxBvvs/WZRKqhoKDE7JS+KKKDaHnYRMCMEDJEEs MwXfPX/a1mJEUM13/clJjIb9+5klwZKih80cu3FmpVwph0RtZ1UADj+8zCYIYT3C5W4T HDp/x7mCRD5AksVV2wVFm4jgGCrqMJhpMLJzHpn826WTogZ+kz6Wc0SpbZvps9gDVEBK RY9WFw8nYMCoL96dOsilrBPyB0EGK5R/22aHPsrdhGyV41IDCI6O6a4WksvTQL7SanM7 XGwLndNK/TEvoNlcL4cKIpJZg1sLLcnOiUlXATiRjnfxo3WjepICDi5q789GokBftqO0 bB/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=FfLq0I0jsk4SZSM6sc2FqG712GWKp3HNqFYB9Tfg3Pw=; b=rSc8lznt+R+ujijJT4byS/FSXRNE57YaFa4XoW4h3Js2d1AVUF9XUT2gqMw9Hi48oe 9dhrpDcxbpQFnJcwarv+l7QBzgmKBlTV68y05xM0Aj2uVIDrS0KSzXdHVswmRtKr3kxB JoDYz9bH/9imel+SPKOUWB1E1jIlF7VgL1zRG2UizZXkxBnIolrCjWI8J60Ddipp8bcU 8uNEdSb+lS9MO2LkmA5g97k8Cncxwx8HHajuF66J+FNnjosJzyBtBBJwSP9N53EzmQxa twlZzS/nn9uQHEhAvHc4ZmUppHsGPh0PReSnLkvZGJHee5Nb7WeKjkKuo39Rc6gNqYx+ aS3w== 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 hr22si1324760ejc.388.2021.02.10.05.29.45; Wed, 10 Feb 2021 05:30:12 -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 S231489AbhBJN2k (ORCPT + 99 others); Wed, 10 Feb 2021 08:28:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231438AbhBJN2h (ORCPT ); Wed, 10 Feb 2021 08:28:37 -0500 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AAFFC061574 for ; Wed, 10 Feb 2021 05:27:56 -0800 (PST) Received: from ramsan.of.borg ([84.195.186.194]) by xavier.telenet-ops.be with bizsmtp id TRTt2400Q4C55Sk01RTtix; Wed, 10 Feb 2021 14:27:54 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1l9pX7-005H6v-5T; Wed, 10 Feb 2021 14:27:53 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1l9pX6-005y2T-H5; Wed, 10 Feb 2021 14:27:52 +0100 From: Geert Uytterhoeven To: Linus Walleij , Lars Povlsen , Steen Hegelund , Alexandre Belloni Cc: UNGLinuxDriver@microchip.com, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] pinctrl: PINCTRL_MICROCHIP_SGPIO should depend on ARCH_SPARX5 || SOC_VCOREIII Date: Wed, 10 Feb 2021 14:27:51 +0100 Message-Id: <20210210132751.1422386-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.25.1