On Mon, Jun 05, 2023 at 08:59:23AM +0800, Jianmin Lv wrote: > For a multi-function device, if func 0 is not allowed to be scanned, as I > said in way of 2, the other funcs of the device will be described as > platform devices instead of pci and be not scanned either, which is > acceptable for Loongson. The main goal by any way for us is to resolve the > problem that shared pins can not be used simultaneously by devices sharing > them. IMO, configure them in DT one by one may be reasonable, but adapting > each driver will be bothered. Could you give an example of PCIe functions being described as platform devices, and how does that work for Loongson? Are you saying that there will be 2 drivers for the same hardware, one pci_driver and one platform_driver? In the case of the platform_driver, who will do the PCI-specific stuff required by the IP, like function level reset and enabling the memory space?