summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/qat/qat_c3xxxvf
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2016-04-15 10:37:59 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2016-04-18 18:49:51 +0800
commit25c6ffb249f612c56a48ce48a3887adf57b8f4bd (patch)
tree07ed8b28f2cff9088ed74eea049757cadce16393 /drivers/crypto/qat/qat_c3xxxvf
parent02dc8d634b4f175d92aa8b0b217eb0e4db1a0c3b (diff)
downloadlinux-25c6ffb249f612c56a48ce48a3887adf57b8f4bd.tar.gz
linux-25c6ffb249f612c56a48ce48a3887adf57b8f4bd.tar.bz2
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_c3xxxvf')
-rw-r--r--drivers/crypto/qat/qat_c3xxxvf/adf_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/qat/qat_c3xxxvf/adf_drv.c b/drivers/crypto/qat/qat_c3xxxvf/adf_drv.c
index a998981e9610..949d77b79fbe 100644
--- a/drivers/crypto/qat/qat_c3xxxvf/adf_drv.c
+++ b/drivers/crypto/qat/qat_c3xxxvf/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;