imx6ul: Recent enet refclock changes breaks custom i.mx6ull board

Oleksij Rempel o.rempel at pengutronix.de
Sun Mar 5 21:25:31 PST 2023


Hi Stefan,

On Sun, Mar 05, 2023 at 11:16:17PM +0100, Stefan Wahren wrote:
> Hi,
> 
> we planned to submit our custom i.MX6ULL board [1] to mainline after release
> of Linux 6.3-rc1, but the recent enet refclock changes breaks our Ethernet
> phy:
> 
> [    0.000000] imx:clk-gpr-mux: failed to get parent (-EINVAL)
> 
> ...
> 
> [   18.574595] SMSC LAN8710/LAN8720 2188000.ethernet-1:00: phy_poll_reset
> failed: -110
> [   18.581064] fec 2188000.ethernet eth0: Unable to connect to phy
> 
> I narrow down the PHY issue to this first bad commit:
> 
> 5f82bfced611 ("clk: imx6ul: fix enet1 gate configuration")
> 
> The clock issues seems to be cause by the following commit. If i revert
> 5f82bfced611 and 4e197ee880c24 or use Linux 6.2 everything is fine.

It looks like in your kernel version are some missing patches. Can you please
rebase your patches on top of this branch:
https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git/log/?h=for-next

and please rename IMX6UL_CLK_ENET_REF to IMX6UL_CLK_ENET1_REF_SEL in
your dtsi.

Regards,
Oleksij
-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the linux-arm-kernel mailing list