crypto: qat - disable IOV in adf_dev_stop()
authorMichal Witwicki <michal.witwicki@intel.com>
Wed, 17 Jul 2024 11:44:57 +0000 (07:44 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Aug 2024 13:11:20 +0000 (21:11 +0800)
commitb6c7d36292d50627dbe6a57fa344f87c776971e6
tree9b9a5c159b2440838f027fe4779f30f66d8073a8
parent4e190a5740aedc37654335089e7923bc8109dc3a
crypto: qat - disable IOV in adf_dev_stop()

Disabling IOV has the side effect of re-enabling the AEs that might
attempt to do DMAs into the heartbeat buffers.
Move the disable_iov() function in adf_dev_stop() before the AEs are
stopped.

Fixes: ed8ccaef52fa ("crypto: qat - Add support for SRIOV")
Signed-off-by: Michal Witwicki <michal.witwicki@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/qat/qat_common/adf_init.c