From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 20 Jun 2018 11:51:56 -0600 Subject: [U-Boot] [PATCH 4/5] x86: efi-x86_payload: Enumerate PCI bus during early boot In-Reply-To: <1529240273-32045-4-git-send-email-bmeng.cn@gmail.com> References: <1529240273-32045-1-git-send-email-bmeng.cn@gmail.com> <1529240273-32045-4-git-send-email-bmeng.cn@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Bin, On 17 June 2018 at 06:57, Bin Meng wrote: > The generic efi payload currently does not enumerate the PCI bus, > which means peripherals on the PCI bus are not discovered by their > drivers. This uses board_early_init_r() to do the PCI enumeration. > > Signed-off-by: Bin Meng > --- > > board/efi/efi-x86_payload/Kconfig | 1 + > board/efi/efi-x86_payload/Makefile | 2 +- > board/efi/efi-x86_payload/payload.c | 18 ++++++++++++++++++ > 3 files changed, 20 insertions(+), 1 deletion(-) > create mode 100644 board/efi/efi-x86_payload/payload.c I would like to consider adding a mechanism to indicate that a uclass should be inited (and its devices probed) on startup. This would be used for things which provide essential peripherals, which otherwise would not be visible in the initial driver-model bind process. I am not sure whether this should be: - a flag in the uclass - a flag in the BOARD driver (assuming we have a BOARD uclass soon) - a function call into DM - something else But I think it is justified in the case of PCI, since some systems cannot find all their devices without scanning it. What do you think? Regards, Simon