mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
clk: qcom: Fix clk_rcg2_is_enabled() check
commitaa014149baupstream. If the bit is set the clock is off so we should be checking for a clear bit, not a set bit. Invert the logic. Fixes:bcd61c0f53(clk: qcom: Add support for root clock generators (RCGs)) Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Mike Turquette <mturquette@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5bd67f859a
commit
3ebbc9d1fe
@@ -55,7 +55,7 @@ static int clk_rcg2_is_enabled(struct clk_hw *hw)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return (cmd & CMD_ROOT_OFF) != 0;
|
||||
return (cmd & CMD_ROOT_OFF) == 0;
|
||||
}
|
||||
|
||||
static u8 clk_rcg2_get_parent(struct clk_hw *hw)
|
||||
|
||||
Reference in New Issue
Block a user