ACPI: PCC: Fix Tx acknowledge in the PCC address space handler
authorHuisong Li <lihuisong@huawei.com>
Tue, 20 Sep 2022 09:45:00 +0000 (17:45 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 22 Sep 2022 19:08:03 +0000 (21:08 +0200)
commit18729106c26fb97d4c9ae63ba7aba9889a058dc4
treee1c09efea8e6f3d9d016a7937d84e01e8ffdfc4d
parent91cefefb699120efd0a5ba345d12626b688f86ce
ACPI: PCC: Fix Tx acknowledge in the PCC address space handler

Currently, mbox_client_txdone() is called from the PCC address space
handler and that expects the user the Tx state machine to be controlled
by the client which is not the case and the below warning is thrown:

  | PCCT: Client can't run the TX ticker

Let the controller run the state machine and the end of Tx can be
acknowledge by calling mbox_chan_txdone() instead.

Fixes: 77e2a04745ff ("ACPI: PCC: Implement OperationRegion handler for the PCC Type 3 subtype")
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_pcc.c