dmaengine: mv_xor_v2: Fix clock resource by adding a register clock
authorGregory CLEMENT <gregory.clement@bootlin.com>
Wed, 7 Mar 2018 15:40:10 +0000 (16:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:14 +0000 (07:52 +0200)
commit2299285fb1819ef8459c116fd1eafe1458bb9ca1
tree0a3fc8c768a14baeee58709af6cec264bce244bd
parente2d9442dfe84062d9fdb96b0a755013fc5c2fa6d
dmaengine: mv_xor_v2: Fix clock resource by adding a register clock

[ Upstream commit 3cd2c313f1d618f92d1294addc6c685c17065761 ]

On the CP110 components which are present on the Armada 7K/8K SoC we need
to explicitly enable the clock for the registers. However it is not
needed for the AP8xx component, that's why this clock is optional.

With this patch both clock have now a name, but in order to be backward
compatible, the name of the first clock is not used. It allows to still
use this clock with a device tree using the old binding.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/dma/mv-xor-v2.txt
drivers/dma/mv_xor_v2.c