mailbox: pcc: Avoid accessing PCCT table in pcc_send_data and pcc_mbox_irq
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 17 Sep 2021 13:33:53 +0000 (14:33 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 30 Oct 2021 03:46:38 +0000 (22:46 -0500)
commitbf18123e78f4d13fc0105b1ddb4b46c1665dd025
treee95b35a57614b59cae258757016d8f79f025026e
parent800cda7b63f22be62e67142f1202d2ead2dff2e8
mailbox: pcc: Avoid accessing PCCT table in pcc_send_data and pcc_mbox_irq

Now that the con_priv is availvale solely for PCC mailbox controller
driver, let us use the same to save the channel specific information
in it so that we can it whenever required instead of parsing the PCCT
table entries every time in both pcc_send_data and pcc_mbox_irq.

We can now use the newly introduces PCC register bundle to simplify both
saving of channel specific information and accessing them without repeated
checks for the subspace type.

Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/pcc.c