]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (xgene-hwmon) Simplify PCC shared memory region handling
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 11 Apr 2025 11:20:53 +0000 (12:20 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 23 Apr 2025 14:18:27 +0000 (07:18 -0700)
commit80fcd1e7f5c7009fa1c64737df100cc304c19c1f
tree8c07559bf90d14ca6d1145a7f587bfd6c7f56c01
parent56591083846b8f4203234faf52de7a89f038ceeb
hwmon: (xgene-hwmon) 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 xgene hwmon 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: Jean Delvare <jdelvare@suse.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: linux-hwmon@vger.kernel.org
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Link: https://lore.kernel.org/r/20250411112053.1148624-1-sudeep.holla@arm.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/xgene-hwmon.c