[U-Boot] [PATCH v3 4/8] dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in lists_bind_fdt()

Bin Meng bmeng.cn at gmail.com
Sun Nov 11 04:48:22 UTC 2018


Hi Lukas,

On Sat, Nov 10, 2018 at 10:11 PM Auer, Lukas
<lukas.auer at aisec.fraunhofer.de> wrote:
>
> Hi Bin,
>
> On Wed, 2018-10-10 at 22:06 -0700, Bin Meng wrote:
> > Currently the comments of several APIs (eg: dm_init_and_scan()) say:
> >
> > @pre_reloc_only: If true, bind only drivers with the
> > DM_FLAG_PRE_RELOC
> > flag. If false bind all drivers.
> >
> > The 'Pre-Relocation Support' chapter in doc/driver-model/README.txt
> > documents the same that both device tree properties and driver flag
> > are supported.
> >
> > However the implementation only checks these special device tree
> > properties without checking the driver flag at all. This updates
> > lists_bind_fdt() to consider both scenarios.
> >
> > Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> > Reviewed-by: Simon Glass <sjg at chromium.org>
> >
> > ---
>
> FYI, on a pass over my patch series Travis CI found one more use of
> lists_bind_fdt(), which got added to U-Boot master recently. It is used
> twice in drivers/misc/imx8/scu.c with the config imx8qxp_mek_defconfig.

Thanks for reporting this. It seems that I will need respin another version.

Regards,
Bin


More information about the U-Boot mailing list