Skip to content

Commit bb178da

Browse files
Laurent PinchartMike Turquette
authored andcommitted
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>
1 parent 7f05e28 commit bb178da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/clk/shmobile/clk-mstp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static int cpg_mstp_clock_is_enabled(struct clk_hw *hw)
112112
else
113113
value = clk_readl(group->smstpcr);
114114

115-
return !!(value & BIT(clock->bit_index));
115+
return !(value & BIT(clock->bit_index));
116116
}
117117

118118
static const struct clk_ops cpg_mstp_clock_ops = {

0 commit comments

Comments
 (0)