diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2015-10-20 12:50:03 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-11-17 21:58:02 +0800 |
commit | b0c8bc1b9d8027093f8506266ab06c5cf0e5199f (patch) | |
tree | 373a9fe239aa90b1592798250c93d5797136dcf3 /drivers/crypto | |
parent | 79960943fdc114fd4583c9ab164b5c89da7aa601 (diff) | |
download | linux-b0c8bc1b9d8027093f8506266ab06c5cf0e5199f.tar.gz linux-b0c8bc1b9d8027093f8506266ab06c5cf0e5199f.tar.bz2 linux-b0c8bc1b9d8027093f8506266ab06c5cf0e5199f.zip |
crypto: qat - when stopping all devices make fure VF are stopped first
When stopping all devices make sure VFs are stopped before the
corresponding PF.
VFs will always be after PF so just need to loop back.
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/qat/qat_common/adf_ctl_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_ctl_drv.c b/drivers/crypto/qat/qat_common/adf_ctl_drv.c index 03856ad280b9..bd8dfa114c15 100644 --- a/drivers/crypto/qat/qat_common/adf_ctl_drv.c +++ b/drivers/crypto/qat/qat_common/adf_ctl_drv.c @@ -278,7 +278,7 @@ static int adf_ctl_stop_devices(uint32_t id) struct list_head *itr, *head = adf_devmgr_get_head(); int ret = 0; - list_for_each(itr, head) { + list_for_each_prev(itr, head) { struct adf_accel_dev *accel_dev = list_entry(itr, struct adf_accel_dev, list); if (id == accel_dev->accel_id || id == ADF_CFG_ALL_DEVICES) { |