clk: qcom: clk-alpha-pll: Fix the pll post div mask
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/12 clk: qcom: clk-alpha-pll: Fix the pll post div mask
From: Satya Priya Kakitapalli <[email protected]>
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")
Reviewed-by Konrad Dybcio <[email protected]>
Signed-off-by Satya Priya Kakitapalli <[email protected]>
Signed-off-by Bjorn Andersson <[email protected]>
Signed-off-by ardinugrxha <[email protected]>
--- drivers/clk/qcom/clk-alpha-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/qcom/clk-alpha-pll.c +1 -1
@@ -40,7 +40,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
Signature · 1 line
2.43.0
A message that is not in the archive (sent off-list or not yet received): CANQsBiffhRB7RyuMMD=eDqBZE-2TcG0X+7i4HyFs_Z3oEC39Ug@mail.gmail.com
Sorry, it was a mistake. You can ignore it. Thank you
Quoted 36 lines · Ardi Nugraha
Sorry, it was a mistake. You can ignore it. Thank you
Quoted 32 lines · On Tue, 10 Sep 2024 at 22.18 Ardi Nugraha <[email protected]> wrote:
From: Satya Priya Kakitapalli <[email protected]>
The
PLL_POST_DIV_MASKshould be 0 to (width - 1) bits. Fix it.Fixes 1c3541145cbf ("clk: qcom: support for 2 bit PLL post divider")Reviewed-by Konrad Dybcio <[email protected]>Signed-off-by Satya Priya Kakitapalli <[email protected]>Signed-off-by Bjorn Andersson <[email protected]>Signed-off-by ardinugrxha <[email protected]>--- drivers/clk/qcom/clk-alpha-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clk/qcom/clk-alpha-pll.c +1
-2@@ -40,7 +40,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 --2.43.0