mailbox: pcc: Use PCC mailbox channel pointer instead of standard
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 17 Sep 2021 13:33:50 +0000 (14:33 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 30 Oct 2021 03:46:38 +0000 (22:46 -0500)
commit7b6da7fe7bba1cdccdda871bf393b855e59404c3
tree0f8fc50e38075658533e399eb17f52dcc4e271f5
parent0f2591e21b2e85c05e2aa74d4703189fd3a57526
mailbox: pcc: Use PCC mailbox channel pointer instead of standard

Now that we have all the shared memory region information populated in
the pcc_mbox_chan, let us propagate the pointer to the same as the
return value to pcc_mbox_request channel.

This eliminates the need for the individual users of PCC mailbox to
parse the PCCT subspace entries and fetch the shmem information. This
also eliminates the need for PCC mailbox controller to set con_priv to
PCCT subspace entries. This is required as con_priv is private to the
controller driver to attach private data associated with the channel and
not meant to be used by the mailbox client/users.

Let us convert all the users of pcc_mbox_{request,free}_channel to use
new interface.

Cc: Jean Delvare <jdelvare@suse.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Wolfram Sang <wsa@kernel.org>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/acpi/cppc_acpi.c
drivers/hwmon/xgene-hwmon.c
drivers/i2c/busses/i2c-xgene-slimpro.c
drivers/mailbox/pcc.c
include/acpi/pcc.h