Skip to content
Commit 98532946 authored by Heiko Stuebner's avatar Heiko Stuebner Committed by Jakub Kicinski
Browse files

net: phy: micrel: use devm_clk_get_optional_enabled for the rmii-ref clock



While the external clock input will most likely be enabled, it's not
guaranteed and clk_get_rate in some suppliers will even just return
valid results when the clock is running.

So use devm_clk_get_optional_enabled to retrieve and enable the clock
in one go.

Signed-off-by: default avatarHeiko Stuebner <heiko.stuebner@cherry.de>
Reviewed-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20231201150131.326766-2-heiko@sntech.de


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 8ad55b1e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment