]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit25378d4cf98cc7f2b4c54a568da07de38ffbe49c
tree17e7c04bd2ace1f39ef94abb5889b723341ee413
parente321d3dfc8b6e1a21f1f09b6cac232773ac8486a
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