spi: spi_amd: Add PCI-based driver for AMD HID2 SPI controller
Subsystems (2)
Raju Rangoju
maintainerPATCH 1/1 spi: spi_amd: Add PCI-based driver for AMD HID2 SPI controller
Register a new driver(spi_amd_pci) for the HID2 SPI controller using the PCI ID of the LPC bridge device.
Add a new common probe function in spi_amd driver to encapsulate the code required for registering the controller driver. This function will be utilized by both the existing ACPI driver and the newly introduced PCI-based driver for the HID2 SPI controller. The MMIO register base address of the HID2 SPI controller can be obtained from the PCI LPC bridge registers.
By implementing these changes, the DMA buffer will be correctly associated with the LPC bridge device, preventing IO_PAGE_FAULT caused by IOMMU when the LPC bridge attempts DMA operations on addresses owned by the HID2 SPI controller.
--- MAINTAINERS | 2 + drivers/spi/Makefile | 2 +- drivers/spi/spi-amd-pci.c | 70 +++++++++++++++++++++++++++++++++++ drivers/spi/spi-amd.c | 78 +++++++++++++++------------------------ drivers/spi/spi-amd.h | 44 ++++++++++++++++++++++ 5 files changed, 147 insertions(+), 49 deletions(-) create mode 100644 drivers/spi/spi-amd-pci.c create mode 100644 drivers/spi/spi-amd.h
MAINTAINERS +2 -0
@@ -1216,7 +1216,9 @@ AMD SPI DRIVER M: Raju Rangoju <[email protected]> L: [email protected] S: Supported +F: drivers/spi/spi-amd-pci.c F: drivers/spi/spi-amd.c +F: drivers/spi/spi-amd.h AMD XDNA DRIVER M: Min Ma <[email protected]>
drivers/spi/Makefile +1 -1
@@ -162,7 +162,7 @@ obj-$(CONFIG_SPI_XLP) += spi-xlp.o obj-$(CONFIG_SPI_XTENSA_XTFPGA) += spi-xtensa-xtfpga.o obj-$(CONFIG_SPI_ZYNQ_QSPI) += spi-zynq-qspi.o obj-$(CONFIG_SPI_ZYNQMP_GQSPI) += spi-zynqmp-gqspi.o -obj-$(CONFIG_SPI_AMD) += spi-amd.o +obj-$(CONFIG_SPI_AMD) += spi-amd.o spi-amd-pci.o # SPI slave protocol handlers obj-$(CONFIG_SPI_SLAVE_TIME) += spi-slave-time.o
drivers/spi/spi-amd-pci.c new file +70 -0
70 lines not on this page · raw message
drivers/spi/spi-amd.c +30 -48
112 lines not on this page · raw message
drivers/spi/spi-amd.h new file +44 -0
44 lines not on this page · raw message
Signature · 1 line
2.34.1
Mark Brown
maintainerQuoted 11 lines · Raju Rangoju
Register a new
driver(spi_amd_pci)for the HID2 SPI controller using the PCI ID of the LPC bridge device.Add a new common probe function in
spi_amddriver to encapsulate the code required for registering the controller driver. This function will be utilized by both the existing ACPI driver and the newly introduced PCI-based driver for the HID2 SPI controller. The MMIO register base address of the HID2 SPI controller can be obtained from the PCI LPC bridge registers.[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/1] spi: spi_amd: Add PCI-based driver for AMD HID2 SPI controller
commit: b644c2776652671256edcd7a8e71161e212b59ac
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark