[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1518885503.2883.109.camel@baylibre.com>
Date: Sat, 17 Feb 2018 17:38:23 +0100
From: Jerome Brunet <jbrunet@...libre.com>
To: Martin Blumenstingl <martin.blumenstingl@...glemail.com>,
linux-amlogic@...ts.infradead.org, netdev@...r.kernel.org
Cc: khilman@...libre.com, carlo@...one.org, narmstrong@...libre.com
Subject: Re: [net-next PATCH v1 1/3] net: stmmac: dwmac-meson8b: simplify
clock registration
On Sat, 2018-02-17 at 15:08 +0100, Martin Blumenstingl wrote:
> To goal of this patch is to simplify the registration of the RGMII TX
> clock (and it's parent clocks). This is achieved by:
> - introducing the meson8b_dwmac_register_clk helper-function to remove
> code duplication when registering a single clock (this saves a few
> lines since we have 4 clocks internally)
> - using devm_add_action_or_reset to disable the RGMII TX clock
> automatically when needed. This also allows us to re-use the standard
> stmmac_pltfr_remove function.
> - devm_kasprintf() and devm_kstrdup() are not used anymore to generate
> the clock name (these are replaced by a variable on the stack) because
> the common clock framework already uses kstrdup() internally.
>
> No functional changes intended.
>
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@...glemail.com>
Reviewed-by: Jerome Brunet <jbrunet@...libre.com>
Powered by blists - more mailing lists