crypto: omap-sham - irq and dma handling changes
authorDmitry Kasatkin <dmitry.kasatkin@nokia.com>
Thu, 2 Jun 2011 18:10:10 +0000 (21:10 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Jun 2011 23:44:04 +0000 (07:44 +0800)
commit6c63db821d4663c92cd326f6adb8f3d627971a53
tree733b36b077b4cca37f2f9d7846745564ed8fc2f2
parent6cb3ffe100ef4c6d5be0bfe4f8ac6d4227bb91bd
crypto: omap-sham - irq and dma handling changes

It could be a situation, that tasklet is executed twice because of
certain delay between dma callback and irq handler execution.
In that case, second tasklet execution could actually corrupt the data
of the new started dma transactions.

This patch improves tasklet logic and prevents above described cases.

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c