crypto: qat - remove ADF_STATUS_PF_RUNNING flag from probe
PATCH 1/1 crypto: qat - remove ADF_STATUS_PF_RUNNING flag from probe
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 <[email protected]>
Reviewed-by Giovanni Cabiddu <[email protected]>
Reviewed-by Wojciech Ziemba <[email protected]>
--- drivers/crypto/qat/qat_c3xxxvf/adf_drv.c | 2 -- drivers/crypto/qat/qat_c62xvf/adf_drv.c | 2 -- drivers/crypto/qat/qat_dh895xccvf/adf_drv.c | 2 -- 3 files changed, 6 deletions(-)
drivers/crypto/qat/qat_c3xxxvf/adf_drv.c +0 -2
@@ -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;
drivers/crypto/qat/qat_c62xvf/adf_drv.c +0 -2
@@ -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;
drivers/crypto/qat/qat_dh895xccvf/adf_drv.c +0 -2
@@ -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;
Signature · 1 line
2.16.4
Herbert Xu
maintainerQuoted 5 lines · Shashank Gupta
The
ADF_STATUS_PF_RUNNINGbit is set after the successful initialization of the communication between VF to PF inadf_vf2pf_notify_init(). So, it is not required to be set after the execution of the functionadf_dev_init().
Quoted 8 lines
Signed-off-by Shashank Gupta <[email protected]>Reviewed-by Giovanni Cabiddu <[email protected]>Reviewed-by Wojciech Ziemba <[email protected]>--- drivers/crypto/qat/qat_c3xxxvf/adf_drv.c | 2 -- drivers/crypto/qat/qat_c62xvf/adf_drv.c | 2 -- drivers/crypto/qat/qat_dh895xccvf/adf_drv.c | 2 -- 3 files changed, 6 deletions(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt