]> www.infradead.org Git - users/willy/xarray.git/commit
i2c: xgene-slimpro: Simplify PCC shared memory region handling
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 11 Apr 2025 11:23:03 +0000 (12:23 +0100)
committerAndi Shyti <andi@smida.it>
Mon, 19 May 2025 20:23:54 +0000 (22:23 +0200)
commit7b174126124560f15e392fe5767face99e61ddb1
treecb0d8025a2e3e5c1e869455c294e8022de813024
parentb7a886e7e9e814e9fb30ec85935c098bf7f3d78d
i2c: xgene-slimpro: 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-slimpro I2C 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: Andi Shyti <andi.shyti@kernel.org>
Cc: linux-i2c@vger.kernel.org
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20250411112303.1149086-1-sudeep.holla@arm.com
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-xgene-slimpro.c