[PATCH 0/3] FIT: match best configuration when multiple are compatible
Sascha Hauer
sha at pengutronix.de
Tue Dec 12 22:44:53 PST 2023
On Tue, Dec 05, 2023 at 12:36:15PM +0100, Ahmad Fatoum wrote:
> 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
Applied, thanks
Sascha
>
> common/image-fit.c | 15 ++++++++++++---
> drivers/of/base.c | 9 +++++++--
> include/of.h | 4 ++++
> 3 files changed, 23 insertions(+), 5 deletions(-)
>
> --
> 2.39.2
>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list