]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ccp - Base AXI DMA cache settings on device tree
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 10 Jul 2014 15:58:35 +0000 (10:58 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 23 Jul 2014 13:28:38 +0000 (21:28 +0800)
commita8cdbdb8ef9bb0d188ef50a4359523d16534601d
treef3ee814b261aa440feae1b5785f797aaa16cced7
parentf0a281397cf17fdde1e626012e4a5eb3f21acb2a
crypto: ccp - Base AXI DMA cache settings on device tree

The default cache operations for ARM64 were changed during 3.15.
To use coherent operations a "dma-coherent" device tree property
is required.  If that property is not present in the device tree
node then the non-coherent operations are assigned for the device.

Add support to the ccp driver to assign the AXI DMA cache settings
based on whether the "dma-coherent" property is present in the device
node.  If present, use settings that work with the caches.  If not
present, use settings that do not look at the caches.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Documentation/devicetree/bindings/crypto/amd-ccp.txt
drivers/crypto/ccp/Kconfig
drivers/crypto/ccp/ccp-dev.c
drivers/crypto/ccp/ccp-dev.h
drivers/crypto/ccp/ccp-platform.c