crypto: caam - handle interrupt lines shared across rings
authorKim Phillips <kim.phillips@freescale.com>
Tue, 12 Apr 2011 00:15:16 +0000 (19:15 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 2 May 2011 23:53:31 +0000 (09:53 +1000)
commit9620fd959fb169358f2ba349c9fd1bcd96944c28
tree6aa26326b3bf82e8f30912a1599219f6edd41101
parentbf362759034cf208966dff262c7d740a6b1b3edd
crypto: caam - handle interrupt lines shared across rings

- add IRQF_SHARED to request_irq flags to support parts such as
the p1023 that has one IRQ line per couple of rings.

- resetting a job ring triggers an interrupt, so move request_irq
prior to jr_reset to avoid 'got IRQ but nobody cared' messages.

- disable IRQs in h/w to avoid contention between reset and
interrupt status

- delete invalid comment - if there were incomplete jobs,
module would be in use, preventing an unload.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/jr.c