Commit 7c258f50 authored by Marco Chiappero's avatar Marco Chiappero Committed by Herbert Xu

crypto: qat - complete all the init steps before service notification

Make sure all the steps in the initialization sequence are complete
before any completion event notification.
Signed-off-by: default avatarMarco Chiappero <marco.chiappero@intel.com>
Co-developed-by: default avatarGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: default avatarGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: default avatarFiona Trahe <fiona.trahe@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 0b7b6c19
...@@ -110,6 +110,11 @@ int adf_dev_init(struct adf_accel_dev *accel_dev) ...@@ -110,6 +110,11 @@ int adf_dev_init(struct adf_accel_dev *accel_dev)
set_bit(ADF_STATUS_IRQ_ALLOCATED, &accel_dev->status); set_bit(ADF_STATUS_IRQ_ALLOCATED, &accel_dev->status);
hw_data->enable_ints(accel_dev); hw_data->enable_ints(accel_dev);
hw_data->enable_error_correction(accel_dev);
ret = hw_data->enable_vf2pf_comms(accel_dev);
if (ret)
return ret;
/* /*
* Subservice initialisation is divided into two stages: init and start. * Subservice initialisation is divided into two stages: init and start.
...@@ -127,10 +132,7 @@ int adf_dev_init(struct adf_accel_dev *accel_dev) ...@@ -127,10 +132,7 @@ int adf_dev_init(struct adf_accel_dev *accel_dev)
set_bit(accel_dev->accel_id, service->init_status); set_bit(accel_dev->accel_id, service->init_status);
} }
hw_data->enable_error_correction(accel_dev); return 0;
ret = hw_data->enable_vf2pf_comms(accel_dev);
return ret;
} }
EXPORT_SYMBOL_GPL(adf_dev_init); EXPORT_SYMBOL_GPL(adf_dev_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment