From nobody Tue Apr 7 06:00:30 2026 Received: from fr5000-r.dnsiaas.com (fr5000-r.dnsiaas.com [92.42.104.18]) (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 E71F4397E79; Mon, 16 Mar 2026 13:30:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.42.104.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773667835; cv=none; b=fJMSl3vp7rYt6c8Y3Mr1MD0jhEL6k4R72qwIHYz5UMZh0dTFswQQomENqp1dcHrbtylD3sPhLNLAApHU3wuQiSnetPVG/52bfuLix4r3tzRsr97q1EX1LGijPqZ/0aqjMEie9d/2k4k6USMEFB5Insw+T22w5h/wX1kATaD0VCQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773667835; c=relaxed/simple; bh=Rj8UxNrcJ6P4tHKTalF51MgOjNiA7VX+9TjgKhsKnaE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=feqTPW5mstPtuSWtazVi70h6EQX+FbWYFYIn3pc26to3WNIiNVG5UoSSzR5Vg9JYL+fOHq+ihaB8bD87wfEEHerYEcp6OBhBGCffGjQBsU5OpA3eIb200/Y0Q/ppi5rTT+mtIS5KmlBoZu7yOx6fhuYx2/1+Fi0Fnf1TEveJzt0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=superkali.me; spf=fail smtp.mailfrom=superkali.me; dkim=pass (2048-bit key) header.d=superkali.me header.i=@superkali.me header.b=lw7PuB6n; arc=none smtp.client-ip=92.42.104.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=superkali.me Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=superkali.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=superkali.me header.i=@superkali.me header.b="lw7PuB6n" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=superkali.me; s=default; 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=ItlAORhExVLJLOwJkAKricBH8Ez94YlV63fFrX1U/Hw=; b=lw7PuB6nN7EQ2t6fG5RucSnZ1w Ki0sfNDrMSuzPu/x2MZWJSBojhlXRIhwWT6HJW9Qt3jr1wXiGiZ+HnkCPw5iF8NosTPQr/PIrUCKh MlVZbaCK8lEpl0DcUc1eY0XgmSZp3DSDDQ+TVEOIZKYamb9gnfgPnFujls8E1T7s10oqon4hLHD+C p/ULrXJHCGRmzB6EaQqQQOFAjNPxR1SrwOTlu/IF+/EBuB67IyOvNIi+aW2vOIWS/JG+jIMKJ4qhM RBPLtJKMWzK9TpiLqFJWisMx7xZwlZGS5yk3B3NEAIYHp94Y61gsX7L9aenQYFA43uUshlgZDdW9L Sh1tD2Dg==; Received: from [185.94.132.237] (port=54871 helo=1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa) by fr5000-r.dnsiaas.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.1) (envelope-from ) id 1w27eZ-0000000BDZB-1EXR; Mon, 16 Mar 2026 14:06:38 +0100 From: Daniele Briguglio Date: Mon, 16 Mar 2026 14:06:32 +0100 Subject: [PATCH 2/3] clk: rockchip: allow grf_type_sys lookup in aux_grf_table 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: <20260316-rk3588-mclk-gate-grf-v1-2-66fb9a246718@superkali.me> References: <20260316-rk3588-mclk-gate-grf-v1-0-66fb9a246718@superkali.me> In-Reply-To: <20260316-rk3588-mclk-gate-grf-v1-0-66fb9a246718@superkali.me> To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Nicolas Frattaroli , Daniele Briguglio X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773666394; l=1640; i=hello@superkali.me; s=20260316; h=from:subject:message-id; bh=Rj8UxNrcJ6P4tHKTalF51MgOjNiA7VX+9TjgKhsKnaE=; b=FDWL40JuGazr9oA4JhwWUw8YogvzJ429eGAvO2EQxk5Qlyg2CB3exSUF+uApu34+5YVah+UPN Kg2qGrTyMuKBuzuhOxhefXaETmbPuW8kEjctynXwCD5e6kLw8R9TU/9 X-Developer-Key: i=hello@superkali.me; a=ed25519; pk=5tynRWQdL93CDcapJ73FkcCRY2PeBOJOIAoIhRig53U= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - fr5000-r.dnsiaas.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - superkali.me X-Get-Message-Sender-Via: fr5000-r.dnsiaas.com: authenticated_id: hello@superkali.me X-Authenticated-Sender: fr5000-r.dnsiaas.com: hello@superkali.me X-Source: X-Source-Args: X-Source-Dir: Remove the grf_type_sys exclusion from the auxiliary GRF table lookup in rockchip_clk_register_branches(). Previously, branches with grf_type_sys always used ctx->grf directly, bypassing the aux_grf_table. This is a problem on SoCs like RK3588 where ctx->grf points to the PHP_GRF (set via the CRU's rockchip,grf phandle), but GATE_GRF clock entries need to access the SYS_GRF instead. With this change, grf_type_sys branches first check the aux_grf_table, and fall back to ctx->grf if no entry is found. This is backwards compatible: on SoCs that do not register grf_type_sys in the aux_grf_table, the behavior is unchanged. Signed-off-by: Daniele Briguglio Reviewed-by: Nicolas Frattaroli --- drivers/clk/rockchip/clk.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/clk/rockchip/clk.c b/drivers/clk/rockchip/clk.c index e8b3b0b9a4f8..911e6b610618 100644 --- a/drivers/clk/rockchip/clk.c +++ b/drivers/clk/rockchip/clk.c @@ -509,10 +509,9 @@ void rockchip_clk_register_branches(struct rockchip_cl= k_provider *ctx, clk =3D NULL; =20 /* for GRF-dependent branches, choose the right grf first */ - if ((list->branch_type =3D=3D branch_grf_mux || - list->branch_type =3D=3D branch_grf_gate || - list->branch_type =3D=3D branch_grf_mmc) && - list->grf_type !=3D grf_type_sys) { + if (list->branch_type =3D=3D branch_grf_mux || + list->branch_type =3D=3D branch_grf_gate || + list->branch_type =3D=3D branch_grf_mmc) { hash_for_each_possible(ctx->aux_grf_table, agrf, node, list->grf_type) { if (agrf->type =3D=3D list->grf_type) { grf =3D agrf->grf; --=20 2.53.0