mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/3] FIT: match best configuration when multiple are compatible
@ 2023-12-05 11:36 Ahmad Fatoum
  2023-12-05 11:36 ` [PATCH 1/3] of: define macro for maximum of_device_is_compatible return value Ahmad Fatoum
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ahmad Fatoum @ 2023-12-05 11:36 UTC (permalink / raw)
  To: barebox

Currently, we match the first compatible configuration. There may be
multiple matching configurations however and we should continue looking
for a better match if a match didn't achieve maximal score.

Do that by checking score against OF_DEVICE_COMPATIBLE_MAX_SCORE and
continuing the search if unequal.

Ahmad Fatoum (3):
  of: define macro for maximum of_device_is_compatible return value
  of: early exit of_match_node if no better matches are possible
  FIT: match best configuration when multiple are compatible

 common/image-fit.c | 15 ++++++++++++---
 drivers/of/base.c  |  9 +++++++--
 include/of.h       |  4 ++++
 3 files changed, 23 insertions(+), 5 deletions(-)

-- 
2.39.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-12-13  6:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-05 11:36 [PATCH 0/3] FIT: match best configuration when multiple are compatible Ahmad Fatoum
2023-12-05 11:36 ` [PATCH 1/3] of: define macro for maximum of_device_is_compatible return value Ahmad Fatoum
2023-12-05 11:36 ` [PATCH 2/3] of: early exit of_match_node if no better matches are possible Ahmad Fatoum
2023-12-05 11:36 ` [PATCH 3/3] FIT: match best configuration when multiple are compatible Ahmad Fatoum
2023-12-13  6:44 ` [PATCH 0/3] " Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox