Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b59c4b3d authored by Hoan Tran's avatar Hoan Tran Committed by Rafael J. Wysocki
Browse files

ACPI / CPPC: Support PCC with interrupt flag



For PCC mailbox with interrupt flag, CPPC should call mbox_chan_txdone()
function to notify the mailbox framework about TX completion.

Signed-off-by: default avatarHoan Tran <hotran@apm.com>
Reviewed-by: default avatarPrashanth Prakash <pprakash@codeaurora.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 41dd6403
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -311,6 +311,9 @@ static int send_pcc_cmd(u16 cmd)
	if (pcc_data.pcc_mrtt)
		last_cmd_cmpl_time = ktime_get();

	if (pcc_data.pcc_channel->mbox->txdone_irq)
		mbox_chan_txdone(pcc_data.pcc_channel, ret);
	else
		mbox_client_txdone(pcc_data.pcc_channel, ret);

end: