From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f172.google.com (mail-dy1-f172.google.com [74.125.82.172]) (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 0D2D6318BB8 for ; Mon, 5 Oct 2026 18:31:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791225070; cv=none; b=Wj3a7Hzd4QrPY07rwRqKUv22mm7fOd1Yhuj16CRegP2lbtEk7ILalkQRrLxVveesIVqxQx4cNzdhmD5HNr6z5iGaKk4R20vgzBCVJQqGEAUJ2IhgrvR9D04AK2qB4cNNYEoW4qV8N2N4PveVYL9omaWh2plIzt5Buw7fO5CB3rk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791225070; c=relaxed/simple; bh=/YjAT+PTANp5RO4duL6E//TuMjIjLHUPGD7hH8q1nCA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Ak4090kVDZ44oWb6DqTT5A/Mii/363VUpqB2Wwkgoql60uzF5NyHU3rhVb/d3sNJEX62+uoyHzwSMrmvR2ClE+Y9KKoEZFXN7Zj0KJwuEwEay99XA5BdJBvC1o/JrpzkHrPYPCIr+r/5hcI25w0OGtWZi6fZaMnFGqqwnlX7Fzs= 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=mPp0567a; arc=none smtp.client-ip=74.125.82.172 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="mPp0567a" Received: by mail-dy1-f172.google.com with SMTP id 5a478bee46e88-33fb4680717so5893352eec.1 for ; Mon, 05 Oct 2026 11:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791225068; x=1791829868; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=6PuYbZh3CSJx/YeySaraDhA8HTOEwlS5gR3oZ9G0OMs=; b=mPp0567abLw7JG+WLzGJMH3XRtB8NuakHDzWTv9g5TjEdG07ni23ONXk7jRK0IVOPN wWm2WhuxD04bvvttEcwS2+cXKT66WtRkXBzQBhiBhPNRtKpBjop5DTOTEXSCW6OacQSP +Hem3A8aBZ68N076PQnd/jY2EvFAb5Tx2usUG/VUpIy2jsfCAXNC+Fp8ll1l9CkhpHfV 26rD7s+K33w1vZ9IV3CApU5Ac0cR3ntU8L6+w1UWGpv1UM7I2r4pVPvvz6CA+K2kAlBx ZnLGzSk3WvqbExEl9rWrshJIwkC+Xs2dN/4TmcGxC1fDEIBbvtUXY7fxgxqnnIPVmcUH VWKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791225068; x=1791829868; h=content-transfer-encoding:content-type: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 :content-type; bh=6PuYbZh3CSJx/YeySaraDhA8HTOEwlS5gR3oZ9G0OMs=; b=FpM64FVSP6UKFTcSSFc3zu3lFrfckBGMDPT3YGKT0vKZ5Ai5mBO/GjMFUZz6oPOY+W W9WHeTn0WNj9lEvKUkHEdsLBS7J/ApIp5ICRuTq90C3w/apkIGeTMwgj2BbdSzyPTTEY 1Ke47D+VSw899c1TmpFJI+QzhjG6U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 with SMTP id 5a478bee46e88-3511162fa68mr10914269eec.6.1791225067702; Mon, 05 Oct 2026 11:31:07 -0700 (PDT) Received: from MaquinaLab.. ([179.179.237.181]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-35146ac4dc4sm140223eec.23.2026.10.05.11.31.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2026 11:31:07 -0700 (PDT) From: Vinicius Pedrosa To: Junhui Liu , Stephen Boyd , Brian Masney , Jerome Brunet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Richard Cochran Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, netdev@vger.kernel.org, Jerome Brunet , Enzo Adriano , Andre Przywara , Norman Herms Subject: Re: [PATCH v5 3/8] clk: sunxi-ng: a733: Add PRCM CCU Date: Mon, 5 Oct 2026 15:30:20 -0300 Message-ID: <20261005183038.417798-1-vinicius.eduardo.pedrosa@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260930-a733-clk-v5-3-11175b41cd2d@pigmoral.tech> References: <20260930-a733-clk-v5-0-11175b41cd2d@pigmoral.tech> <20260930-a733-clk-v5-3-11175b41cd2d@pigmoral.tech> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Junhui, On Wed Sep 30, 2026 at 1:26 AM CST, Junhui Liu wrote: > +static SUNXI_CCU_GATE_HW(bus_r_msgbox_clk, "bus-r-msgbox", &r_ahb_clk.common.hw, 0x17c, BIT(0), 0); [...] > +static SUNXI_CCU_GATE_HW(bus_r_riscv_clk, "bus-r-riscv", &r_apb0_clk.common.hw, > + 0x21c, BIT(0), 0); I'm bringing up mainline on a Radxa Cubie A7Z (PCB V1.11, 1 GiB). With 7.3-rc6, this series and a local common-DT integration, PSCI reboot and power-off hang once unused clocks are disabled. The boot chain uses vendor boot0/BL31 and source-built SCP/U-Boot. Keeping both of these gates enabled fixes reboot; either alone still hangs. With only these two marked CLK_IS_CRITICAL, reboot returns to boot0 and power-off drops DCDC1 from 3.3 V to 0.7 V and turns off the green LED with power still connected. I haven't checked whether each gate is needed for power-off on its own. My guess is that BL31 talks to the SCP for these, but I haven't traced it, and it may be specific to the vendor firmware. Would it make sense to mark them CLK_IS_CRITICAL, like bus-r-cpucfg already is? I can test the next revision on this board either way. Thanks, Vinicius