diff options
author | Brijesh Singh <brijesh.singh@amd.com> | 2017-07-06 09:59:15 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-07-18 17:57:14 +0800 |
commit | f4d18d656f882a7ca558313d5f1b18b1fd01f759 (patch) | |
tree | 505605640669c9a727ce65e8553661538f6b5661 /drivers/crypto/ccp/ccp-dev.c | |
parent | 720419f01832f7e697cb80480b97b2a1e96045cd (diff) | |
download | linux-f4d18d656f882a7ca558313d5f1b18b1fd01f759.tar.gz linux-f4d18d656f882a7ca558313d5f1b18b1fd01f759.tar.bz2 linux-f4d18d656f882a7ca558313d5f1b18b1fd01f759.zip |
crypto: ccp - Abstract interrupt registeration
The CCP and PSP devices part of AMD Secure Procesor may share the same
interrupt. Hence we expand the SP device to register a common interrupt
handler and provide functions to CCP and PSP devices to register their
interrupt callback which will be invoked upon interrupt.
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Acked-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.c')
-rw-r--r-- | drivers/crypto/ccp/ccp-dev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/ccp/ccp-dev.c b/drivers/crypto/ccp/ccp-dev.c index 6b4315f8dad9..b2d176164402 100644 --- a/drivers/crypto/ccp/ccp-dev.c +++ b/drivers/crypto/ccp/ccp-dev.c @@ -600,8 +600,7 @@ int ccp_dev_init(struct sp_device *sp) goto e_err; } - ccp->get_irq = sp->get_irq; - ccp->free_irq = sp->free_irq; + ccp->use_tasklet = sp->use_tasklet; ccp->io_regs = sp->io_map + ccp->vdata->offset; if (ccp->vdata->setup) |