Skip to content

Commit 2c4553e

Browse files
Satya Priya Kakitapalliandersson
authored andcommitted
clk: qcom: clk-alpha-pll: Fix the pll post div mask
The PLL_POST_DIV_MASK should be 0 to (width - 1) bits. Fix it. Fixes: 1c35411 ("clk: qcom: support for 2 bit PLL post divider") Cc: stable@vger.kernel.org Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Satya Priya Kakitapalli <quic_skakitap@quicinc.com> Link: https://lore.kernel.org/r/20240731062916.2680823-2-quic_skakitap@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 8400291 commit 2c4553e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/clk/qcom/clk-alpha-pll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
#define PLL_USER_CTL(p) ((p)->offset + (p)->regs[PLL_OFF_USER_CTL])
4242
# define PLL_POST_DIV_SHIFT 8
43-
# define PLL_POST_DIV_MASK(p) GENMASK((p)->width, 0)
43+
# define PLL_POST_DIV_MASK(p) GENMASK((p)->width - 1, 0)
4444
# define PLL_ALPHA_EN BIT(24)
4545
# define PLL_ALPHA_MODE BIT(25)
4646
# define PLL_VCO_SHIFT 20

0 commit comments

Comments
 (0)