Re: [PATCH net-next v2] net: ethernet: cortina: Use devm_clk_get_enabled() in gemini_ethernet_port_probe()

From: Linus Walleij

Date: Tue Dec 01 2026 - 13:54:12 EST


Hi Markus,

whoa! Your patches are improving and much more
interesting!

On Sun, Nov 29, 2026 at 10:34 AM Markus Elfring <Markus.Elfring@xxxxxx> wrote:

> From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
> Date: Sun, 29 Nov 2026 09:42:18 +0100
>
> Replace the combination of devm_clk_get() and clk_prepare_enable()
> by a devm_clk_get_enabled() call.
> Delete a clk_disable_unprepare() call on an error handling path
> and in the implementation of the function “gemini_port_remove”.
> Drop the label “unprepare”.
>
> This issue was detected by using the Coccinelle software.
>
> Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>

Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>

Yours,
Linus Walleij