🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Andy Shevchenko Tue, 24 Nov 2026 20:20
Re: [PATCH net-next] bcm63xx_enet: Use devm_clk_get_enabled() in two probe functions
#22071
Author: Andy Shevchenko
Date: Tue, 24 Nov 2026 20:20
35 lines
10292 bytes
On Tue, Nov 24, 2026 at 08:23:24PM +0100, Markus Elfring wrote:
> 
> * Reuse existing functionality from devm_clk_get_enabled() instead of
>   keeping duplicate source code.
> 
> * Omit a clk_disable_unprepare() call on error handling paths
>   and in the implementation of two remove functions.
> 
> * Omit two labels.
> 
> This issue was detected by using the Coccinelle software.

...

> -out_disable_clk_mac:
> -	clk_disable_unprepare(priv->mac_clk);
>  out:
>  	free_netdev(dev);
>  	return ret;

Does this have side effects due to order changes? Same Q for the remove stage.

...

> -	/* disable hw block clocks */

Why drop this comment?

>  	clk_disable_unprepare(priv->phy_clk);
> -	clk_disable_unprepare(priv->mac_clk);

-- 
With Best Regards,
Andy Shevchenko
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads