From patchwork Tue Oct 15 09:55:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 1997289 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:40f1:3f00::1; helo=sy.mirrors.kernel.org; envelope-from=linux-gpio+bounces-11352-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [IPv6:2604:1380:40f1:3f00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XSV9c1Gnlz1xsc for ; Tue, 15 Oct 2024 21:06:12 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A6D4EB2151D for ; Tue, 15 Oct 2024 10:06:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B93C71E2619; Tue, 15 Oct 2024 10:06:07 +0000 (UTC) X-Original-To: linux-gpio@vger.kernel.org Received: from gauss.telenet-ops.be (gauss.telenet-ops.be [195.130.132.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FAA3166F34 for ; Tue, 15 Oct 2024 10:06:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.132.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728986767; cv=none; b=jzEByyOop94KTgt8hgEesr23A+J3/aFzSRsxY3eUUcUcDs5Jj7Obu+icyp/hjTrlz/26ct4Qe89ILHxyeL4swP2BvZlwLfDMjzIz734iOhSLJpIuQuPCVYtjaokjsqDVz/eRkAKAUFfRlKqLzS5Sem5BNlZi+JjV7TdQXbvAF+s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728986767; c=relaxed/simple; bh=dM+TqgAfWeoaj3qfwLnbR5ULqXUPhLr5ZfK49e6VOvU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=piGjHXJxuAy9cObF5fgMneOxY1qztZ+GhRRHXiEDk7EWV3dhzpKtfXAZQUiudwjUtHd9XVl2/AIz6ugKy5QTBfR1o/MSXjDPQx0Pob5lJADIDg3dojYR03byNxC6geHbhO4ZXYOVM7/MaT5MHOZdWj/9HIbFir8OOW4+gS6Wlzc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.132.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by gauss.telenet-ops.be (Postfix) with ESMTPS id 4XSTy02wNLz4wxKQ for ; Tue, 15 Oct 2024 11:56:08 +0200 (CEST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:2f01:8211:4b4e:86e2]) by andre.telenet-ops.be with cmsmtp id QZw12D0014yGcJj01Zw1Wl; Tue, 15 Oct 2024 11:56:01 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1t0eHL-003nbK-NS; Tue, 15 Oct 2024 11:56:00 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1t0eHY-003eLd-RP; Tue, 15 Oct 2024 11:56:00 +0200 From: Geert Uytterhoeven To: Linus Walleij , Ze Huang <18771902331@163.com>, Conor Dooley Cc: linux-gpio@vger.kernel.org, linux-riscv@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] pinctrl: PINCTRL_K230 should depend on ARCH_CANAAN Date: Tue, 15 Oct 2024 11:55:58 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The Canaan Kendryte K230 pin controller is only present on Canaan Kendryte K230 SoCs. Hence add a dependency on ARCH_CANAAN, to prevent asking the user about this driver when configuring a kernel without Canaan Kendryte series SoC platform support. Fixes: 545887eab6f6776a ("pinctrl: canaan: Add support for k230 SoC") Signed-off-by: Geert Uytterhoeven --- drivers/pinctrl/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 216662189e8d8cda..10533438398bc14e 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig @@ -271,6 +271,7 @@ config PINCTRL_K210 config PINCTRL_K230 bool "Pinctrl driver for the Canaan Kendryte K230 SoC" depends on OF + depends on ARCH_CANAAN || COMPILE_TEST select GENERIC_PINCTRL_GROUPS select GENERIC_PINMUX_FUNCTIONS select GENERIC_PINCONF