Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8a53fc51 authored by Eddie James's avatar Eddie James Committed by Stephen Boyd
Browse files

clk: aspeed: Prevent reset if clock is enabled



According to the Aspeed specification, the reset and enable sequence
should be done when the clock is stopped. The specification doesn't
define behavior if the reset is done while the clock is enabled.

From testing on the AST2500, the LPC Controller has problems if the
clock is reset while enabled.

Therefore, check whether the clock is enabled or not before performing
the reset and enable sequence in the Aspeed clock driver.

Reported-by: default avatarLei Yu <mine260309@gmail.com>
Signed-off-by: default avatarEddie James <eajames@linux.vnet.ibm.com>
Fixes: 15ed8ce5 ("clk: aspeed: Register gated clocks")
Reviewed-by: default avatarJoel Stanley <joel@jms.id.au>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent d90c76bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment