From: Greg Kroah-Hartman Date: Sun, 8 Sep 2024 11:54:07 +0000 (+0200) Subject: 4.19-stable patches X-Git-Tag: v4.19.322~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba01d08485bbac9f35470ebd9eb437a78191233f;p=thirdparty%2Fkernel%2Fstable-queue.git 4.19-stable patches added patches: clk-qcom-clk-alpha-pll-fix-the-pll-post-div-mask.patch --- diff --git a/queue-4.19/clk-qcom-clk-alpha-pll-fix-the-pll-post-div-mask.patch b/queue-4.19/clk-qcom-clk-alpha-pll-fix-the-pll-post-div-mask.patch new file mode 100644 index 00000000000..8760a0fd759 --- /dev/null +++ b/queue-4.19/clk-qcom-clk-alpha-pll-fix-the-pll-post-div-mask.patch @@ -0,0 +1,33 @@ +From 2c4553e6c485a96b5d86989eb9654bf20e51e6dd Mon Sep 17 00:00:00 2001 +From: Satya Priya Kakitapalli +Date: Wed, 31 Jul 2024 11:59:09 +0530 +Subject: clk: qcom: clk-alpha-pll: Fix the pll post div mask + +From: Satya Priya Kakitapalli + +commit 2c4553e6c485a96b5d86989eb9654bf20e51e6dd upstream. + +The PLL_POST_DIV_MASK should be 0 to (width - 1) bits. Fix it. + +Fixes: 1c3541145cbf ("clk: qcom: support for 2 bit PLL post divider") +Cc: stable@vger.kernel.org +Reviewed-by: Konrad Dybcio +Signed-off-by: Satya Priya Kakitapalli +Link: https://lore.kernel.org/r/20240731062916.2680823-2-quic_skakitap@quicinc.com +Signed-off-by: Bjorn Andersson +Signed-off-by: Greg Kroah-Hartman +--- + drivers/clk/qcom/clk-alpha-pll.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/clk/qcom/clk-alpha-pll.c ++++ b/drivers/clk/qcom/clk-alpha-pll.c +@@ -37,7 +37,7 @@ + + #define PLL_USER_CTL(p) ((p)->offset + (p)->regs[PLL_OFF_USER_CTL]) + # define PLL_POST_DIV_SHIFT 8 +-# define PLL_POST_DIV_MASK(p) GENMASK((p)->width, 0) ++# define PLL_POST_DIV_MASK(p) GENMASK((p)->width - 1, 0) + # define PLL_ALPHA_EN BIT(24) + # define PLL_ALPHA_MODE BIT(25) + # define PLL_VCO_SHIFT 20 diff --git a/queue-4.19/series b/queue-4.19/series index 2d553b17b09..ff9fc62cb13 100644 --- a/queue-4.19/series +++ b/queue-4.19/series @@ -20,3 +20,4 @@ alsa-hda-conexant-add-pincfg-quirk-to-enable-top-speakers-on-sirius-devices.patc ata-libata-fix-memory-leak-for-error-path-in-ata_host_alloc.patch mmc-dw_mmc-fix-idmac-operation-with-pages-bigger-than-4k.patch fuse-use-unsigned-type-for-getxattr-listxattr-size-truncation.patch +clk-qcom-clk-alpha-pll-fix-the-pll-post-div-mask.patch