From nobody Sun Jun 14 06:09:07 2026 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 8917733A6F9 for ; Sat, 2 May 2026 12:15:05 +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=1777724107; cv=none; b=l6g+gG/97aLP8tXDNWB2y1RxHd5hISqqm8ZPtIe7h0j5+0JgTNtIaMs7pz0MWTjid620z5n2v3ZjcqGYQcBD7Xa2Rtn+4BQf+LeT+RZj8Cl2p2YC77y/NhCnaRkK5xAejAn4uR1tSZQ7CvHeqDvyhdKopQJay9OISrU6Mr0mdv8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777724107; c=relaxed/simple; bh=ZIdNpfww4utRQB7KtEE76oH1nOzJK9JT/hA9OhK34cI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jlgMQhynISXRoO4DwpKQVlmiK/2+ksp6Jf5qK5y8YZNVuyfANUSdrC67olcyFtT4MlBTEe9dd2KjM+rFEP6G9XHPy3LhQ/8JuHNQwQyOoleO8UvRhtL4EP6/Q5iaObeaCwhUWLzB+/M9H6YLHfV4oYV3ffoWTM4vSguiSMlZxJc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (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=pass (p=none dis=none) header.from=kaiser.cx Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kaiser.cx Received: from ipservice-092-208-105-007.092.208.pools.vodafone-ip.de ([92.208.105.7] helo=nb282.user.codasip.com) by akranes.kaiser.cx with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wJ9FJ-00000000146-1dOB; Sat, 02 May 2026 14:14:57 +0200 From: Martin Kaiser To: Andrew Lunn , Gregory Clement Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 1/2] ARM: mvebu: drop unnecessary NULL check Date: Sat, 2 May 2026 14:14:26 +0200 Message-ID: <20260502121438.116288-2-martin@kaiser.cx> X-Mailer: git-send-email 2.43.7 In-Reply-To: <20260502121438.116288-1-martin@kaiser.cx> References: <20260502121438.116288-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: quoted-printable Content-Type: text/plain; charset="utf-8" Don't check the returned pointer from of_find_compatible_node. We pass this pointer to of_iomap, which handles np=3D=3DNULL correctly. Signed-off-by: Martin Kaiser --- arch/arm/mach-mvebu/coherency.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mach-mvebu/coherency.c b/arch/arm/mach-mvebu/coherenc= y.c index fa2c1e1aeb96..a8288a29c1f5 100644 --- a/arch/arm/mach-mvebu/coherency.c +++ b/arch/arm/mach-mvebu/coherency.c @@ -133,8 +133,6 @@ static void __init armada_370_coherency_init(struct dev= ice_node *np) =20 cpu_config_np =3D of_find_compatible_node(NULL, NULL, "marvell,armada-xp-cpu-config"); - if (!cpu_config_np) - goto exit; =20 cpu_config_base =3D of_iomap(cpu_config_np, 0); if (!cpu_config_base) { --=20 2.43.7 From nobody Sun Jun 14 06:09:07 2026 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 1BF0933D6CA for ; Sat, 2 May 2026 12:15: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=1777724107; cv=none; b=eOyC4OsZHwpZ9JdtHpySBxBza+KSiOtZL/X804kMDHwVLGoa7SjsnoA1S/w4NTKjhusZMtTZRxdaooMLpoRf44fL9HuSDk8O+D5noNWn/Jt6Figv7ah18ZwR0/sR8R4aSz/NDHaBc/WKidGHo6LQRVh2zMyQ5Fqfalonjgk5VFo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777724107; c=relaxed/simple; bh=3fy+hpCWk507cWPveNsh1AOncNzjfe6YnYsbwbjm9uU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cJnxviLbGIJkLOcqXdczDDP2+Ot7hnxQoyOz20bGwAgle2t4poSOsKusuBKposWc7H04WJvsL+roV/7Zj8li8tnydWW7v+UFphmb3iCMPgyHYASc3Q9yzMjUm5S1I4ufDiGDNuG7EHq1DBD5nETq+5aGUCMYfzgAVEdInwUfHBo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (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=pass (p=none dis=none) header.from=kaiser.cx Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kaiser.cx Received: from ipservice-092-208-105-007.092.208.pools.vodafone-ip.de ([92.208.105.7] helo=nb282.user.codasip.com) by akranes.kaiser.cx with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wJ9FK-00000000146-3SKu; Sat, 02 May 2026 14:14:58 +0200 From: Martin Kaiser To: Andrew Lunn , Gregory Clement Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 2/2] ARM: mvebu: simplify of_node_put calls Date: Sat, 2 May 2026 14:14:27 +0200 Message-ID: <20260502121438.116288-3-martin@kaiser.cx> X-Mailer: git-send-email 2.43.7 In-Reply-To: <20260502121438.116288-1-martin@kaiser.cx> References: <20260502121438.116288-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: quoted-printable Content-Type: text/plain; charset="utf-8" In armada_370_coherency_init, cpu_config_np is no longer needed after of_iomap. We can call of_node_put earlier and summarize the two calls. Signed-off-by: Martin Kaiser --- arch/arm/mach-mvebu/coherency.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-mvebu/coherency.c b/arch/arm/mach-mvebu/coherenc= y.c index a8288a29c1f5..f27b4ec13df2 100644 --- a/arch/arm/mach-mvebu/coherency.c +++ b/arch/arm/mach-mvebu/coherency.c @@ -135,12 +135,9 @@ static void __init armada_370_coherency_init(struct de= vice_node *np) "marvell,armada-xp-cpu-config"); =20 cpu_config_base =3D of_iomap(cpu_config_np, 0); - if (!cpu_config_base) { - of_node_put(cpu_config_np); - goto exit; - } - of_node_put(cpu_config_np); + if (!cpu_config_base) + goto exit; =20 cpuhp_setup_state_nocalls(CPUHP_AP_ARM_MVEBU_COHERENCY, "arm/mvebu/coherency:starting", --=20 2.43.7