Commit 99d90b2e authored by Gary R Hook's avatar Gary R Hook Committed by Herbert Xu

crypto: ccp - Enable DMA service on a v5 CCP

Every CCP is capable of providing general DMA services.
Register the device as a provider.
Signed-off-by: default avatarGary R Hook <gary.hook@amd.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 084935b2
...@@ -832,6 +832,11 @@ static int ccp5_init(struct ccp_device *ccp) ...@@ -832,6 +832,11 @@ static int ccp5_init(struct ccp_device *ccp)
if (ret) if (ret)
goto e_kthread; goto e_kthread;
/* Register the DMA engine support */
ret = ccp_dmaengine_register(ccp);
if (ret)
goto e_hwrng;
return 0; return 0;
e_kthread: e_kthread:
...@@ -856,6 +861,9 @@ static void ccp5_destroy(struct ccp_device *ccp) ...@@ -856,6 +861,9 @@ static void ccp5_destroy(struct ccp_device *ccp)
struct ccp_cmd *cmd; struct ccp_cmd *cmd;
unsigned int i; unsigned int i;
/* Unregister the DMA engine */
ccp_dmaengine_unregister(ccp);
/* Unregister the RNG */ /* Unregister the RNG */
ccp_unregister_rng(ccp); ccp_unregister_rng(ccp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment