]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: s5p-sss - initialize APB clock after the AXI bus clock for SlimSSS
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 12 Feb 2021 16:35:26 +0000 (17:35 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 7 Mar 2021 04:13:17 +0000 (15:13 +1100)
commit79151d132b127d612e11b263f033ed2285b090e5
tree7d22d9572a10c8d2532df78d8cd0777f9c2c1452
parentf6d4f07bd66cb1a37bf91d8274748f0b9a57a88d
crypto: s5p-sss - initialize APB clock after the AXI bus clock for SlimSSS

The driver for Slim Security Subsystem (SlimSSS) on Exynos5433 takes two
clocks - aclk (AXI/AHB clock) and pclk (APB/Advanced Peripheral Bus
clock).  The "aclk", as main high speed bus clock, is enabled first.  Then
the "pclk" is enabled.

However the driver assigned reversed names for lookup of these clocks
from devicetree, so effectively the "pclk" was enabled first.

Although it might not matter in reality, the correct order is to enable
first main/high speed bus clock - "aclk".  Also this was the intention
of the actual code.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/s5p-sss.c