aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/crypto/ccree/cc_driver.h
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2020-01-16 12:14:44 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2020-01-22 16:21:10 +0800
commit33c4b310981f351ce8fde485a8450177e4f3d133 (patch)
tree8ce8c1b3e262cf5d4a396ae1ee309366dcb2cc4d /drivers/crypto/ccree/cc_driver.h
parentcrypto: ccree - fix PM race condition (diff)
downloadwireguard-linux-33c4b310981f351ce8fde485a8450177e4f3d133.tar.xz
wireguard-linux-33c4b310981f351ce8fde485a8450177e4f3d133.zip
crypto: ccree - split overloaded usage of irq field
We were using the irq field of the drvdata struct in an overloaded fahsion - saving the IRQ number during init and then storing the pending itnerrupt sources during interrupt in the same field. This worked because these usage are mutually exclusive but are confusing. So simplify the code and change the init use case to use a simple local variable. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--drivers/crypto/ccree/cc_driver.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/crypto/ccree/cc_driver.h b/drivers/crypto/ccree/cc_driver.h
index 9d77cfdb10d9..c227718ba992 100644
--- a/drivers/crypto/ccree/cc_driver.h
+++ b/drivers/crypto/ccree/cc_driver.h
@@ -132,13 +132,11 @@ struct cc_crypto_req {
/**
* struct cc_drvdata - driver private data context
* @cc_base: virt address of the CC registers
- * @irq: device IRQ number
- * @irq_mask: Interrupt mask shadow (1 for masked interrupts)
+ * @irq: bitmap indicating source of last interrupt
*/
struct cc_drvdata {
void __iomem *cc_base;
int irq;
- u32 irq_mask;
struct completion hw_queue_avail; /* wait for HW queue availability */
struct platform_device *plat_dev;
cc_sram_addr_t mlli_sram_addr;