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]>

Reply via email to