Skip to contentSkip to conversation

clk: qcom: clk-alpha-pll: Fix the pll post div mask

PATCH In review Ardi Nugraha 1 participant 2 messages Sep 10, 2024 2 messages not in the archive

Subsystems (4)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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.

---
 drivers/clk/qcom/clk-alpha-pll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/qcom/clk-alpha-pll.c +1 -1
index d87314042528..9ce45cd6e09f 100644
@@ -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

#3 lore raw

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_MASK should be 0 to (width - 1) bits. Fix it.

---
 drivers/clk/qcom/clk-alpha-pll.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/qcom/clk-alpha-pll.c +1 -2
index d87314042528..9ce45cd6e09f 100644
@@ -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