From nobody Thu Apr 9 15:36:05 2026 Received: from s106b.cyber-folks.pl (s106b.cyber-folks.pl [195.78.66.88]) (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 5BC06287253; Sun, 8 Mar 2026 05:17:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.78.66.88 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772947072; cv=none; b=Ajm+6xGLdS/37mZkIg0Db/iNSxVpglVAXyO1VeE4X3xXIdIPRhtN8lZv88WjJKDS0IXPY4VVoJeD5rz8wIJpdTvjjQCYA0e4047DhlgyiDZT1rZXKoxzE1ywSumah5bV1SiDNOdrKF7/dW9QRiB3cmUKjt6t/FMzCfqtrbfcLzs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772947072; c=relaxed/simple; bh=wRlY9EhqdoRo+41ZkIEaclvfQ9HpOHyVOUVlbpFpXv4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qNcaYSEutf0NiiuY1hgqblK+wrb/Y+seyENHapTs3zUwAluqEgXL/whwsy2ANhCe55ya7FLvqyO7bnKU2pSkhuT1mJ/R6SpxQn+YNbJciidGzJ0QCRCpiAECUuTOkWBZfueN1lC0jTOa5RgAbm8Z7cKA+y2Rhz14Hplcf7+gFKA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mmpsystems.pl; spf=pass smtp.mailfrom=mmpsystems.pl; dkim=pass (2048-bit key) header.d=mmpsystems.pl header.i=@mmpsystems.pl header.b=Sypk/RGm; arc=none smtp.client-ip=195.78.66.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mmpsystems.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mmpsystems.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mmpsystems.pl header.i=@mmpsystems.pl header.b="Sypk/RGm" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mmpsystems.pl; s=x; 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:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HyQYqF8dm9dm7F4KAv5Bd3+xVsMbty6DU/nWv1RHZ2Y=; b=Sypk/RGmy/2OwnJ2n/6Z+dG65n y6v+fRnPmZFOzE3mRDOcVFGPjlAUQCK+CXZoLHlzUG8YaJKuV5MKMHuVWsf5+d0lG/mJti0J3t7UB kyO0vOXf9CwdSjEfpcYSI7jkZExSV4Hb+4gHYYHISvM+KoTzMdzUpx1RqIgsUpaUVf2wUvvskcgxu YQxdroVSytfyVXLcJmPj8bHNOVuXPmtevtBU3sLfJECcUNQdTPFCcUhrasYfaV5Uy/sMl1LPTzHrB rrmhYPLjjUpG4yGmj8npSvLTVCjkaVl7/E4iFl9FOYJF7APY3izQnfaIR2oFKaMyd9IBKNVc7mnQp 7fGz6oAg==; Received: from user-5-173-16-20.play-internet.pl ([5.173.16.20] helo=localhost) by s106.cyber-folks.pl with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vz6WS-00000007XHz-3Z9X; Sun, 08 Mar 2026 06:17:48 +0100 From: Michal Piekos Date: Sun, 08 Mar 2026 06:16:52 +0100 Subject: [PATCH 2/2] arm64: dts: allwinner: orangepi-zero3: fix axp313 interrupt parrent 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: quoted-printable Message-Id: <20260308-rc2-boot-hang-v1-2-d792d1a78dfd@mmpsystems.pl> References: <20260308-rc2-boot-hang-v1-0-d792d1a78dfd@mmpsystems.pl> In-Reply-To: <20260308-rc2-boot-hang-v1-0-d792d1a78dfd@mmpsystems.pl> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andre Przywara Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Michal Piekos X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772947022; l=1582; i=michal.piekos@mmpsystems.pl; s=20260301; h=from:subject:message-id; bh=wRlY9EhqdoRo+41ZkIEaclvfQ9HpOHyVOUVlbpFpXv4=; b=pbuhMCrHOMEGAFSJbb1V7QGKXHtzhaT91KrYMOK1Yfr+uWNG9ydw6rLmkbfTUUUSU5gkE91BA MvPVAonUMA3Al7zj34PPrctkWCcldNR42mfies4N8cZmEt011I+XI2d X-Developer-Key: i=michal.piekos@mmpsystems.pl; a=ed25519; pk=Aixyx03If7ZDamiKKN0lsa+0mtA+WjIuIf2ZQVYNBqg= X-Authenticated-Id: michal.piekos@mmpsystems.pl The AXP313 PMIC interrupt on Orange Pi Zero 3 is connected to PL bank GPIO handled by the R_PIO controller. However current dts routes the interrupts to PIO controller. This causes the kernel to select wrong pinctrl instance when configuring the interrupt which leads to invalid register access and a kernel hang during boot. The problem existed previously but became visible after the commit 01e10d0272b9 ("pinctrl: sunxi: Implement gpiochip::get_direction()"), which causes gpiolib to call the gpiochip::get_direction() callback during interrupt setup. Route the interrupt thrpugh R_PIO so the PL bank GPIO is handled by correct controller. Fixes: f1b3ddb3ecc2 ("arm64: dts: allwinner: h616: Add OrangePi Zero 3 boar= d support") Signed-off-by: Michal Piekos Tested-by: Michal Piekos --- arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts b= /arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts index c51d4d9120de..c46ae00aed5c 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts @@ -48,7 +48,7 @@ axp313: pmic@36 { reg =3D <0x36>; #interrupt-cells =3D <1>; interrupt-controller; - interrupt-parent =3D <&pio>; + interrupt-parent =3D <&r_pio>; interrupts =3D <2 9 IRQ_TYPE_LEVEL_LOW>; /* PC9 */ =20 vin1-supply =3D <®_vcc5v>; --=20 2.43.0