[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191017221449.GC24810@lunn.ch>
Date: Fri, 18 Oct 2019 00:14:49 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Florian Fainelli <f.fainelli@...il.com>
Cc: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
open list <linux-kernel@...r.kernel.org>, hkallweit1@...il.com,
bcm-kernel-feedback-list@...adcom.com, olteanv@...il.com,
rmk+kernel@...linux.org.uk, cphealy@...il.com,
Jose Abreu <joabreu@...opsys.com>
Subject: Re: [PATCH net-next v2 2/2] net: phy: Add ability to debug RGMII
connections
> +#ifdef CONFIG_PHY_RGMII_DEBUG
> +int phy_rgmii_debug_probe(struct phy_device *phydev);
> +#else
> +static inline int phy_rgmii_debug_probe(struct phy_device *phydev)
> +{
> + return -EOPNOTSUPP;
> +}
> +#endif
Hi Florian
Jose wanted to make use of this in his self test code for stmmac. I
think to make this more user friendly in that setup, it would be good
to return the phy_mode which works, if only one works. The MAC driver
can then compare the what it thinks the mode should be to what
actually works, and report a test failure if they differ.
Andrew
Powered by blists - more mailing lists