net: phy: realtek: Add optional external PHY clock
authorDetlev Casanova <detlev.casanova@collabora.com>
Mon, 5 Jun 2023 15:40:08 +0000 (11:40 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jun 2023 08:52:24 +0000 (09:52 +0100)
commit7300c9b574cc2b259ef112d34affa0671ae4810a
tree61bb31abdb6ede0d86f598d8e7e53a67b3d7dea1
parent4cab498f33f7adaa01ad15909c0f34a81e5a0b0a
net: phy: realtek: Add optional external PHY clock

In some cases, the PHY can use an external clock source instead of a
crystal.

Add an optional clock in the phy node to make sure that the clock source
is enabled, if specified, before probing.

Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/realtek.c