diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2015-08-07 11:34:25 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-08-10 23:20:16 +0800 |
commit | ed8ccaef52fa03fb03cff45b380f72c9f869f273 (patch) | |
tree | 5167f1c5a30a07783ce623b82af46ac5dce8fff5 /drivers/crypto/qat/qat_common/adf_aer.c | |
parent | a57331394cf5228555dbf4bca21abb2fc1597f04 (diff) | |
download | lwn-ed8ccaef52fa03fb03cff45b380f72c9f869f273.tar.gz lwn-ed8ccaef52fa03fb03cff45b380f72c9f869f273.zip |
crypto: qat - Add support for SRIOV
Add code that enables SRIOV on dh895xcc devices.
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_common/adf_aer.c')
-rw-r--r-- | drivers/crypto/qat/qat_common/adf_aer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_aer.c b/drivers/crypto/qat/qat_common/adf_aer.c index 8f34a5fce72a..a57b4194de28 100644 --- a/drivers/crypto/qat/qat_common/adf_aer.c +++ b/drivers/crypto/qat/qat_common/adf_aer.c @@ -91,6 +91,9 @@ static void adf_dev_restore(struct adf_accel_dev *accel_dev) dev_info(&GET_DEV(accel_dev), "Resetting device qat_dev%d\n", accel_dev->accel_id); + if (!parent) + parent = pdev; + if (!pci_wait_for_pending_transaction(pdev)) dev_info(&GET_DEV(accel_dev), "Transaction still in progress. Proceeding\n"); |