aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ccp/ccp-dev.h
diff options
context:
space:
mode:
authorGary R Hook <gary.hook@amd.com>2017-04-20 15:24:09 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2017-04-21 20:30:56 +0800
commit56467cb11cf8ae4db9003f54b3d3425b5f07a10a (patch)
tree0f51509aec6c9c379cd498e427f1221340d4a4b5 /drivers/crypto/ccp/ccp-dev.h
parenthwrng: mtk - Add driver for hardware random generator on MT7623 SoC (diff)
downloadlinux-dev-56467cb11cf8ae4db9003f54b3d3425b5f07a10a.tar.xz
linux-dev-56467cb11cf8ae4db9003f54b3d3425b5f07a10a.zip
crypto: ccp - Use only the relevant interrupt bits
Each CCP queue can product interrupts for 4 conditions: operation complete, queue empty, error, and queue stopped. This driver only works with completion and error events. Cc: <stable@vger.kernel.org> # 4.9.x+ 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.h')
-rw-r--r--drivers/crypto/ccp/ccp-dev.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/crypto/ccp/ccp-dev.h b/drivers/crypto/ccp/ccp-dev.h
index 191274d41036..2dfec019a832 100644
--- a/drivers/crypto/ccp/ccp-dev.h
+++ b/drivers/crypto/ccp/ccp-dev.h
@@ -109,9 +109,8 @@
#define INT_COMPLETION 0x1
#define INT_ERROR 0x2
#define INT_QUEUE_STOPPED 0x4
-#define ALL_INTERRUPTS (INT_COMPLETION| \
- INT_ERROR| \
- INT_QUEUE_STOPPED)
+#define INT_EMPTY_QUEUE 0x8
+#define SUPPORTED_INTERRUPTS (INT_COMPLETION | INT_ERROR)
#define LSB_REGION_WIDTH 5
#define MAX_LSB_CNT 8