Re: [PATCH v6 02/27] of: dynamic: Fix overlayed devices not probing because of fw_devlink

From: Andy Shevchenko

Date: Wed Apr 22 2026 - 15:28:17 EST


On Wed, Apr 22, 2026 at 11:51:36AM -0700, Doug Anderson wrote:
> On Wed, Apr 22, 2026 at 10:44 AM Geert Uytterhoeven
> <geert@xxxxxxxxxxxxxx> wrote:
> > On Wed, 25 Mar 2026 at 15:36, Herve Codina <herve.codina@xxxxxxxxxxx> wrote:

...

> > > + if (fwnode->flags & FWNODE_FLAG_NOT_DEVICE)
> >
> > After commit f72e77c33e4b5657 ("device property: Make modifications
> > of fwnode "flags" thread safe"), this must be changed to:
> >
> > if (fwnode_test_flag(fwnode, FWNODE_FLAG_NOT_DEVICE))
> >
> > With this change my DT overlays are working again.
> >
> > I guess keeping the FWNODE_FLAG_* names, but changing their values
> > from bit masks to bit numbers was probably not such a good idea,
> > as it fails to catch missing conversions...
>
> Crud, I should have thought about that. :( Do you think it's worth it
> to do a rename at this point to catch future problems?

You can try locally with allyesconfig / allmodconfig and see the outcome.
If there are missed cases, and their amount reasonably low, I won't bother
in this case. But for the future it's kinda rule of thumb to rename when
semantics changed.

--
With Best Regards,
Andy Shevchenko