why early_quirks only scan first 32 pci bus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jesse,

Sorry to disturb you. This is a question needs you help:

In file: $(KERNEL_SRC)/arch/x86/kernel/early-quirks.c
function early_quirks:
---
void __init early_quirks(void)
{
        int num, slot, func;

        if (!early_pci_allowed())
                return;

        /* Poor man's PCI discovery */
=>      for (num = 0; num < 32; num++)
                for (slot = 0; slot < 32; slot++)
                        for (func = 0; func < 8; func++) {
                                /* Only probe function 0 on single fn
devices */
                                if (check_dev_quirk(num, slot, func))
                                        break;
                        }
}
---

Why we only scan first 32 pci bus? We know in spec there are 256 pci
bus.

Thanks,
- Crane

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux