crypto: ccp - Return doorbell status code as an argument
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 3 Apr 2023 18:32:12 +0000 (13:32 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 14 Apr 2023 10:59:34 +0000 (18:59 +0800)
commita19c61b06585f71c4dc1303fe6a3af79dfe33678
tree3001f49fb0c6567fc7745d99d3c80dec3c992c4b
parente0358dedff4ff432318665927d45f4786c34ed52
crypto: ccp - Return doorbell status code as an argument

If the doorbell failed to ring we return -EIO, but the caller can't
determine why it failed.  Pass the reason for the failure in an
argument for caller to investigate.

Suggested-by: Mark Hasemeyer <markhas@chromium.org>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Mark Hasemeyer <markhas@chromium.org>
Tested-by: Mark Hasemeyer <markhas@chromium.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/platform-access.c
include/linux/psp-platform-access.h