diff options
author | Eddie James <eajames@linux.vnet.ibm.com> | 2018-03-08 14:57:19 -0600 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-03-15 11:11:43 -0700 |
commit | d90c76bb61128ed9022b9418c31c4749764b6cd9 (patch) | |
tree | 4805e03a5d45838fdae9f51132781a8cfe7f23fd /drivers/block/swim3.c | |
parent | 55c19eee3b471e7ca7e38783836f7b7137c9d14f (diff) | |
download | linux-d90c76bb61128ed9022b9418c31c4749764b6cd9.tar.bz2 |
clk: aspeed: Fix is_enabled for certain clocks
Some of the Aspeed clocks are disabled by setting the relevant bit in
the "clock stop control" register to one, while others are disabled by
setting their bit to zero. The driver already uses a flag per gate to
identify this behavior, but doesn't apply it in the clock is_enabled
function.
Use the existing gate flag to correctly return whether or not a clock
is enabled in the aspeed_clk_is_enabled function.
Signed-off-by: Eddie James <eajames@linux.vnet.ibm.com>
Fixes: 6671507f0fbd ("clk: aspeed: Handle inverse polarity of USB port 1 clock gate")
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/block/swim3.c')
0 files changed, 0 insertions, 0 deletions