Skip to content

Commit 72fe996

Browse files
Sibi Sankarandersson
authored andcommitted
soc: qcom: pdr: Reorder the PD state indication ack
The Protection Domains (PD) have a mechanism to keep its resources enabled until the PD down indication is acked. Reorder the PD state indication ack so that clients get to release the relevant resources before the PD goes down. Reviewed-by: Bjorn Andersson <[email protected]> Reviewed-by: Rishabh Bhatnagar <[email protected]> Fixes: fbe639b ("soc: qcom: Introduce Protection Domain Restart helpers") Reported-by: Rishabh Bhatnagar <[email protected]> Signed-off-by: Sibi Sankar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent f935a75 commit 72fe996

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/soc/qcom/pdr_interface.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,15 @@ static void pdr_indack_work(struct work_struct *work)
278278

279279
list_for_each_entry_safe(ind, tmp, &pdr->indack_list, node) {
280280
pds = ind->pds;
281-
pdr_send_indack_msg(pdr, pds, ind->transaction_id);
282281

283282
mutex_lock(&pdr->status_lock);
284283
pds->state = ind->curr_state;
285284
pdr->status(pds->state, pds->service_path, pdr->priv);
286285
mutex_unlock(&pdr->status_lock);
287286

287+
/* Ack the indication after clients release the PD resources */
288+
pdr_send_indack_msg(pdr, pds, ind->transaction_id);
289+
288290
mutex_lock(&pdr->list_lock);
289291
list_del(&ind->node);
290292
mutex_unlock(&pdr->list_lock);

0 commit comments

Comments
 (0)