]> www.infradead.org Git - users/hch/misc.git/commit
net: phy: micrel: allow usage of generic ethernet-phy clock
authorHeiko Stuebner <heiko.stuebner@cherry.de>
Fri, 1 Dec 2023 15:01:31 +0000 (16:01 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 4 Dec 2023 22:43:55 +0000 (14:43 -0800)
commit99ac4cbcc2a50ecc86ffacc7b4b42ba4259a90d4
tree78ac1e1d811150365d0d1d7fa0432888f6b79ad5
parent9853294627237b73a6b765162d9c0485b0697db5
net: phy: micrel: allow usage of generic ethernet-phy clock

The generic ethernet-phy binding allows describing an external clock since
commit 350b7a258f20 ("dt-bindings: net: phy: Document support for external PHY clk")
for cases where the phy is not supplied by an oscillator but instead
by a clock from the host system.

And the old named "rmii-ref" clock from 2014 is only specified for phys
of the KSZ8021, KSZ8031, KSZ8081, KSZ8091 types.

So allow retrieving and enabling the optional generic clock on phys that
do not provide a rmii-ref clock.

Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20231201150131.326766-3-heiko@sntech.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/micrel.c