summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ccp/sp-dev.h
diff options
context:
space:
mode:
authorJohn Allen <john.allen@amd.com>2020-03-03 07:57:24 -0600
committerHerbert Xu <herbert@gondor.apana.org.au>2020-03-12 23:00:12 +1100
commit15f7a4c65293d188651e21a9c5ab6bd8f99a1459 (patch)
treee9f48df3c9c8886f9b7dd1e43553db7b3adaa35a /drivers/crypto/ccp/sp-dev.h
parent1f14b57ffc0adcbba0cf35214b0a6129ceae9d09 (diff)
downloadlinux-15f7a4c65293d188651e21a9c5ab6bd8f99a1459.tar.bz2
crypto: ccp - Cleanup sp_dev_master in psp_dev_destroy()
Introduce clear_psp_master_device() to ensure that sp_dev_master gets properly cleared on the release of a psp device. Fixes: 2a6170dfe755 ("crypto: ccp: Add Platform Security Processor (PSP) device support") Signed-off-by: John Allen <john.allen@amd.com> Acked-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp/sp-dev.h')
-rw-r--r--drivers/crypto/ccp/sp-dev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/ccp/sp-dev.h b/drivers/crypto/ccp/sp-dev.h
index 423594608ad1..f913f1494af9 100644
--- a/drivers/crypto/ccp/sp-dev.h
+++ b/drivers/crypto/ccp/sp-dev.h
@@ -90,6 +90,7 @@ struct sp_device {
/* get and set master device */
struct sp_device*(*get_psp_master_device)(void);
void (*set_psp_master_device)(struct sp_device *);
+ void (*clear_psp_master_device)(struct sp_device *);
bool irq_registered;
bool use_tasklet;