summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ccp/ccp-dev-v5.c
diff options
context:
space:
mode:
authorHook, Gary <Gary.Hook@amd.com>2019-10-21 13:44:37 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2019-10-26 02:09:59 +1100
commit0d3c6781d8d80090509ebb0c72587e6c44da4736 (patch)
treed65442d58d6101f406d9579762a658d484782873 /drivers/crypto/ccp/ccp-dev-v5.c
parent9a8641a7ffbf6f896bcd2bb2c6c0f4b403831c18 (diff)
downloadlinux-0d3c6781d8d80090509ebb0c72587e6c44da4736.tar.bz2
crypto: ccp - Change a message to reflect status instead of failure
If an AMD BIOS makes zero CCP queues available to the driver, the device is unavailable and therefore can't be activated. When this happens, report the status but don't report a (non-existent) failure. The CCP will be unactivated. 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-v5.c')
-rw-r--r--drivers/crypto/ccp/ccp-dev-v5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ccp/ccp-dev-v5.c b/drivers/crypto/ccp/ccp-dev-v5.c
index 57eb53b8ac21..2937ba3afb7b 100644
--- a/drivers/crypto/ccp/ccp-dev-v5.c
+++ b/drivers/crypto/ccp/ccp-dev-v5.c
@@ -854,7 +854,7 @@ static int ccp5_init(struct ccp_device *ccp)
if (ccp->cmd_q_count == 0) {
dev_notice(dev, "no command queues available\n");
- ret = -EIO;
+ ret = 1;
goto e_pool;
}