Re: [PATCH v2 6/7] PCI: Make sure VF's driver get attached after PF's

From: Yinghai Lu
Date: Mon May 20 2013 - 12:02:05 EST


On Mon, May 20, 2013 at 5:58 AM, Eliezer Tamir
<eliezer.tamir@xxxxxxxxxxxxxxx> wrote:
>>
> Maybe do the following:
> 1. split the VF PCI IDs into a separate PCI_ID device table.
> 2. have two pci_driver structs, one for all of the PF IDS and one with the
> VF IDS.
> 3. only register the first pci_driver struct from mlx4_init().
> 4. register the one for the VFs once your PFs are all up and ready.

that may help booting path that have driver built-in, or first time
load driver path.

For driver already loaded, and hotadd path, the problem is still there.

Yinghai
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/