[PATCH 01/24] clk: clk-mux: Fix handling of CLK_MUX_HIWORD_MASK
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed Jun 2 08:18:28 PDT 2021
On 02.06.21 11:54, Sascha Hauer wrote:
> 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>
Reviewed-by: Ahmad Fatoum <a.fatoum 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);
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list