Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1725956rdb; Sat, 20 Jan 2024 10:30:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1ZbBUoxBXrYMxe1U7o8xAsmV/h3nnyl1QomMdECoHcP9FcLQI/1vwWGbJ1NHSzQdAz9kS X-Received: by 2002:a05:622a:81:b0:42a:3701:986f with SMTP id o1-20020a05622a008100b0042a3701986fmr315796qtw.128.1705775438378; Sat, 20 Jan 2024 10:30:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705775438; cv=pass; d=google.com; s=arc-20160816; b=H1lTjkcFddwj2Cu+SbBAHuUz6Iol/Zj7yQvtMA9opDkG6Ujf7rN35hggW7djH1d/ai buODivZmCtdd4S+TEh6R++mZ6sdN29KTyPV98YFY9RlAlEDXw0gS4TVlgCvBp4P2RaCl 3b8m/WuUt22VqwgWVP/b3kfzNHUQ2jbEsr91rLOaWb6wlYhGvqjDXM+AXDaqrqlZB1dJ XlOUvLmVWwJLbkkEFclepfN01i/0U/nvTX6gH0ozX29Km05O2vfUO33PJvU9/EgTi6wc 2wrfr3hsec36D84d4NQrUI3fwoqBkiFQ9RwYo5n93b701Q4Or6EermohW7xGf97vR8up I3tQ== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31872-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p4-20020a05622a00c400b00429b5b5e2ecsi2039320qtw.304.2024.01.20.10.30.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 10:30:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31872-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31872-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 248231C20D3F for ; Sat, 20 Jan 2024 18:30:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5701114F76; Sat, 20 Jan 2024 18:30:08 +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 ) id 1rRG6L-000BIC-1D; Sat, 20 Jan 2024 19:29:53 +0100 From: Martin Kaiser To: Shawn Guo , Linus Walleij , Bartosz Golaszewski Cc: Peng Fan , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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(-) 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 -- 2.39.2