diff options
author | Giovanni Cabiddu <giovanni.cabiddu@intel.com> | 2021-08-12 21:21:29 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-08-21 15:44:57 +0800 |
commit | 598cf42554749a7c59205879fd6e06ef6d021d94 (patch) | |
tree | eebdb6eb6548fa1186d2dccc84b65a57a2de4663 /drivers/crypto/qat | |
parent | 645ae0af1840199086c33e4f841892ebee73f615 (diff) | |
download | linux-stable-598cf42554749a7c59205879fd6e06ef6d021d94.tar.gz linux-stable-598cf42554749a7c59205879fd6e06ef6d021d94.tar.bz2 linux-stable-598cf42554749a7c59205879fd6e06ef6d021d94.zip |
crypto: qat - store vf.compatible flag
If the VF is newer than the PF, it decides whether it is compatible or
not. In case it is compatible, store that information in the
vf.compatible flag in the accel_dev structure.
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Suggested-by: Fiona Trahe <fiona.trahe@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qat')
-rw-r--r-- | drivers/crypto/qat/qat_common/adf_pf2vf_msg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_pf2vf_msg.c b/drivers/crypto/qat/qat_common/adf_pf2vf_msg.c index 2670995b097f..976b9ab7617c 100644 --- a/drivers/crypto/qat/qat_common/adf_pf2vf_msg.c +++ b/drivers/crypto/qat/qat_common/adf_pf2vf_msg.c @@ -346,8 +346,10 @@ static int adf_vf2pf_request_version(struct adf_accel_dev *accel_dev) break; case ADF_PF2VF_VF_COMPAT_UNKNOWN: /* VF is newer than PF and decides whether it is compatible */ - if (accel_dev->vf.pf_version >= hw_data->min_iov_compat_ver) + if (accel_dev->vf.pf_version >= hw_data->min_iov_compat_ver) { + accel_dev->vf.compatible = ADF_PF2VF_VF_COMPATIBLE; break; + } fallthrough; case ADF_PF2VF_VF_INCOMPATIBLE: dev_err(&GET_DEV(accel_dev), |