]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: hisilicon/qm - reset device before enabling it
authorWeili Qian <qianweili@huawei.com>
Sat, 31 Aug 2024 11:48:29 +0000 (19:48 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Sep 2024 06:50:46 +0000 (14:50 +0800)
commit5d2d1ee0874c26b8010ddf7f57e2f246e848af38
treedeb98e88d8e1f186d05d168350c04a19c6545ec4
parentf5dd7c43022799ac5c4e3a0d445f9c293a198413
crypto: hisilicon/qm - reset device before enabling it

Before the device is enabled again, the device may still
store the previously processed data. If an error occurs in
the previous task, the device may fail to be enabled again.
Therefore, before enabling device, reset the device to restore
the initial state.

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