ZIP/HPRE/SEC hardware error handle process has great similarities, unify the essential error handle process looks necessary. We mainly unify error init/uninit and error detect process in this patch set. We also add the configure of ZIP RAS error and fix qm log error bug. Shukun Tan (4): crypto: hisilicon: Unify hardware error init/uninit into QM crypto: hisilicon: Configure zip RAS error type crypto: hisilicon: Unify error detect process into qm crypto: hisilicon: Fix duplicate print when qm occur multiple errors drivers/crypto/hisilicon/hpre/hpre_main.c | 108 +++++---------- drivers/crypto/hisilicon/qm.c | 216 +++++++++++++++++++++--------- drivers/crypto/hisilicon/qm.h | 25 +++- drivers/crypto/hisilicon/sec2/sec_main.c | 162 ++++++++-------------- drivers/crypto/hisilicon/zip/zip_main.c | 183 +++++++++++-------------- 5 files changed, 346 insertions(+), 348 deletions(-) -- 2.7.4