Re: [PATCH v5 05/14] boot: image: try all DM hash providers

Simon Glass <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <CAFLszTihm7i6c+bKEmH7NwTxn-Ogm8vvd6CknTr4Ufr-EX533w@mail.gmail.com>
On 2026-07-20T04:13:44, James Hilliard <[email protected]> wrote:
> boot: image: try all DM hash providers
>
> FIT hash calculation currently selects UCLASS_HASH device zero directly,
> so a provider which does not implement the requested algorithm prevents a
> later capable provider from being used. It also turns every provider error
> into the same generic FIT hash failure.
>
> Use the common hash provider-selection helper. Fall back to the configured
> software implementation only when no DM provider supports the algorithm,
> and preserve probe and digest failures from providers which accept it.
>
> Signed-off-by: James Hilliard <[email protected]>
>
> boot/image-fit.c | 26 +++++++++-----------------
>  1 file changed, 9 insertions(+), 17 deletions(-)

Reviewed-by: Simon Glass <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.