summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/qat/qat_c62xvf
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2016-04-15 19:37:59 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2016-04-18 12:49:51 +0200
commit25c6ffb249f612c56a48ce48a3887adf57b8f4bd (patch)
tree07ed8b28f2cff9088ed74eea049757cadce16393 /drivers/crypto/qat/qat_c62xvf
parentcrypto: qat - move vf2pf_init and vf2pf_exit to common (diff)
downloadlinux-25c6ffb249f612c56a48ce48a3887adf57b8f4bd.tar.xz
linux-25c6ffb249f612c56a48ce48a3887adf57b8f4bd.zip
crypto: qat - check if PF is running
Before VF sends a signal to PF it should check if PF is still running. Tested-by: Suman Bangalore Sathyanarayana <sumanx.bangalore.sathyanarayana@intel.com> Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qat/qat_c62xvf')
-rw-r--r--drivers/crypto/qat/qat_c62xvf/adf_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/qat/qat_c62xvf/adf_drv.c b/drivers/crypto/qat/qat_c62xvf/adf_drv.c
index ccfb25e8a4a1..7540ce13b0d0 100644
--- a/drivers/crypto/qat/qat_c62xvf/adf_drv.c
+++ b/drivers/crypto/qat/qat_c62xvf/adf_drv.c
@@ -238,6 +238,8 @@ static int adf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
if (ret)
goto out_err_free_reg;
+ set_bit(ADF_STATUS_PF_RUNNING, &accel_dev->status);
+
ret = adf_dev_init(accel_dev);
if (ret)
goto out_err_dev_shutdown;