[net-next RFC PATCH v2 3/3] net: phy: Add Airoha AN8855 Internal Switch Gigabit PHY
Christian Marangi
ansuelsmth at gmail.com
Fri Oct 25 03:59:54 PDT 2024
On Wed, Oct 23, 2024 at 06:53:14PM +0200, Andrew Lunn wrote:
> > + /* Enable Asymmetric Pause Capability */
> > + ret = phy_set_bits(phydev, MII_ADVERTISE, ADVERTISE_PAUSE_ASYM);
> > + if (ret)
> > + return ret;
>
> The PHY driver alone does not decide this. The MAC driver needs to
> indicate it supports asym pause by calling phy_supports_asym_pause().
>
Sorry for the stupid question, I couldn't find this OPs. Any hit how to
handle this?
> > +
> > + /* Disable EEE */
> > + ret = phy_write_mmd(phydev, MDIO_MMD_AN, MDIO_AN_EEE_ADV, 0);
> > + if (ret)
> > + return ret;
>
> Again, the core code should handle this, unless EEE is broken and you
> need to force it off.
>
They confirmed this was done just to handle kernel init condition...
Will drop.
--
Ansuel
More information about the Linux-mediatek
mailing list