summaryrefslogtreecommitdiff
path: root/drivers/crypto/ccp/ccp-dev-v3.c
diff options
context:
space:
mode:
authorGary R Hook <gary.hook@amd.com>2016-09-28 19:53:56 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2016-10-02 17:33:45 +0300
commit81422badb39078fde1ffcecda3caac555226fc7b (patch)
treefa0be17bd054e8f24a576d7fac8ce19bc0273e43 /drivers/crypto/ccp/ccp-dev-v3.c
parent9ddb9dc6be095ebe393f7eb582df09cc4847c5e9 (diff)
downloadlinux-81422badb39078fde1ffcecda3caac555226fc7b.tar.xz
crypto: ccp - Make syslog errors human-readable
Add human-readable strings to log messages about CCP errors Signed-off-by: Gary R Hook <gary.hook@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp/ccp-dev-v3.c')
-rw-r--r--drivers/crypto/ccp/ccp-dev-v3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/crypto/ccp/ccp-dev-v3.c b/drivers/crypto/ccp/ccp-dev-v3.c
index b6615b15a3c2..8d2dbacc6161 100644
--- a/drivers/crypto/ccp/ccp-dev-v3.c
+++ b/drivers/crypto/ccp/ccp-dev-v3.c
@@ -124,6 +124,9 @@ static int ccp_do_cmd(struct ccp_op *op, u32 *cr, unsigned int cr_count)
/* On error delete all related jobs from the queue */
cmd = (cmd_q->id << DEL_Q_ID_SHIFT)
| op->jobid;
+ if (cmd_q->cmd_error)
+ ccp_log_error(cmd_q->ccp,
+ cmd_q->cmd_error);
iowrite32(cmd, ccp->io_regs + DEL_CMD_Q_JOB);