]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9f4240822320298d0b362db00eef197fe896d345
tree97ae3c46182ca0ca9be9c7176c0928a1df16f3b2
parenta74fb34297c8b0511c326aec3346eb2ae48eab09
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