[PATCH v2] hwrng: meson - Improve error handling for core clock

Martin Blumenstingl martin.blumenstingl at googlemail.com
Mon Sep 20 13:24:49 PDT 2021


On Mon, Sep 20, 2021 at 9:44 AM Uwe Kleine-König
<u.kleine-koenig at pengutronix.de> wrote:
>
> -ENOENT (ie. "there is no clock") is fine to ignore for an optional
> clock, other values are not supposed to be ignored and should be
> escalated to the caller (e.g. -EPROBE_DEFER). Ignore -ENOENT by using
> devm_clk_get_optional().
>
> While touching this code also add an error message for the fatal errors.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>
as well as:
Tested-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com> #
on Odroid-C1

Thank you Uwe!


Best regards,
Martin



More information about the linux-arm-kernel mailing list