i2c: designware: Use PCI PSP driver for communication
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 14 Apr 2023 14:40:07 +0000 (09:40 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 20 Apr 2023 10:20:05 +0000 (18:20 +0800)
commit440da737cf8d35a1b2205678cc1879fa90948f7a
treeac035f97f5f0234a5b0f211ed11e6ce763ca5d82
parent1560541631a6f3215d27aeea182a5682644d33ba
i2c: designware: Use PCI PSP driver for communication

Currently the PSP semaphore communication base address is discovered
by using an MSR that is not architecturally guaranteed for future
platforms.  Also the mailbox that is utilized for communication with
the PSP may have other consumers in the kernel, so it's better to
make all communication go through a single driver.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Mark Hasemeyer <markhas@chromium.org>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Tested-by: Mark Hasemeyer <markhas@chromium.org>
Acked-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/i2c/busses/Kconfig
drivers/i2c/busses/i2c-designware-amdpsp.c
drivers/i2c/busses/i2c-designware-core.h
drivers/i2c/busses/i2c-designware-platdrv.c
include/linux/psp-platform-access.h