diff --git a/target/linux/qualcommax/patches-6.18/0919-clk-qcom-gcc-ipq8074-enable-parents-while-switching-nss_crypto_clk_src.patch b/target/linux/qualcommax/patches-6.18/0919-clk-qcom-gcc-ipq8074-enable-parents-while-switching-nss_crypto_clk_src.patch new file mode 100644 index 00000000000..a90ea930cd0 --- /dev/null +++ b/target/linux/qualcommax/patches-6.18/0919-clk-qcom-gcc-ipq8074-enable-parents-while-switching-nss_crypto_clk_src.patch @@ -0,0 +1,28 @@ +From: Julius Bairaktaris +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 +--- +--- 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, + }, + }; diff --git a/target/linux/qualcommax/patches-6.18/0921-clk-qcom-gcc-ipq8074-add-uniphy1-sgmii-rates-for-port5.patch b/target/linux/qualcommax/patches-6.18/0921-clk-qcom-gcc-ipq8074-add-uniphy1-sgmii-rates-for-port5.patch index d626adcfc08..59854f8edeb 100644 --- a/target/linux/qualcommax/patches-6.18/0921-clk-qcom-gcc-ipq8074-add-uniphy1-sgmii-rates-for-port5.patch +++ b/target/linux/qualcommax/patches-6.18/0921-clk-qcom-gcc-ipq8074-add-uniphy1-sgmii-rates-for-port5.patch @@ -18,7 +18,7 @@ Signed-off-by: Chris Busch --- --- 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 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[] = {