Message ID | 20240120182929.1129183-2-martin@kaiser.cx |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-31872-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp1752778dyb; Sat, 20 Jan 2024 10:30:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFIPDDwlYQUqd7tSJxbqf5jV83luV8uds6IahgbRFKG8k0NpTPWODcZ1ocMnm4bbiZjA3su X-Received: by 2002:a05:6358:7a8:b0:175:e96d:3c4a with SMTP id n40-20020a05635807a800b00175e96d3c4amr2252206rwj.11.1705775451139; Sat, 20 Jan 2024 10:30:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705775451; cv=pass; d=google.com; s=arc-20160816; b=WXbkZ0ErR63QINlp4RE+Kf2JLzmg/PntojQdQqE+XjETGpUG01oxlcd+e4sBNVKKgh qBkRRYIBOS7h1fezU23PlMQTi+ERhHVE0BqnkEmd/CTk1AC6no7U4ioW1X+czowOnWqO /+ibhS0nXEatSMBXoPG2VmVJTUzWqHS/XEfn7c+pPoao4LfM+bXPpgNEO97de6RJT9F+ FWkML41OSIeiSVyDZjZCmz9i4LDhI/jf64kpi+j0HAMzLnffsQYYpdhaidwzfLZYBKrf pXaaq9vHjo7CueiiR9ANoQqv/MH2n26DdTWZvzcqgpi4fbLWo//rAvtautn3+tfwn7no XW4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=ig36PvsdSg3k2pJW/lY0mIl4yUC012kNGQ+Mrp3vlKw=; fh=0DZzQ0T1pV/QOLYdVR6ViMk4Eul4BEXt2QI1d1lw5Y4=; b=J0YKP9Z1WYDo8j8O5InYRGr5eAgWWeT6a6ZQ+52zVc5XVBxpPHrUWNgmWRYQpikcIK 7XjmdOfFQ3emBXY5tKwxlUC1tESB3adqssa2ktDGj/ptFzBfY4zzzAyJVoOiVx/Rerhu HHY07FGf0G95P8cobr8O2K+h2V4CpYYApHsbIpGmcIeopl+DlFe/XJr5BTDVce5VbaCh KuwiwFhiWCMk/Esk9KaGQBeDnK/vnbDpm40F9//Pugw9mevZxTlkn3Ho0fGqyh0aaPeD rcXnYAUKKe2CgVBowKImBlr7cpu/cPTp8L1VlKdbe+dqECMkS7SwjvbAJGMNLVpz0zec hAog== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kaiser.cx); spf=pass (google.com: domain of linux-kernel+bounces-31872-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31872-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id gk1-20020a17090b118100b0028ff7941b5fsi1606122pjb.38.2024.01.20.10.30.50 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 10:30:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31872-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kaiser.cx); spf=pass (google.com: domain of linux-kernel+bounces-31872-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31872-ouuuleilei=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D8793282F70 for <ouuuleilei@gmail.com>; Sat, 20 Jan 2024 18:30:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 69F8914F85; Sat, 20 Jan 2024 18:30:09 +0000 (UTC) Received: from akranes.kaiser.cx (akranes.kaiser.cx [152.53.16.207]) (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 43182125DA; Sat, 20 Jan 2024 18:30:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=152.53.16.207 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705775407; cv=none; b=o5BjNpiFuNZeuxgJ5euNU2xZWFYtDH5tDrLmIKngnifR86G9IioCCAUD1/NXfzI6HyoJ1lknNvM2NfysEscBo5mctS/0/PwTNqlBkizln5BLB4/iOv4UPA4Ho0XHTgKe6Y7DNEjaQIU8kCmeKWzAE0O3S6ffoUM2SHB56g7ojOo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705775407; c=relaxed/simple; bh=ZozKb2DSW5ARGRmpcf8M9RKu0CAMeRbLeLSR3ulc1uY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AXRiPzlOz+3/mJsr79BIsyt5XG6xDUE+Uzt5oXyQ2HXbIDVuIUB+E2nxwPE07KG8/Q07Q3N2Ni0XMqfx9I+aTHdsb8Fbj7nu/JA6URi8ROg1Gjj05/CmhNkf1FZtcJs/vx+3HuBUgmB+J/IGVCf4maW1oPaHate6czOH7o9/ZCA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kaiser.cx; spf=pass smtp.mailfrom=kaiser.cx; arc=none smtp.client-ip=152.53.16.207 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kaiser.cx Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kaiser.cx Received: from dslb-178-004-202-210.178.004.pools.vodafone-ip.de ([178.4.202.210] helo=martin-debian-2.paytec.ch) by akranes.kaiser.cx with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <martin@kaiser.cx>) id 1rRG6L-000BIC-1D; Sat, 20 Jan 2024 19:29:53 +0100 From: Martin Kaiser <martin@kaiser.cx> To: Shawn Guo <shawnguo@kernel.org>, Linus Walleij <linus.walleij@linaro.org>, Bartosz Golaszewski <brgl@bgdev.pl> Cc: Peng Fan <peng.fan@nxp.com>, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser <martin@kaiser.cx> Subject: [PATCH v3 1/3] gpio: vf610: allow disabling the vf610 driver Date: Sat, 20 Jan 2024 19:29:27 +0100 Message-Id: <20240120182929.1129183-2-martin@kaiser.cx> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240120182929.1129183-1-martin@kaiser.cx> References: <20240120182929.1129183-1-martin@kaiser.cx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788635171597054145 X-GMAIL-MSGID: 1788635198980593946 |
Series |
gpio: vf610: allow disabling the vf610 driver
|
|
Commit Message
Martin Kaiser
Jan. 20, 2024, 6:29 p.m. UTC
The vf610 gpio driver is enabled by default for all i.MX machines,
without any option to disable it in a board-specific config file.
Most i.MX chipsets have no hardware for this driver. Change the default
to enable GPIO_VF610 for SOC_VF610 and disable it otherwise.
Add a text description after the bool type, this makes the driver
selectable by make config etc.
Fixes: 30a35c07d9e9 ("gpio: vf610: drop the SOC_VF610 dependency for GPIO_VF610")
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
---
v3:
- split the changes into three patches
v2:
- enable the vf610 gpio driver in the defconfig files for arm_v7
(i.MX7ULP) and arm64 (i.MX8QM, DXL, ULP and i.MX93)
drivers/gpio/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Sat, Jan 20, 2024 at 07:29:27PM +0100, Martin Kaiser wrote: > The vf610 gpio driver is enabled by default for all i.MX machines, > without any option to disable it in a board-specific config file. > > Most i.MX chipsets have no hardware for this driver. Change the default > to enable GPIO_VF610 for SOC_VF610 and disable it otherwise. Hi Martin Please ensure it is compiled when COMPILE_TEST is set. We don't want to reduce build test coverage. Andrew
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 1301cec94f12..353af1a4d0ac 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -711,7 +711,8 @@ config GPIO_UNIPHIER Say yes here to support UniPhier GPIOs. config GPIO_VF610 - def_bool y + bool "VF610 GPIO support" + default y if SOC_VF610 depends on ARCH_MXC select GPIOLIB_IRQCHIP help