mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-27 14:41:12 +04:00
qualcommax: enable parents while switching ipq8074 nss_crypto_clk_src
When the bootloader leaves the NSS crypto RCG root enabled, the PPE node's assigned-clock-rates switches it to the NSS crypto PLL while the PLL is still off, and the RCG does not take the new configuration: nss_crypto_clk_src: rcg didn't update its configuration. Set CLK_OPS_PARENT_ENABLE on the IPQ8074 nss_crypto_clk_src so the parents run across the switch. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de> Link: https://github.com/openwrt/openwrt/pull/25372 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
1 parent
fd3b9d4678
commit
34a8bd60de
2 files changed
+30
-2
No files matched your search
+28
@@ -0,0 +1,28 @@
|
||||
From: Julius Bairaktaris <julius@bairaktaris.de>
|
||||
Date: Thu, 24 Sep 2026 04:46:40 +0000
|
||||
Subject: clk: qcom: gcc-ipq8074: enable parents while switching nss_crypto_clk_src
|
||||
|
||||
An RCG whose root is enabled does not switch to a source that is not
|
||||
running. The NSS crypto PLL has no other consumer and is off at boot,
|
||||
so when the bootloader leaves the crypto RCG root enabled,
|
||||
assigned-clock-rates on the PPE node switches it to the stopped PLL and
|
||||
the update times out:
|
||||
|
||||
nss_crypto_clk_src: rcg didn't update its configuration.
|
||||
|
||||
Set CLK_OPS_PARENT_ENABLE so the clock core runs the parents across the
|
||||
switch, as gcc-sc7180 does for gcc_sdcc2_apps_clk_src.
|
||||
|
||||
Assisted-by: Claude:claude-opus-5-5
|
||||
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
|
||||
---
|
||||
--- a/drivers/clk/qcom/gcc-ipq8074.c
|
||||
+++ b/drivers/clk/qcom/gcc-ipq8074.c
|
||||
@@ -1198,6 +1198,7 @@ static struct clk_rcg2 nss_crypto_clk_sr
|
||||
.name = "nss_crypto_clk_src",
|
||||
.parent_data = gcc_xo_nss_crypto_pll_gpll0,
|
||||
.num_parents = ARRAY_SIZE(gcc_xo_nss_crypto_pll_gpll0),
|
||||
+ .flags = CLK_OPS_PARENT_ENABLE,
|
||||
.ops = &clk_rcg2_ops,
|
||||
},
|
||||
};
|
||||
+2
-2
@@ -18,7 +18,7 @@ Signed-off-by: Chris Busch <chrisb@toroidalsoftware.com>
|
||||
---
|
||||
--- a/drivers/clk/qcom/gcc-ipq8074.c
|
||||
+++ b/drivers/clk/qcom/gcc-ipq8074.c
|
||||
@@ -1678,11 +1678,13 @@ static struct clk_regmap_div nss_port4_t
|
||||
@@ -1679,11 +1679,13 @@ static struct clk_regmap_div nss_port4_t
|
||||
};
|
||||
|
||||
static const struct freq_conf ftbl_nss_port5_rx_clk_src_25[] = {
|
||||
@@ -32,7 +32,7 @@ Signed-off-by: Chris Busch <chrisb@toroidalsoftware.com>
|
||||
C(P_UNIPHY1_RX, 2.5, 0, 0),
|
||||
C(P_UNIPHY0_RX, 1, 0, 0),
|
||||
};
|
||||
@@ -1748,11 +1750,13 @@ static struct clk_regmap_div nss_port5_r
|
||||
@@ -1749,11 +1751,13 @@ static struct clk_regmap_div nss_port5_r
|
||||
};
|
||||
|
||||
static const struct freq_conf ftbl_nss_port5_tx_clk_src_25[] = {
|
||||
|
||||
Reference in new issue
Block a user