]> 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)
commitc3147bf7320f7926a49b064963b5445e7b91d471
tree4805e03a5d45838fdae9f51132781a8cfe7f23fd
parentfbb5302f45697c391d0a7b524c8f2abdb0d9ed36
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: e856e4c2d070 ("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