Re: [PATCH] crypto: jh7110-cryp: handle clock enable failures

From: Herbert Xu

Date: Fri Sep 04 2026 - 06:32:51 EST


Jiawen Liu <1298662399@xxxxxx> wrote:
> Return error from failed clock enable.
>
> starfive_cryp_probe ignores clk_prepare_enable return for hclk/ahb, then
> remove/error paths unconditionally clk_disable_unprepare both clocks.
>
> Check consecutive clk_prepare_enable(cryp->hclk)/cryp->ahb returns in
> starfive_cryp_probe.
>
> Signed-off-by: jiawen <1298662399@xxxxxx>

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt