]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: qat - factor out AER reset helpers
authorAhsan Atta <ahsan.atta@intel.com>
Wed, 13 May 2026 15:16:58 +0000 (17:16 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 May 2026 12:25:29 +0000 (20:25 +0800)
commit56707afb92fee371c0f2e04332c9aa03cdb89793
tree2f93922e37d16de21eac0f4616371da846281b22
parent9676657117b79f88c22875680c36d7da84b75eca
crypto: qat - factor out AER reset helpers

Move the shutdown and recovery sequences out of adf_error_detected()
and adf_slot_reset() into reset_prepare() and reset_done() helpers.

This makes the AER recovery path easier to follow and prepares the
common reset flow for reuse by additional PCI reset callbacks without
duplicating the logic.

No functional change intended.

Cc: stable@vger.kernel.org
Signed-off-by: Ahsan Atta <ahsan.atta@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Damian Muszynski <damian.muszynski@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/qat/qat_common/adf_aer.c