Re: [PATCH 1/2] driver core: provide device_match_fwnode_ext()
From: Andy Shevchenko
Date: Thu Feb 19 2026 - 14:28:06 EST
On Thu, Feb 19, 2026 at 05:55:20PM +0100, Danilo Krummrich wrote:
> On Thu Feb 19, 2026 at 5:39 PM CET, Bartosz Golaszewski wrote:
...
> Also, is there a reason why we need both device_match_fwnode() *and*
> device_match_fwnode_ext()?
Yes. We don't want (at least for now) to dive into bug hunting in a 2+ years
horizon if something goes wrong with [currently] working drivers that use
device_match_fwnode() against the cases when there are primary and secondary
fwnodes present.
I won't put my bet that extending device_match_fwnode() won't break anything.
And I don't want to invest (waste?) my time to learn each of the existing cases.
The proposed way is robust and safest. And for the record, I will be the first
person to push back device_match_fwnode() upgrade without a comprehensive testing
on real (affected) HW.
--
With Best Regards,
Andy Shevchenko