Re: [PATCH net-next 3/7] net: phy: lxt: Mark LXT973 PHYs as having a broken isolate mode

From: Maxime Chevallier
Date: Thu Sep 12 2024 - 08:56:48 EST


Hello Simon,

On Thu, 12 Sep 2024 13:24:51 +0100
Simon Horman <horms@xxxxxxxxxx> wrote:

> On Wed, Sep 11, 2024 at 11:27:07PM +0200, Maxime Chevallier wrote:
> > Testing showed that PHYs from the LXT973 family have a non-working
> > isolate mode, where the MII lines aren't set in high-impedance as would
> > be expected. Prevent isolating these PHYs.
> >
> > Signed-off-by: Maxime Chevallier <maxime.chevallier@xxxxxxxxxxx>
> > ---
> > drivers/net/phy/lxt.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/net/phy/lxt.c b/drivers/net/phy/lxt.c
> > index e3bf827b7959..55cf67391533 100644
> > --- a/drivers/net/phy/lxt.c
> > +++ b/drivers/net/phy/lxt.c
> > @@ -334,6 +334,7 @@ static struct phy_driver lxt97x_driver[] = {
> > .read_status = lxt973a2_read_status,
> > .suspend = genphy_suspend,
> > .resume = genphy_resume,
> > + .flags = PHY_NO_ISOLATE,
> > }, {
> > .phy_id = 0x00137a10,
> > .name = "LXT973",
> > @@ -344,6 +345,7 @@ static struct phy_driver lxt97x_driver[] = {
> > .config_aneg = lxt973_config_aneg,
> > .suspend = genphy_suspend,
> > .resume = genphy_resume,
> > + .flags = PHY_NO_ISOLATE,
> > } };
>
> Hi Maxime,
>
> This duplicates setting .flags for each array member
> updated by this patch.

Arg yes you're correct... Don't know how I missed that...

Thanks !

Maxime