crypto: hisilicon/qm - adjust order of device error configuration
authorWeili Qian <qianweili@huawei.com>
Sat, 15 May 2021 10:44:39 +0000 (18:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 23 May 2021 00:52:41 +0000 (08:52 +0800)
commit3b9c24dec891d418e26032709d6f01fe3757a4a6
tree7ed93093448d064200a9876f9aad2ff4eb883153
parent3121f021c00aeed599d6f5d1c737b1bc8e6a05d8
crypto: hisilicon/qm - adjust order of device error configuration

In order to avoid reporting an exception but the error type is not
configured, the driver needs to configure the error type first, and then
enable the error interrupt. Before executing the task, hardware error
initialization is needed so that the hardware can detect the error in time.

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