OSDN Git Service

crypto: qat - relocate and rename adf_sriov_prepare_restart()
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Mon, 27 Jun 2022 08:36:51 +0000 (09:36 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 Jul 2022 07:15:59 +0000 (15:15 +0800)
commit16c1ed95d1c4956e428c8daa2783bcc7fa7f6fb9
tree763957058d9b456ceb49fdebb7fc01ca601ad2cf
parent92bf269fbfe94018f15405e1644049de7c7b46dd
crypto: qat - relocate and rename adf_sriov_prepare_restart()

The function adf_sriov_prepare_restart() is used in adf_sriov.c to stop
and shutdown a device preserving its configuration.

Since this function will be re-used by the logic that allows to
reconfigure the device through sysfs, move it to adf_init.c and rename
it as adf_dev_shutdown_cache_cfg();

Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Adam Guerin <adam.guerin@intel.com>
Reviewed-by: Fiona Trahe <fiona.trahe@intel.com>
Reviewed-by: Wojciech Ziemba <wojciech.ziemba@intel.com>
Reviewed-by: Vladis Dronov <vdronov@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_common_drv.h
drivers/crypto/qat/qat_common/adf_init.c
drivers/crypto/qat/qat_common/adf_sriov.c