Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb178da7 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mike Turquette
Browse files

clk: shmobile: mstp: Fix the is_enabled() operation



The MSTP[SC]R registers have clock stop bits, not clock enable bits. The
bit value should thus be inverted in the is_enabled() operation.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent 7f05e28f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@ static int cpg_mstp_clock_is_enabled(struct clk_hw *hw)
	else
		value = clk_readl(group->smstpcr);

	return !!(value & BIT(clock->bit_index));
	return !(value & BIT(clock->bit_index));
}

static const struct clk_ops cpg_mstp_clock_ops = {