On 11/13/2026 10:50 AM, Mukesh Ojha wrote: > ath12k_ahb_power_up() calls qcom_mdt_load(), which bundles metadata > initialization, memory setup, and segment loading into a single API that > does not expose a PAS context. Later it calls qcom_pas_auth_and_reset() for > TrustZone authentication, which is the intended behaviour. However, a new > qcom_mdt_pas_load() has recently been introduced that works with a PAS > context and can handle everything qcom_mdt_load() provides, along with > additional functionality such as shmbridge creation and retrieving memory > from the shmbridge buffer when the same remote processor needs to run while > Linux runs at EL2. > > Replace qcom_mdt_load() with qcom_pas_context_init() + > qcom_mdt_pas_load() and replace qcom_pas_auth_and_reset() with > qcom_pas_prepare_and_auth_reset(), using a stack-allocated struct > qcom_pas_context in ath12k_ahb_power_up(). The non-scm_auth path > retains qcom_mdt_load_no_init() with the caller-provided mem_region. > > Apply the same pattern to ath12k_ahb_load_auth_shared_fw() for > consistency. > > Signed-off-by: Mukesh Ojha <[email protected]>
Acked-by: Jeff Johnson <[email protected]>
