crypto: hisilicon - using 'debugfs_create_file' instead of 'debugfs_create_regset32'
authorWeili Qian <qianweili@huawei.com>
Fri, 13 Aug 2021 09:50:05 +0000 (17:50 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 21 Aug 2021 07:44:58 +0000 (15:44 +0800)
commit1295292d65b729fc8b234fcdf884d79ff5a63ca1
tree17e7c04bd2ace1f39ef94abb5889b723341ee413
parent357a753f5ec7ccdec196fa825d906c3acc4bd57c
crypto: hisilicon - using 'debugfs_create_file' instead of 'debugfs_create_regset32'

The accelerator devices support runtime PM, when device is in suspended, an
exception will occur if reading registers. Therefore, this patch uses
'debugfs_create_file' instead of 'debugfs_create_regset32' to create
debugfs file, and then the driver can get the device status before
reading the register.

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/qm.h
drivers/crypto/hisilicon/sec2/sec_main.c
drivers/crypto/hisilicon/zip/zip_main.c