Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Hoan Tran and committed by
Rafael J. Wysocki
b59c4b3d 41dd6403

+4 -1
+4 -1
drivers/acpi/cppc_acpi.c
··· 311 311 if (pcc_data.pcc_mrtt) 312 312 last_cmd_cmpl_time = ktime_get(); 313 313 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); 315 318 316 319 end: 317 320 if (cmd == CMD_WRITE) {