]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: qat - remove ADF_STATUS_PF_RUNNING flag from probe
authorShashank Gupta <shashank.gupta@intel.com>
Fri, 4 Nov 2022 17:21:07 +0000 (13:21 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 11 Nov 2022 10:14:59 +0000 (18:14 +0800)
The ADF_STATUS_PF_RUNNING bit is set after the successful initialization
of the communication between VF to PF in adf_vf2pf_notify_init().
So, it is not required to be set after the execution of the function
adf_dev_init().

Signed-off-by: Shashank Gupta <shashank.gupta@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Wojciech Ziemba <wojciech.ziemba@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_c3xxxvf/adf_drv.c
drivers/crypto/qat/qat_c62xvf/adf_drv.c
drivers/crypto/qat/qat_dh895xccvf/adf_drv.c

index fa18d8009f533e3bd561baee7c60bc65490a4dbc..cf4ef83e186f835a7edf85ce461869eba43f28b9 100644 (file)
@@ -177,8 +177,6 @@ static int adf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        if (ret)
                goto out_err_dev_shutdown;
 
-       set_bit(ADF_STATUS_PF_RUNNING, &accel_dev->status);
-
        ret = adf_dev_start(accel_dev);
        if (ret)
                goto out_err_dev_stop;
index 686ec752d0e9e8c316904837ff4c265668065f2b..0e642c94b92936bce3a0e92656c3b9865a3617e9 100644 (file)
@@ -177,8 +177,6 @@ static int adf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        if (ret)
                goto out_err_dev_shutdown;
 
-       set_bit(ADF_STATUS_PF_RUNNING, &accel_dev->status);
-
        ret = adf_dev_start(accel_dev);
        if (ret)
                goto out_err_dev_stop;
index 18756b2e1c91276a18147f3dd320e47f86f48636..c1485e702b3eb5ab2e00cb8a55a6b36498e38369 100644 (file)
@@ -177,8 +177,6 @@ static int adf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        if (ret)
                goto out_err_dev_shutdown;
 
-       set_bit(ADF_STATUS_PF_RUNNING, &accel_dev->status);
-
        ret = adf_dev_start(accel_dev);
        if (ret)
                goto out_err_dev_stop;