Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp432580rdb; Mon, 15 Jan 2024 01:53:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtuVcat9XJFbK3R3u2+sEvzlSnoQUDSK/5m/ThiUkcfyUAyBNbebfKUz4VBqLtuNiSDw7c X-Received: by 2002:a05:6e02:216c:b0:35d:a38a:fc83 with SMTP id s12-20020a056e02216c00b0035da38afc83mr5501956ilv.67.1705312384340; Mon, 15 Jan 2024 01:53:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705312384; cv=none; d=google.com; s=arc-20160816; b=V9Yg5ZeJrX4C4hfKv5Ajww6Nyj5jMIJr1Us6QkyghWmy24YqhonV3MlO5TtxVTePjF 3fMA/xg2dVIXas8mcE5EcSSLz7/pOt6sSo7VvWKA6bFZWFc8Y/+OgzdMdmMX0RqCpaW6 FcChb4TsSKsfDc9Kuemr+B1Za/7l2i6iFnxEPFTWGqBHY4UfW4CqsTIBuwuMzPFC3YkJ +FUYvJ/whxC/rzUJ6jLH29DT8LmZtMCbM6Xb8dHqVICX5AWHglAU3hgvbqjx3RlZLLj0 QjERqkqzXZi7V0DojbUpA3l0Bbex98LFVUPOs1YyJv68TaXpxAr66l7zcncjoNy1H1zI Bvtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=/mJ2Zqx9KgLGwqz78jrspF516FKu/8c4ZXbocwGDPqE=; fh=372EGvtYloEbq4EjvY3Hy4p3Wrc9xEygnNKAMPEo67s=; b=QuDdlIePHKtGtSyH8S3gkj12vw3h7Uv34X40G1P7jfos1Bv6L/naIBrDdXTc0mYWyT YslVvJW3oMlBbWJHIiPFR36azXXFJLYRQi12D28nhmPEXbQZn42VPg1wi2f1TBf0ZHT2 EJBAH/HIy5+3cEyFLnagUmuU76GKt6vVMY5m149yBtBTfvyOJr65Zw10hy8C6iujz417 CIuBU4phytzL9pCxZM4s9xxGiY3veOhHNdwCrZjwwn2K9N9Ev5gdkp7rLS8Ery/ny1c+ JJnR6Xu5/PUukPbQT1MR2RCHgrS+QANRBhcmBROaXsyvYfFSbGeTV/OSLLcobAO01I5R vzQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-25825-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25825-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d3-20020a656203000000b005cdfde5e3f3si8391713pgv.250.2024.01.15.01.53.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 01:53:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25825-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-25825-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25825-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 09F88281A02 for ; Mon, 15 Jan 2024 09:53:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E98A3F51B; Mon, 15 Jan 2024 09:52:47 +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 45BFFF4E7; Mon, 15 Jan 2024 09:52:43 +0000 (UTC) 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 martin by akranes.kaiser.cx with local (Exim 4.96) (envelope-from ) id 1rPJdb-000XGc-1V; Mon, 15 Jan 2024 10:52:11 +0100 Date: Mon, 15 Jan 2024 10:52:11 +0100 From: Martin Kaiser To: Peng Fan Cc: Linus Walleij , Bartosz Golaszewski , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] gpio: vf610: allow disabling the vf610 driver Message-ID: References: <20240111150429.681567-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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: "Martin Kaiser,,," Hi Peng, Thus wrote Peng Fan (peng.fan@nxp.com): > Thanks Linus for Ccing me. I did already Cc you on the initial patch. My hope was to get feedback about unwanted side effects. > > Subject: [PATCH] gpio: vf610: allow disabling the vf610 driver > > 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. i.MX chips other than SOC_VF610 can now enable the driver > > from their board config. > This will break i.MX8QM,DXL,ULP/i.MX93 boot. You could add text description > to make it selectable, but please not drop def y. Or you need update defconfig. Thanks for bringing this up. It seems to me that other gpio drivers are disabled by default and enabled where needed. I suggest adding CONFIG_GPIO_VF610=y to arch/arm64/configs/defconfig and probably also to arch/arm/configs/imx_v6_v7_defconfig. I'll send a v2 with these changes unless you (or someone else) disagree. Thanks, Martin