]> git.baikalelectronics.ru Git - kernel.git/commit
clk: aspeed: Fix is_enabled for certain clocks
authorEddie James <eajames@linux.vnet.ibm.com>
Thu, 8 Mar 2018 20:57:19 +0000 (14:57 -0600)
committerStephen Boyd <sboyd@kernel.org>
Thu, 15 Mar 2018 18:11:43 +0000 (11:11 -0700)
commitedacad5f6da3fa42e973798160211ecfefae5977
tree4805e03a5d45838fdae9f51132781a8cfe7f23fd
parentf9e7169bcfdd98eefd797060386a9d786c049347
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: 4ca7006e3592 ("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>
drivers/clk/clk-aspeed.c