Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2374740lqp; Sun, 24 Mar 2024 16:30:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVnYfpzoromuzqW1UoNRl4ifVV/y3XhPCjJJCkUnMiLaUtnZCqbpytIQ05qNMfaO8x3otQx9u9LPQgnwMUZNzwss8wpkC0BLaxB3MnD8Q== X-Google-Smtp-Source: AGHT+IEFr6Kn244FZi4o05EEwV7GDH1RK3lN4iHHaKO4OeibkMNN6gwmFwkBuMBmAiUQIC2B+KTp X-Received: by 2002:a17:906:d0c8:b0:a46:a662:e567 with SMTP id bq8-20020a170906d0c800b00a46a662e567mr3491315ejb.3.1711323045710; Sun, 24 Mar 2024 16:30:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711323045; cv=pass; d=google.com; s=arc-20160816; b=NgYRD2ArNVCaDk4uGBnb2bE2sbmdCPVsIEkA6G11GB/dVUqFbCRubCltbUQ9kTCWoE pDqhy8BgGzKvX3LJfBYkFnDVTY4a/u7O1lETFIzVFhPS6LzT08SVr8+coxkd3wXQ9jgi jR8/F3ikvUDvhrWctJt+cdRIswqIGlwcgolUgv38lbB60C4dPleFH6/V+A2Ot+HXb01X r0TKZHLpGUbybUMJCwr5FCoOk9veLFHMoBMqWeaVx5hGBYFiZ05NuV2Yv3q1b7XhPgiQ KvG/oGNAYsOMrHdpBl/N/LdfBRpAyxeMfxTARRBVikvhw4VYpEGMxRUcyyuTt4+7bNfk A01Q== 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:dkim-signature; bh=D47GDfhjE9fM7gKsIjVwREKyYL0fjurhPjh6DmY1ee4=; fh=IfPqDvXiDBB011jO+VbCmEgfsZa51sOV128tWp8sBuo=; b=ClEUR6mavNX2G/g3neMXxkM0eboy0QbXJrbTLH1H7+pQNXRZJYtNIOAFvtruJEclD+ dUrRuqWk5mRj+2kJfhDjHJ8sr/BMjtqw1RnGWLT/lgkuLrcXUIoSPYqgwM34X8hW6sRN W933W6Y8aHfNwKI0PmzdxKnJzzvvnIIhbJ8iutHjbilZsbl9AeU1El3riracJm9EUWkw A9ncLy9sMps4x3A7UVHHNN4AQVQqiCxHFafI6+YXg1B+1Wf9u05hzckOe7f1Gi9oVv6T mTajuTsBBnyVckL1yBfDO4yYch5rxrgvXo3DGsNFscUpvllVMfJfIQf9+5aB0ZKkG4iB eXWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kdVtbNoo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113147-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c14-20020a170906528e00b00a4668973ad2si2012610ejm.937.2024.03.24.16.30.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 16:30:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kdVtbNoo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113147-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113147-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6D74C1F218C3 for ; Sun, 24 Mar 2024 23:30:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E8B7129E92; Sun, 24 Mar 2024 22:39:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kdVtbNoo" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5F95016F910; Sun, 24 Mar 2024 22:39:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319952; cv=none; b=NTZNMRsVXSxNHwuAkVsYASPaDSCvZrCrW3tD74N/lfWFbjfMVxTKESj6T7jgr49OBbm0kijke1XjkTg9GooizZcBIJC89t408qRwg5Od2rtuuDzB+LRYdx9UJMMwchXXHn1oLtBsZgs+IV8hKJZwC9zG5SV9Zji7ekaGh34X4vQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319952; c=relaxed/simple; bh=Xr8kLLrVwgeoPlmaIABADrI/R7hOw5vbzs+NXDMVYOw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ehhMvj1VHFaTqxD8QStPhUFg5xBIh74CNdBviEQ2sDhg2qD1axWIe2t/Gztd6zWXt9Qd7ernQ/pveQ9h7MEG48vU10Nu5UeiNc8Jm4y9wjns1kyTGnkV2vYRqr1bvPUtom3yWgRXz1Fltub9ZLg+L9eWXcHLolXe9Icvr/DKCgM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kdVtbNoo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 983E7C433A6; Sun, 24 Mar 2024 22:39:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319952; bh=Xr8kLLrVwgeoPlmaIABADrI/R7hOw5vbzs+NXDMVYOw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kdVtbNooXZqDUSJQ/PcW4kEBfIcJrWhI3Mqf4QSYbB1mVh3wPuPJglV0Zd1oWMbqf ipGn7upTCCS/264CUhevNHa7DNQGv/zJetLIUgyjExyWidly8bh72LqEGAORi+l97s 6V6j0NCc1zQlXGxQbY+jb2DTXDJ4ziBK3U7GNY49eAZpXYvR3OuKs31pmmbS3Ro2Lq VRFdDkwhighAN33f9+l0GXJ8NmCdWgwcddGi1rlfMkBkPUgesCE4tv5AcLxDq7NhkQ HN6pa/cHawxbFP2Zgc8ZnqJ2hPPy1yJ+S+dIs6/nbWvyPYpQDU5NSAqHrWKFP4PZFx x9TYyot9tWzgQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Claudiu Beznea , Geert Uytterhoeven , Sasha Levin Subject: [PATCH 6.8 258/715] arm64: dts: renesas: rzg3s-smarc-som: Guard Ethernet IRQ GPIO hogs Date: Sun, 24 Mar 2024 18:27:17 -0400 Message-ID: <20240324223455.1342824-259-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Claudiu Beznea [ Upstream commit 150d81f7a260f36c118cbec253fdd493c671dc29 ] Ethernet IRQ GPIOs are marked as GPIO hogs. Thus, these GPIOs are requested at probe time without considering if there are other peripherals that need them. The Ethernet IRQ GPIOs are shared with SDHI2. Selection between Ethernet and SDHI2 is done through a hardware switch. To avoid scenarios where one wants to boot with SDHI2 support and some SDHI pins are not propertly configured because of the GPIO hogs, guard the Ethernet IRQ GPIO hogs with the proper build flag. Fixes: 932ff0c802c6 ("arm64: dts: renesas: rzg3s-smarc-som: Enable the Ethernet interfaces") Signed-off-by: Claudiu Beznea Reviewed-by: Geert Uytterhoeven Link: https://lore.kernel.org/r/20240208124300.2740313-13-claudiu.beznea.uj@bp.renesas.com Signed-off-by: Geert Uytterhoeven Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi b/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi index f062d4ad78b79..d33ab4c887878 100644 --- a/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi +++ b/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi @@ -193,12 +193,14 @@ &sdhi2 { #endif &pinctrl { +#if SW_CONFIG3 == SW_ON eth0-phy-irq-hog { gpio-hog; gpios = ; input; line-name = "eth0-phy-irq"; }; +#endif eth0_pins: eth0 { txc { @@ -234,12 +236,14 @@ mux { }; }; +#if SW_CONFIG3 == SW_ON eth1-phy-irq-hog { gpio-hog; gpios = ; input; line-name = "eth1-phy-irq"; }; +#endif eth1_pins: eth1 { txc { -- 2.43.0