openbmc / linux

OpenBMC Linux kernel source tree
Other
49 stars 131 forks source link

ftgmac100: mdio read timeout #182

Closed ytmhub closed 4 years ago

ytmhub commented 5 years ago

I'm using linux 4.18 with BCM54616S phy, and I'm getting the following errors when ftgmac100 driver tries to read from mdio bus:

    ftgmac100 1e660000.ethernet (unnamed net_device) (uninitialized): mdio read timed out
    ftgmac100 1e660000.ethernet (unnamed net_device) (uninitialized): mdio read timed out
    ...
    ftgmac100 1e660000.ethernet (unnamed net_device) (uninitialized): eth%d: no PHY found
    ftgmac100 1e660000.ethernet: MII Probe failed!

This issue seems the go away if 'ftgmac100_setup_clk' is called before 'ftgmac100_setup_mdio', which is also how it is done in 4.1, where the MAC is reset via the Reset Control Register, before the rest of the initialization.

I failed to find a mention of this in the ast2500 datasheet, did anyone else encounter this issue?

BTW, only mac0 is enabled in the dts, and the pinctrl for is: pinctrl-0 = <&pinctrl_rgmii1_default &pinctrl_mdio1_default>;

amboar commented 5 years ago

Can you try with the dev-5.2 branch instead? Just so we're not debugging issues that are already resolved.

ytmhub commented 4 years ago

This seems to have been fixed since then, as can be seen here.