Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mike Turquette <mturquette@linaro.org>

authored by

Laurent Pinchart and committed by
Mike Turquette
bb178da7 7f05e28f

+1 -1
+1 -1
drivers/clk/shmobile/clk-mstp.c
··· 112 112 else 113 113 value = clk_readl(group->smstpcr); 114 114 115 - return !!(value & BIT(clock->bit_index)); 115 + return !(value & BIT(clock->bit_index)); 116 116 } 117 117 118 118 static const struct clk_ops cpg_mstp_clock_ops = {