of: unittest: Add pci_dt_testdrv pci driver
authorLizhi Hou <lizhi.hou@amd.com>
Tue, 15 Aug 2023 17:20:00 +0000 (10:20 -0700)
committerRob Herring <robh@kernel.org>
Tue, 22 Aug 2023 19:56:10 +0000 (14:56 -0500)
commit26409dd045892904b059dc411403e9c8ce7543ca
tree2eaccdffab9fe454d5642dbe92371009e785ade9
parent47284862bfc7fd5672e731e827f43f26bdbd155c
of: unittest: Add pci_dt_testdrv pci driver

pci_dt_testdrv is bound to QEMU PCI Test Device. It reads
overlay_pci_node fdt fragment and apply it to Test Device. Then it
calls of_platform_default_populate() to populate the platform
devices.

Tested-by: Herve Codina <herve.codina@bootlin.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://lore.kernel.org/r/1692120000-46900-6-git-send-email-lizhi.hou@amd.com
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/unittest-data/Makefile
drivers/of/unittest-data/overlay_pci_node.dtso [new file with mode: 0644]
drivers/of/unittest.c
drivers/pci/quirks.c