soc: qcom: mdt_loader: Extract PAS operations
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 28 Jan 2022 02:55:08 +0000 (18:55 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 4 Feb 2022 03:54:48 +0000 (21:54 -0600)
commitf4e526ff7e38e27bb87d53131d227a6fd6f73ab5
tree56d58163590c5db2c1f8cce4090a81bc9710ee6f
parentebeb20a9cd3f045a3371ccf3782b6cbcce62a7c9
soc: qcom: mdt_loader: Extract PAS operations

Rather than passing a boolean to indicate if the PAS operations should
be performed from within __mdt_load(), extract them to their own helper
function.

This will allow clients to invoke this directly, with some
qcom_scm_pas_metadata context that they later needs to release, without
further having to complicate the prototype of qcom_mdt_load().

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20220128025513.97188-9-bjorn.andersson@linaro.org
drivers/soc/qcom/mdt_loader.c
include/linux/soc/qcom/mdt_loader.h