OSDN Git Service

crypto: hisilicon/qm - modify the handling method after abnormal interruption
authorWeili Qian <qianweili@huawei.com>
Sat, 11 Dec 2021 11:25:16 +0000 (19:25 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 17 Dec 2021 05:59:49 +0000 (16:59 +1100)
commit145dcedd0e17f40bd8066a0234a19e40463367db
tree30c012902448906399c1454d7e929f271c6e9da2
parent9ee401eaceddb3e96fb72ef097175fcaaa1fb37a
crypto: hisilicon/qm - modify the handling method after abnormal interruption

After processing an interrupt event and the interrupt function is
enabled by writing the QM_DOORBELL_CMD_AEQ register, the hardware
may generate new interrupt events due to processing other user's task
when the subsequent interrupt events have not been processed. The new
interrupt event will disrupt the current normal processing flow and
cause other problems.

Therefore, the operation of writing the QM_DOORBELL_CMD_AEQ doorbell
register needs to be placed after all interrupt events processing
are completed.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c