net: fsl_enetc: Enable optional ENETREF clock on i.MX95
authorMarek Vasut <marex@denx.de>
Mon, 27 Jan 2025 01:02:08 +0000 (02:02 +0100)
committerFabio Estevam <festevam@gmail.com>
Mon, 27 Jan 2025 03:27:54 +0000 (00:27 -0300)
commit219b0488200633cda74ecc04cda2eb84443ab88d
tree3c22afceefd5be300748d036a5da37e664cf483e
parent07358b7ac655f03ea2889a9d268e1f2b6d2f632c
net: fsl_enetc: Enable optional ENETREF clock on i.MX95

The ENETCv4 port DT nodes on i.MX95 may contain optional clock phandle
to IMX95_CLK_ENETREF "ref" clock. These "ref" clock must be enabled for
the ethernet to work. These "ref" clock are enabled after cold boot, but
when the system booted Linux and rebooted, those "ref" clock might have
been disabled in the process, which would make ethernet inoperable after
reboot. Make sure those "ref" clock are always correctly enabled.

Signed-off-by: Marek Vasut <marex@denx.de>
drivers/net/fsl_enetc.c