I use DM8168 PCIESS as RC,C6678 as an EP, there is an error when I use pci_enable_device() function:
PCI: Device 0000:01:00.0 not available because of resource collisions
Init: Device not enabled.
this is some information when the kernel boot:ing
ti81xx_pcie: Invoking PCI BIOS...
ti81xx_pcie: Setting up Host Controller...
ti81xx_pcie: Register base mapped @0xcb820000
ti81xx_pcie: Starting PCI scan...
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers disabled
pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x20ffffff]
pci 0000:00:00.0: BAR 9: assigned [mem 0x21000000-0x211fffff pref]
pci 0000:00:00.0: PCI bridge to [bus 01-01]
pci 0000:00:00.0: bridge window [io disabled]
pci 0000:00:00.0: bridge window [mem 0x20000000-0x20ffffff]
pci 0000:00:00.0: bridge window [mem 0x21000000-0x211fffff pref]
PCI: enabling device 0000:00:00.0 (0140 -> 0143)
and there is some infomation when I use lspci -v :
lspci -v
00:00.0 Class 0604: Device 104c:b800 (rev 01)
Flags: bus master, fast devsel, latency 0
Memory at <ignored> (32-bit, non-prefetchable)
Memory at <ignored> (32-bit, prefetchable)
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Prefetchable memory behind bridge: 20000000-201fffff
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Root Port (Slot-), MSI 00
Capabilities: [100] Advanced Error Reporting
01:00.0 Class 0000: Device 104c:8888 (rev 01)
Flags: bus master, fast devsel, latency 0, IRQ 48
Memory at <unassigned> (32-bit, non-prefetchable) [size=256M]
Memory at 20000000 (32-bit, non-prefetchable) [size=256M]
Memory at <unassigned> (32-bit, prefetchable) [size=1M]
Memory at <unassigned> (32-bit, prefetchable) [size=64K]
Memory at <unassigned> (32-bit, prefetchable) [size=4K]
Memory at <unassigned> (32-bit, prefetchable) [size=64K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit-
I want to konw why and how to solve it,can you help me?
thank you