diff options
author | Lee Nipper <lee.nipper@freescale.com> | 2008-10-12 08:29:34 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-12-24 19:01:10 -0500 |
commit | 1c2e8811eea5f0c5da3213ea206c2864fa4614fd (patch) | |
tree | 1d1a227e268bef3bd7ce1df189dacee29cbf1937 /drivers/crypto/talitos.h | |
parent | 40405f10b853ef404b395c6febca71b0de185490 (diff) |
crypto: talitos - Implement done interrupt mitigation
In talitos_interrupt, upon one done interrupt, mask further done interrupts,
and ack only any error interrupt.
In talitos_done, unmask done interrupts after completing processing.
In flush_channel, ack each done channel processed.
Keep done overflow interrupts masked because even though each pkt
is ack'ed, a few done overflows still occur.
Signed-off-by: Lee Nipper <lee.nipper@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/talitos.h')
-rw-r--r-- | drivers/crypto/talitos.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/talitos.h b/drivers/crypto/talitos.h index c48a405abf70..e6b87770df03 100644 --- a/drivers/crypto/talitos.h +++ b/drivers/crypto/talitos.h | |||
@@ -37,7 +37,8 @@ | |||
37 | #define TALITOS_MCR_LO 0x1038 | 37 | #define TALITOS_MCR_LO 0x1038 |
38 | #define TALITOS_MCR_SWR 0x1 /* s/w reset */ | 38 | #define TALITOS_MCR_SWR 0x1 /* s/w reset */ |
39 | #define TALITOS_IMR 0x1008 /* interrupt mask register */ | 39 | #define TALITOS_IMR 0x1008 /* interrupt mask register */ |
40 | #define TALITOS_IMR_INIT 0x10fff /* enable channel IRQs */ | 40 | #define TALITOS_IMR_INIT 0x100ff /* enable channel IRQs */ |
41 | #define TALITOS_IMR_DONE 0x00055 /* done IRQs */ | ||
41 | #define TALITOS_IMR_LO 0x100C | 42 | #define TALITOS_IMR_LO 0x100C |
42 | #define TALITOS_IMR_LO_INIT 0x20000 /* allow RNGU error IRQs */ | 43 | #define TALITOS_IMR_LO_INIT 0x20000 /* allow RNGU error IRQs */ |
43 | #define TALITOS_ISR 0x1010 /* interrupt status register */ | 44 | #define TALITOS_ISR 0x1010 /* interrupt status register */ |