OSDN Git Service

crypto: hisilicon - add FLR support
authorShukun Tan <tanshukun1@huawei.com>
Sat, 9 May 2020 09:43:59 +0000 (17:43 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2020 06:15:02 +0000 (16:15 +1000)
commit7ce396fa12a96a0e709a7b55cd5ab24161259634
tree97ae3c46182ca0ca9be9c7176c0928a1df16f3b2
parentb67202e8ed30bfa07b07a6f8fc762417a9a4e6de
crypto: hisilicon - add FLR support

Add callback reset_prepare and reset_done in QM, The callback
reset_prepare will uninit device error configuration and stop
the QM, the callback reset_done will init the device error
configuration and restart the QM.

Uninit the error configuration will disable device block master OOO
when Multi-bit ECC error occurs to avoid the request of FLR will not
return.

Signed-off-by: Shukun Tan <tanshukun1@huawei.com>
Reviewed-by: Zhou Wang <wangzhou1@hisilicon.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/qm.h
drivers/crypto/hisilicon/sec2/sec_main.c
drivers/crypto/hisilicon/zip/zip_main.c