crypto: hisilicon - Unify hardware error init/uninit into QM
authorShukun Tan <tanshukun1@huawei.com>
Mon, 20 Jan 2020 07:30:06 +0000 (15:30 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Feb 2020 08:58:08 +0000 (16:58 +0800)
commiteaebf4c3b103dfc3c00dd3b6d3966fb9e08777ce
tree04c6532a52943dd6d5faa7adc6e51c8e0ba472cd
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
crypto: hisilicon - Unify hardware error init/uninit into QM

The initialization and uninitialization of zip/hpre/sec/qm hardware error
is processed in respective drivers, which could be unified into qm.c. We
add struct hisi_qm_err_ini into struct hisi_qm, which involve all error
handlers of device and assignment should be done in driver probe.

Signed-off-by: Shukun Tan <tanshukun1@huawei.com>
Signed-off-by: Zaibo Xu <xuzaibo@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