sama5d27 macb driver , mdio bus ,10G-Phy problem

Discussion around products based on ARM Cortex-A5 core.

Moderator: nferre

yektaayduk
Posts: 3
Joined: Tue Jan 15, 2019 9:23 am

sama5d27 macb driver , mdio bus ,10G-Phy problem

Thu Apr 16, 2020 11:29 am

Dear community members,

I have a custom board with 1x ethernet switch , 2x 1G phy and 1x 10Gphy.

Problem : During kernel boot I cant see the 10G phy .

This phy is not detected during mdio_bus_scan.

Possible cause :I think the macb driver I use for sama5d27
is not using "802.3 clause 45 protocol" , which is needed for 10G phy ?

Thank You .

Flow in kernel :

Code: Select all

in /linux-linux4sam_6.2/drivers/net/ethernet/cadence/macb_main.c

macb_mii_probe  calls mdiobus_scan()  in loop.

mdiobus_scan calls  get_phy_device() ,with "is_c45=false" parameter


[u]related driver functions are below:[/u]

struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr)
{
	struct phy_device *phydev;
	int err;
	phydev = get_phy_device(bus, addr, false);
..
}

struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45)
blue_z
Location: USA
Posts: 2117
Joined: Thu Apr 19, 2007 10:15 pm

Re: sama5d27 macb driver , mdio bus ,10G-Phy problem

Fri Apr 17, 2020 4:47 am

yektaayduk wrote: During kernel boot I cant see the 10G phy .
What do "you" expect to "see"?
What _do_ you see?

yektaayduk wrote: This phy is not detected during mdio_bus_scan.
That is your conclusion, and is not reporting a symptom that was observed.

You have a custom board.
What have you done to verify that this hardware is functional at any level?
IOW the Linux kernel (especially an untested one) is a problematic tool to use for testing unproven hardware.

Regards

Return to “SAMA5D Cortex-A5 MPU”

Who is online

Users browsing this forum: No registered users and 1 guest