From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7E462248B3 for ; Sun, 8 Mar 2026 08:23:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772958186; cv=none; b=BxDRWd4LPxX/4MfX4xUi1ccUMu+yeAPnKsNYAaRSlpsvwua0zcHCVjTZb7BgDPiyN7AoRRPFaawBG3KyOjV4XAOm2FjL9ZhDO7bogJRb+rMLTYAZm1mKvXQuMmGH4X6fyzVLg7pzzwCP4729rolYdIKVPuN3WpdByEuKJTYQzIs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772958186; c=relaxed/simple; bh=hvDoSy3zhLMt2PSWtXgqb4w044bqYBFn3QDnwo7J0wA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=leH8jwWOlauBF2tDm5Lm4aTE8YRezv0gp5NpgHbQQ45SrOKOQOWtFgvAohwOJLidjsUKePfCqsFKyoxWPaSi5XPzyTxxiswvc8pVwKjKDk8AtFIf46FtLNvvLORbR/FLcKONCQ1Y/xTAyUVLU3xtAIJiz2KtJnjKtdfbW2y8sWM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fTPnETMF; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fTPnETMF" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-439b7c2788dso5053058f8f.1 for ; Sun, 08 Mar 2026 00:23:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772958183; x=1773562983; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=z8aMocQM9u6X2gsio5xSbmOAH1sSfPIdUgMQJD6cnQY=; b=fTPnETMFkmUCC1ekvcRV0UJMjYQmXW10UelAsIXXBrrHiPGMUAgA4ghi04JuDnEBGc T5TOuSEdoW4cHjTs52JlMEXhsNVpyOPcSga3A3vEY3QyVqJ5kWbikUVB8F75MLkiA5L1 9rX+/2GDmgj3Ya8UStuHCw7TcL45T4/DzIRIW2akUtHwjR43eyeAT+6s9uH1vCOaBO0Y 2e+XrYcqRzl6i51pZJ+yOwJ8sv3LrJoy/oYLbzFjJRSZvzKpD9Y1Jacpj1KyVbfRTetT Z2k/bqc6cL2J0tSHB+SFDvW/M6twPaVYkAA1D14B/b/1AJLXGeUtrO8tET6U4mKEbxET FLxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772958183; x=1773562983; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=z8aMocQM9u6X2gsio5xSbmOAH1sSfPIdUgMQJD6cnQY=; b=CwgJga2XfaXx/zHjwuSBWLVBxD/7zlqyC2tjF9JDb020w8bvSnTOdKv6hepWRD3CIX mfAEmrR3D7frwW03v/cGpLRO0Y5cIyRrrD/5MBVyYA5QRue6RFWD7UiUI7lIDdrWkE30 n4Uqt6+9uj6oBMXvuMB7Gj5VYXTytFfdHxZMQfrgZjZoAEQ0Bm1a0if9wmvPP0fWZMGO G28JHqbyq8pnGUXR/Tek6BmOWlYSRvXrECqiTQtYkwenKrKxjCykIBnCKQCpYqG56uxw XIg3dupqBE1z8cuSr5pakclEsGiceOhsRPDLZWOvT42P3Q6v8bhaH+XzoSegaRo5b8WU YFDQ== X-Forwarded-Encrypted: i=1; AJvYcCXW8xm9GiIto3+zqWUTnbhiTupW3MblH6cBmALdm870Ncddt4xLIfsXAVd82aK8lm7KXedwYPWTlGBiOd8=@vger.kernel.org X-Gm-Message-State: AOJu0YwkIRhPwf9w4p6fEqtUycdsYJ3MllkSm+rY0459YNhdROR7DemD 1t0xky6eTK3cNJo8igFLN1ITOTeMsloKM4SEojG2HI4bVdf2C5ur5lhB0h/7vw== X-Gm-Gg: ATEYQzyDbnaiXTSPyBIUnFtQ0lFiMmHVcKL1xu9KKb9Z9YRIepDGiQQ+JlspGxabIfx ApLmt2iKex6rDk367VA3kMEUY5SP7eGthwAlRQYxXfDsFeQJviJKgOf1clLJ7oRTFCWvqxJIftu TVRiBtCDUMaJWTGA+nCv6EuHK4EO1kAtvnWr5XL1f2+F93Aq2f53pSgQLOmQelgriTX+tG3w2Ff wJgrS/XU5w+4W03dT5JH6/2YYNhXby/ebfo6eoTnry9LleJIGMZdYtHxGtupeOqzxRSj/fhZ4gS fGFaxaa80PARSNjF4py4tj9YYaaQ4fla5i8bbiNMpP2QSaygZ1VO8RwILpgSZCHOMdtdSbwVSvK 0ix3D6C0VsJbeBjunbCUCWxhfGCwErPQ7IoEhkHy/MMY+mRWVelUAoanoAigzNX8UJ/Wp1rT2gU Hda1KVR7NooiA9ejot+M2olXu8IPyCw1rEFYonkl5Lv8Nw+ErsmBZJuRuzjgG4Vhm7tqOJcZiUU aqtJA== X-Received: by 2002:a05:6000:609:b0:439:cb10:dfcd with SMTP id ffacd0b85a97d-439da67982fmr12882158f8f.39.1772958182927; Sun, 08 Mar 2026 00:23:02 -0800 (PST) Received: from jernej-laptop.localnet (86-58-12-163.dynamic.telemach.net. [86.58.12.163]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-439dae2bdf8sm16891038f8f.25.2026.03.08.00.23.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Mar 2026 00:23:02 -0800 (PST) From: Jernej =?UTF-8?B?xaBrcmFiZWM=?= To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Samuel Holland , Andre Przywara , Michal Piekos Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Michal Piekos Subject: Re: [PATCH 0/2] arm64: dts: allwinner: fix Orange Pi Zero 3 PMIC interrupt routing Date: Sun, 08 Mar 2026 09:23:01 +0100 Message-ID: <3404622.44csPzL39Z@jernej-laptop> In-Reply-To: <20260308-rc2-boot-hang-v1-0-d792d1a78dfd@mmpsystems.pl> References: <20260308-rc2-boot-hang-v1-0-d792d1a78dfd@mmpsystems.pl> 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" Hi Michal, Dne nedelja, 8. marec 2026 ob 06:16:50 Srednjeevropski standardni =C4=8Das = je Michal Piekos napisal(a): > This fixes a kernel hang during boot on the Orange Pi Zero 3 caused by > incorrect interrupt routing for the AXP313A PMIC. >=20 > The PMIC interrupt on 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. Where did you get that info? Publicly available schematic clearly shows PMIC interrupt pin being connected to PC9. Additionally, R_PIO controller on H616 is very basic and has only pins PL0 and PL1, which are used for PMIC communication already. Neither of those pins is interrupt capable. >=20 > 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. I think proposed solution just bypasses the problem, not actually fixes it. Can you share kernel crash report? Sidenote: Tested-by: tag doesn't have any value if you're also the author of the patch. It's already implied that you tested your solution/improvemen= ts. Best regards, Jernej >=20 > Patch 1 declares R_PIO node as interrupt controller so it can be used as > interrupt parrent. >=20 > Patch 2 fixes the board device tree by routing the interrupt to R_PIO >=20 > --- > Michal Piekos (2): > arm64: dts: allwinner: h616: declare r_pio as interrupt controller > arm64: dts: allwinner: orangepi-zero3: fix axp313 interrupt parrent >=20 > arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 2 ++ > arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts | 2 +- > 2 files changed, 3 insertions(+), 1 deletion(-) > --- > base-commit: 4ae12d8bd9a830799db335ee661d6cbc6597f838 > change-id: 20260308-rc2-boot-hang-269e8546635b >=20 > Best regards, >=20