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: [email protected] Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: Satya Priya Kakitapalli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 8400291 commit 2c4553e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)