soc: hisilicon: kunpeng_hccs: Simplify PCC shared memory region handling
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 11 Apr 2025 11:25:39 +0000 (12:25 +0100)
committerWei Xu <xuwei5@hisilicon.com>
Mon, 21 Apr 2025 12:00:27 +0000 (12:00 +0000)
commit49da9105781d99db3650c5e9a0d58ed9526d07c7
treee97e20e8c8888499078fceaceaa88b86e14fdf23
parent0af2f6be1b4281385b618cb86ad946eded089ac8
soc: hisilicon: kunpeng_hccs: Simplify PCC shared memory region handling

The PCC driver now handles mapping and unmapping of shared memory
areas as part of pcc_mbox_{request,free}_channel(). Without these before,
this Kunpeng HCCS driver did handling of those mappings like several
other PCC mailbox client drivers.

There were redundant operations, leading to unnecessary code. Maintaining
the consistency across these driver was harder due to scattered handling
of shmem.

Just use the mapped shmem and remove all redundant operations from this
driver.

Cc: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Reviewed-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
drivers/soc/hisilicon/kunpeng_hccs.c
drivers/soc/hisilicon/kunpeng_hccs.h