[PATCH 01/24] clk: clk-mux: Fix handling of CLK_MUX_HIWORD_MASK

Sascha Hauer s.hauer at pengutronix.de
Wed Jun 2 02:54:44 PDT 2021


CLK_MUX_HIWORD_MASK is a flag of the mux clock, not a generic clock
flag.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/clk/clk-mux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c
index a4743c51b0..7977a76db9 100644
--- a/drivers/clk/clk-mux.c
+++ b/drivers/clk/clk-mux.c
@@ -34,7 +34,7 @@ static int clk_mux_set_parent(struct clk *clk, u8 idx)
 	val &= ~(((1 << m->width) - 1) << m->shift);
 	val |= idx << m->shift;
 
-	if (clk->flags & CLK_MUX_HIWORD_MASK)
+	if (m->flags & CLK_MUX_HIWORD_MASK)
 		val |= ((1 << m->width) - 1) << (m->shift + 16);
 	writel(val, m->reg);
 
-- 
2.29.2




More information about the barebox mailing list