[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200711184512.GR1014141@lunn.ch>
Date: Sat, 11 Jul 2020 20:45:12 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Dan Murphy <dmurphy@...com>
Cc: f.fainelli@...il.com, hkallweit1@...il.com, davem@...emloft.net,
robh@...nel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, devicetree@...r.kernel.org
Subject: Re: [PATCH net-next v2 2/2] net: phy: DP83822: Add ability to
advertise Fiber connection
> +#define MII_DP83822_FIBER_ADVERTISE (SUPPORTED_AUI | SUPPORTED_FIBRE | \
> + SUPPORTED_BNC | SUPPORTED_Pause | \
> + SUPPORTED_Asym_Pause | \
> + SUPPORTED_100baseT_Full)
> +
> + /* Setup fiber advertisement */
> + err = phy_modify_changed(phydev, MII_ADVERTISE,
> + ADVERTISE_1000XFULL |
> + ADVERTISE_1000XPAUSE |
> + ADVERTISE_1000XPSE_ASYM,
> + MII_DP83822_FIBER_ADVERTISE);
That looks very odd. SUPPORTED_AUI #define has nothing to do with
MII_ADVERTISE register. It is not a bit you can read/write in that
register.
Andrew
Powered by blists - more mailing lists