Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1294336lqh; Mon, 6 May 2024 03:25:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVa+0FVfdbZC+38o8vVPc1nPgj4r/128h26Gm6Wq9QiVQP/IkjJN4cIAjT5UyLptJ3AiDEOnlaFVh5DnkubnfYAWvogh3MW6/m7rA6R3w== X-Google-Smtp-Source: AGHT+IHY+BtcFEkjc6oBBkuT9MBrHmdgbeWYHvRywN+NqQo2dp9EwKg9+DAhzz2WvGPOSu/DXBzl X-Received: by 2002:ad4:5aad:0:b0:6a0:c765:80c3 with SMTP id u13-20020ad45aad000000b006a0c76580c3mr12595724qvg.31.1714991102119; Mon, 06 May 2024 03:25:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714991102; cv=pass; d=google.com; s=arc-20160816; b=lhKuhAgSJVAHfOQBKHkjlwlTlpg+E17t84v9oeQvAcIaGOVFc62avgglO90LBmXklo 4bpinQwrXAGOuuboavoBZxZ7MMo9H8/JAsdItaEjwRTzpfvjKHyr6Rnqr57dWaN+9QVP 2cM+eIlpx7yp0map/wbRt5QmhBqK2uJA0FogXhylxVzP1v25yw/sVRx+z/sWuwDYJRgP lG0xcIzdOLGwSnA3TLBjivjXeQ/xski+1Y03JhyHbHNKET+VERWiQ19UC8oQnEMEQXT7 8+1WJitorpJeEFfB6l3rqRlWOExRYJWIMHUH3umlv3ktuzTd/PwrN+6ZLUkFgM/OQJHE UkKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=DQm/agkAtB5qHs0WKvLGfyrGJ7CCayWji+zZYNYTpIk=; fh=81AVysleB9HcdgWhm4sGWdKrie69J6kxMthkNZN/PKI=; b=pkiLvsb8Uvb1HOvOU/QYcOv7rp6mLcdWqC0zXyEcWoJHvgW3ozzgJ/b3RDSAKYMMbc KyGRQ6dvNRLGmvr/4QyXNoMdTkx3WVjmQtFqlbp9Ln+0R1IAcQwoPpkfbF9IpBC/I3e9 /iJ+6kFDEi5jutsqKha+kR/uokl7vWZKRmLa35X8UZy0tmctMYMM5EN0RxW/N6EpZ2xv KHIgntde4XKUJMNxm+KMgsS7RiZDv0e/05XYJrreqQ3HlHAna7Fjj+9fP5WuLVAJQcSb axXeuqcP+dnY7F0ZoQvNxytiXjh8gijGSm+97FcLPrv0j2+RpO01CMuAskNWkjh8AWNS lzlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=XzGdWnUI; arc=pass (i=1 spf=pass spfdomain=geanix.com dkim=pass dkdomain=geanix.com dmarc=pass fromdomain=geanix.com); spf=pass (google.com: domain of linux-kernel+bounces-169666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169666-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z2-20020a056214040200b006a0b4610badsi8953017qvx.419.2024.05.06.03.25.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 03:25:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169666-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; dkim=pass header.i=@geanix.com header.s=default2211 header.b=XzGdWnUI; arc=pass (i=1 spf=pass spfdomain=geanix.com dkim=pass dkdomain=geanix.com dmarc=pass fromdomain=geanix.com); spf=pass (google.com: domain of linux-kernel+bounces-169666-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169666-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com 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 B88841C212AD for ; Mon, 6 May 2024 10:25:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82DA214386C; Mon, 6 May 2024 10:24:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="XzGdWnUI" Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) (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 4CABE1422C5; Mon, 6 May 2024 10:24:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.40.30.78 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714991069; cv=none; b=pWqKKHu7sc5OdJ8fkL84cZ4QSbQCdudP268Z+uKjiU8grPcKLVRPiT75dfGABn/oSyftJP24iBO44Os2Iklh3A2hPDjr6+1Oa15pGH2VPpEcZr+Gs6VPnXLGgh0yXNE+5p7I9F43wboC5T279CVRiFhhl1sKiDwJVZxAe95aNUA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714991069; c=relaxed/simple; bh=+iGbmdojo/ysSAYj9+vv3uoYFfIvQYKAAZNiAJ+Gy3M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Wz7EiVvTmk7wSb8F4pdl4ctlSykHHYaG8uq2StfEuZQnd5zeuM3exb/3x97vqhRmTBIWfo35eRR1VFUOXE5a0ZdtU/Inou6GcuMRoF3hd8XgHl3yGD9nP863ZbylvkLOMhG2Iu8qmbIp0sQFb4KS5ll5Cy9WHgTbqca1VWZMupk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=XzGdWnUI; arc=none smtp.client-ip=188.40.30.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID; bh=DQm/agkAtB5qHs0WKvLGfyrGJ7CCayWji+zZYNYTpIk=; b=XzGdWnUIIZZD5TnSkfo3PNVvtI e7FzcSNPzKOjyJA38ahUt3KPEAlgNhZKinpIshQ0oJYhtaGhf1aQyr37JoLyN8jTPX9a3JDhmWU5P M0VMAj8b/WalJGVJKUorOe+kxsn0hloPrTfnFGUlsWHPtAjAN+cR+TT36JRpL1TaDvaMH0fDRpC2t Oid9XJ/FOe1AhQgNZfzbbrcs8tomOxHGDtTnxGYdiHGug5jyyTnkzW17MOrtOoEufo4tps01cNby2 IxLqx8M8+nY6CVktwekHUXxVfG5H9FrM9+Nv988jiiCgeFrxTOcrYuKXwMhnclzHTyW0FXl/vNzd9 XRHuFztg==; Received: from sslproxy03.your-server.de ([88.198.220.132]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s3vVu-0007YK-Og; Mon, 06 May 2024 12:24:06 +0200 Received: from [87.49.147.101] (helo=localhost) by sslproxy03.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s3vVt-000OrS-1l; Mon, 06 May 2024 12:24:05 +0200 From: Esben Haabendal Date: Mon, 06 May 2024 12:23:55 +0200 Subject: [PATCH v2 3/3] pinctrl: freescale: enable use with COMPILE_TEST 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240506-imx-pinctrl-optional-v2-3-bdff75085156@geanix.com> References: <20240506-imx-pinctrl-optional-v2-0-bdff75085156@geanix.com> In-Reply-To: <20240506-imx-pinctrl-optional-v2-0-bdff75085156@geanix.com> To: Russell King , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Dong Aisheng , Jacky Bai , Linus Walleij Cc: Arnd Bergmann , Rasmus Villemoes , linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Esben Haabendal X-Mailer: b4 0.13.0 X-Authenticated-Sender: esben@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.10/27267/Mon May 6 10:24:34 2024) Allow compile-testing of i.MX pinctrl drivers using CONFIG_COMPILE_TEST. Signed-off-by: Esben Haabendal --- drivers/pinctrl/freescale/Kconfig | 73 +++++++++++++++++++++++++-------------- 1 file changed, 47 insertions(+), 26 deletions(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index 2b19c40978c2..34a4255dfd4c 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -19,7 +19,8 @@ config PINCTRL_IMX1_CORE config PINCTRL_IMX1 bool "IMX1 pinctrl driver" - depends on SOC_IMX1 + depends on OF + depends on SOC_IMX1 || COMPILE_TEST default SOC_IMX1 select PINCTRL_IMX1_CORE help @@ -27,7 +28,8 @@ config PINCTRL_IMX1 config PINCTRL_IMX27 bool "IMX27 pinctrl driver" - depends on SOC_IMX27 + depends on OF + depends on SOC_IMX27 || COMPILE_TEST default SOC_IMX27 select PINCTRL_IMX1_CORE help @@ -37,7 +39,7 @@ config PINCTRL_IMX27 config PINCTRL_IMX25 bool "IMX25 pinctrl driver" depends on OF - depends on SOC_IMX25 + depends on SOC_IMX25 || COMPILE_TEST default SOC_IMX25 select PINCTRL_IMX help @@ -45,7 +47,8 @@ config PINCTRL_IMX25 config PINCTRL_IMX35 bool "IMX35 pinctrl driver" - depends on SOC_IMX35 + depends on OF + depends on SOC_IMX35 || COMPILE_TEST default SOC_IMX35 select PINCTRL_IMX help @@ -53,7 +56,8 @@ config PINCTRL_IMX35 config PINCTRL_IMX50 bool "IMX50 pinctrl driver" - depends on SOC_IMX50 + depends on OF + depends on SOC_IMX50 || COMPILE_TEST default SOC_IMX50 select PINCTRL_IMX help @@ -61,7 +65,8 @@ config PINCTRL_IMX50 config PINCTRL_IMX51 bool "IMX51 pinctrl driver" - depends on SOC_IMX51 + depends on OF + depends on SOC_IMX51 || COMPILE_TEST default SOC_IMX51 select PINCTRL_IMX help @@ -69,7 +74,8 @@ config PINCTRL_IMX51 config PINCTRL_IMX53 bool "IMX53 pinctrl driver" - depends on SOC_IMX53 + depends on OF + depends on SOC_IMX53 || COMPILE_TEST default SOC_IMX53 select PINCTRL_IMX help @@ -77,7 +83,8 @@ config PINCTRL_IMX53 config PINCTRL_IMX6Q bool "IMX6Q/DL pinctrl driver" - depends on SOC_IMX6Q + depends on OF + depends on SOC_IMX6Q || COMPILE_TEST default SOC_IMX6Q select PINCTRL_IMX help @@ -85,7 +92,8 @@ config PINCTRL_IMX6Q config PINCTRL_IMX6SL bool "IMX6SL pinctrl driver" - depends on SOC_IMX6SL + depends on OF + depends on SOC_IMX6SL || COMPILE_TEST default SOC_IMX6SL select PINCTRL_IMX help @@ -93,7 +101,8 @@ config PINCTRL_IMX6SL config PINCTRL_IMX6SLL bool "IMX6SLL pinctrl driver" - depends on SOC_IMX6SLL + depends on OF + depends on SOC_IMX6SLL || COMPILE_TEST default SOC_IMX6SLL select PINCTRL_IMX help @@ -101,7 +110,8 @@ config PINCTRL_IMX6SLL config PINCTRL_IMX6SX bool "IMX6SX pinctrl driver" - depends on SOC_IMX6SX + depends on OF + depends on SOC_IMX6SX || COMPILE_TEST default SOC_IMX6SX select PINCTRL_IMX help @@ -109,7 +119,8 @@ config PINCTRL_IMX6SX config PINCTRL_IMX6UL bool "IMX6UL pinctrl driver" - depends on SOC_IMX6UL + depends on OF + depends on SOC_IMX6UL || COMPILE_TEST default SOC_IMX6UL select PINCTRL_IMX help @@ -117,7 +128,8 @@ config PINCTRL_IMX6UL config PINCTRL_IMX7D bool "IMX7D pinctrl driver" - depends on SOC_IMX7D + depends on OF + depends on SOC_IMX7D || COMPILE_TEST default SOC_IMX7D select PINCTRL_IMX help @@ -125,7 +137,8 @@ config PINCTRL_IMX7D config PINCTRL_IMX7ULP bool "IMX7ULP pinctrl driver" - depends on SOC_IMX7ULP + depends on OF + depends on SOC_IMX7ULP || COMPILE_TEST default SOC_IMX7ULP select PINCTRL_IMX help @@ -134,7 +147,7 @@ config PINCTRL_IMX7ULP config PINCTRL_IMX8MM tristate "IMX8MM pinctrl driver" depends on OF - depends on SOC_IMX8M + depends on SOC_IMX8M || COMPILE_TEST select PINCTRL_IMX help Say Y here to enable the imx8mm pinctrl driver @@ -142,7 +155,7 @@ config PINCTRL_IMX8MM config PINCTRL_IMX8MN tristate "IMX8MN pinctrl driver" depends on OF - depends on SOC_IMX8M + depends on SOC_IMX8M || COMPILE_TEST select PINCTRL_IMX help Say Y here to enable the imx8mn pinctrl driver @@ -150,7 +163,7 @@ config PINCTRL_IMX8MN config PINCTRL_IMX8MP tristate "IMX8MP pinctrl driver" depends on OF - depends on SOC_IMX8M + depends on SOC_IMX8M || COMPILE_TEST select PINCTRL_IMX help Say Y here to enable the imx8mp pinctrl driver @@ -158,42 +171,47 @@ config PINCTRL_IMX8MP config PINCTRL_IMX8MQ tristate "IMX8MQ pinctrl driver" depends on OF - depends on SOC_IMX8M + depends on SOC_IMX8M || COMPILE_TEST select PINCTRL_IMX help Say Y here to enable the imx8mq pinctrl driver config PINCTRL_IMX8QM tristate "IMX8QM pinctrl driver" - depends on IMX_SCU && ARCH_MXC && ARM64 + depends on OF + depends on (IMX_SCU && ARCH_MXC && ARM64) || COMPILE_TEST select PINCTRL_IMX_SCU help Say Y here to enable the imx8qm pinctrl driver config PINCTRL_IMX8QXP tristate "IMX8QXP pinctrl driver" - depends on IMX_SCU && ARCH_MXC && ARM64 + depends on OF + depends on (IMX_SCU && ARCH_MXC && ARM64) || COMPILE_TEST select PINCTRL_IMX_SCU help Say Y here to enable the imx8qxp pinctrl driver config PINCTRL_IMX8DXL tristate "IMX8DXL pinctrl driver" - depends on IMX_SCU && ARCH_MXC && ARM64 + depends on OF + depends on (IMX_SCU && ARCH_MXC && ARM64) || COMPILE_TEST select PINCTRL_IMX_SCU help Say Y here to enable the imx8dxl pinctrl driver config PINCTRL_IMX8ULP tristate "IMX8ULP pinctrl driver" - depends on ARCH_MXC + depends on OF + depends on ARCH_MXC || COMPILE_TEST select PINCTRL_IMX help Say Y here to enable the imx8ulp pinctrl driver config PINCTRL_IMXRT1050 bool "IMXRT1050 pinctrl driver" - depends on SOC_IMXRT + depends on OF + depends on SOC_IMXRT || COMPILE_TEST default SOC_IMXRT select PINCTRL_IMX help @@ -201,14 +219,16 @@ config PINCTRL_IMXRT1050 config PINCTRL_IMX93 tristate "IMX93 pinctrl driver" - depends on ARCH_MXC + depends on OF + depends on ARCH_MXC || COMPILE_TEST select PINCTRL_IMX help Say Y here to enable the imx93 pinctrl driver config PINCTRL_VF610 bool "Freescale Vybrid VF610 pinctrl driver" - depends on SOC_VF610 + depends on OF + depends on SOC_VF610 || COMPILE_TEST default SOC_VF610 select PINCTRL_IMX help @@ -229,7 +249,8 @@ config PINCTRL_IMX28 config PINCTRL_IMXRT1170 bool "IMXRT1170 pinctrl driver" - depends on SOC_IMXRT + depends on OF + depends on SOC_IMXRT || COMPILE_TEST select PINCTRL_IMX help Say Y here to enable the imxrt1170 pinctrl driver -- 2.45.0