Skip to content

ftgmac100: mdio read timeout #182

@ytmhub

Description

@ytmhub

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>;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions