Skip to content

Commit b59c4b3

Browse files
hotranrafaeljw
authored andcommitted
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: Hoan Tran <hotran@apm.com> Reviewed-by: Prashanth Prakash <pprakash@codeaurora.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 41dd640 commit b59c4b3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/acpi/cppc_acpi.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,10 @@ static int send_pcc_cmd(u16 cmd)
311311
if (pcc_data.pcc_mrtt)
312312
last_cmd_cmpl_time = ktime_get();
313313

314-
mbox_client_txdone(pcc_data.pcc_channel, ret);
314+
if (pcc_data.pcc_channel->mbox->txdone_irq)
315+
mbox_chan_txdone(pcc_data.pcc_channel, ret);
316+
else
317+
mbox_client_txdone(pcc_data.pcc_channel, ret);
315318

316319
end:
317320
if (cmd == CMD_WRITE) {

0 commit comments

Comments
 (0)