diff options
author | Andrey Markovytch <andreym@codeaurora.org> | 2016-04-18 11:41:47 +0300 |
---|---|---|
committer | Jeevan Shriram <jshriram@codeaurora.org> | 2016-04-25 17:45:49 -0700 |
commit | fe9cbb77bf9b673eb3743b6986406c55e254c4ce (patch) | |
tree | ad6801820e9ef69af06720c9a2e205302e990a79 /drivers/crypto/msm | |
parent | e29851c910af605f1b42e9762cc830184826a93b (diff) |
crypto: ice: split the config callback
The requests configuration has to be split so clients can inform
ICE laeyr when the request is completed.
Rename the 'config' callback to 'config_start' and add
'config_end' callback.
Change-Id: Ife0b5b62805b827449a1bb1002348db445f03c60
Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
Diffstat (limited to 'drivers/crypto/msm')
-rw-r--r-- | drivers/crypto/msm/ice.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/crypto/msm/ice.c b/drivers/crypto/msm/ice.c index 348125afe5b1..3e856d0bbbe9 100644 --- a/drivers/crypto/msm/ice.c +++ b/drivers/crypto/msm/ice.c @@ -1363,8 +1363,9 @@ static int qcom_ice_reset(struct platform_device *pdev) return qcom_ice_finish_power_collapse(ice_dev); } -static int qcom_ice_config(struct platform_device *pdev, struct request *req, - struct ice_data_setting *setting) +static int qcom_ice_config_start(struct platform_device *pdev, + struct request *req, + struct ice_data_setting *setting, bool async) { struct ice_crypto_setting *crypto_data; struct ice_crypto_setting pfk_crypto_data = {0}; @@ -1392,7 +1393,7 @@ static int qcom_ice_config(struct platform_device *pdev, struct request *req, return 0; } - ret = pfk_load_key_start(req->bio, &pfk_crypto_data, &is_pfe, false); + ret = pfk_load_key_start(req->bio, &pfk_crypto_data, &is_pfe, async); if (is_pfe) { if (ret) { if (ret != -EBUSY && ret != -EAGAIN) @@ -1436,6 +1437,7 @@ static int qcom_ice_config(struct platform_device *pdev, struct request *req, */ return 0; } +EXPORT_SYMBOL(qcom_ice_config_start); static int qcom_ice_config_end(struct request *req) { @@ -1497,7 +1499,7 @@ struct qcom_ice_variant_ops qcom_ice_ops = { .reset = qcom_ice_reset, .resume = qcom_ice_resume, .suspend = qcom_ice_suspend, - .config = qcom_ice_config, + .config_start = qcom_ice_config_start, .config_end = qcom_ice_config_end, .status = qcom_ice_status, .debug = qcom_ice_debug, |