Skip to content
Commit 3cd1d465 authored by Christophe Roullier's avatar Christophe Roullier Committed by Paolo Abeni
Browse files

net: stmmac: dwmac-stm32: Add test to verify if ETHCK is used before checking clk rate



When we want to use clock from RCC to clock Ethernet PHY (with ETHCK)
we need to check if value of clock rate is authorized.
If ETHCK is unused, the ETHCK frequency is 0Hz and validation fails.
It makes no sense to validate unused ETHCK, so skip the validation.

Fixes: 582ac134 ("net: stmmac: dwmac-stm32: Separate out external clock rate validation")
Signed-off-by: default avatarChristophe Roullier <christophe.roullier@foss.st.com>
Reviewed-by: default avatarMarek Vasut <marex@denx.de>
Tested-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent d01e0e98
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