• Sibi Sankar's avatar
    remoteproc: qcom: q6v5-mss: Refactor mba load/unload sequence · 0304530d
    Sibi Sankar authored
    Refactor re-useable parts of mba load/unload sequence into mba_load and
    mba_reclaim respectively. This is done in order to prevent code duplication
    for modem coredump, which requires the mba to be loaded before dumping
    the segments. The following changes in functionality are intended:
    
    * Add software bypass to avoid high MX current in mpss error path.
    * Remove the proxy votes of clk/regs only after the active/reset clks/regs.
    * Reclaim MBA memory after mpss_load failure in mba_reclaim func.
    * Set/Unset the dump_mba_loaded flag on mba_load/mba_reclaim respectively.
    Signed-off-by: default avatarSibi Sankar <sibis@codeaurora.org>
    Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
    0304530d
qcom_q6v5_mss.c 34.2 KB