crypto: hisilicon/qm - modify 'QM_RESETTING' clearing error
authorWeili Qian <qianweili@huawei.com>
Sat, 15 May 2021 10:44:38 +0000 (18:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 23 May 2021 00:52:41 +0000 (08:52 +0800)
Before device reset, the driver sets 'QM_RESETTING' flag, but after reset,
the wrong flag is cleared. This patch modifies the problem of inconsistent
flags.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c

index 6a9c18f..09f0370 100644 (file)
@@ -4122,7 +4122,7 @@ flr_done:
        if (qm_flr_reset_complete(pdev))
                pci_info(pdev, "FLR reset complete\n");
 
-       clear_bit(QM_RESETTING, &qm->misc_ctl);
+       clear_bit(QM_RESETTING, &pf_qm->misc_ctl);
 }
 EXPORT_SYMBOL_GPL(hisi_qm_reset_done);