Netdev List
 help / color / mirror / Atom feed
From: Vladimir Oltean <vladimir.oltean@nxp.com>
To: Horatiu Vultur <horatiu.vultur@microchip.com>
Cc: Jakub Kicinski <kuba@kernel.org>,
	andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk,
	davem@davemloft.net, edumazet@google.com, pabeni@redhat.com,
	richardcochran@gmail.com, vadim.fedorenko@linux.dev,
	rmk+kernel@armlinux.org.uk, christophe.jaillet@wanadoo.fr,
	rosenp@gmail.com, steen.hegelund@microchip.com,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net v2] phy: mscc: Fix PTP for vsc8574 and VSC8572
Date: Fri, 26 Sep 2025 15:20:38 +0300	[thread overview]
Message-ID: <20250926122038.3mv2plj3bvnfbple@skbuf> (raw)
In-Reply-To: <20250926071111.bdxffjghguawcobp@DEN-DL-M31836.microchip.com>

On Fri, Sep 26, 2025 at 09:11:11AM +0200, Horatiu Vultur wrote:
> I have been asking around about these revisions of the PHYs and what is
> available:
> vsc856x - only rev B exists
> vsc8575 - only rev B exists
> vsc8582 - only rev B exists
> vsc8584 - only rev B exists
> vsc8574 - rev A,B,C,D,E exists
> vsc8572 - rev A,B,C,D,E exists
> 
> For vsc856x, vsc8575, vsc8582, vsc8584 the lower 4 bits in register 3
> will have a value of 1.
> For vsc8574 and vsc8572 the lower 4 bits in register 3 will have a value
> of 0 for rev A, 1 for rev B and C, 2 for D and E.
> 
> Based on this information, I think both commits a5afc1678044 and
> 75a1ccfe6c72 are correct regarding the revision check.
> 
> So, now to be able to fix the PTP for vsc8574 and vsc8572, I can do the
> following:
> - start to use PHY_ID_MATCH_MODEL for vsc856x, vsc8575, vsc8582, vsc8584
> - because of this change I will need to remove also the WARN_ON() in the
>   function vsc8584_config_init()
> - then I can drop the check for revision in vsc8584_probe()
> - then I can make vsc8574 and vsc8572 to use vsc8584_probe()
> 
> What do you think about this?

This sounds good, however I don't exactly understand how it fits in with
your response to Russell to replace phydev->phy_id with phydev->drv->phy_id
in the next revision. If the revision check in vsc8584_probe() goes away,
where will you use phydev->drv->phy_id?

  reply	other threads:[~2025-09-26 12:20 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-17 11:33 [PATCH net v2] phy: mscc: Fix PTP for vsc8574 and VSC8572 Horatiu Vultur
2025-09-18 23:09 ` Jakub Kicinski
2025-09-22 12:15   ` Vladimir Oltean
2025-09-22 12:33     ` Horatiu Vultur
2025-09-22 13:28       ` Vladimir Oltean
2025-09-23  7:19         ` Horatiu Vultur
2025-09-26  7:11           ` Horatiu Vultur
2025-09-26 12:20             ` Vladimir Oltean [this message]
2025-09-26 12:21               ` Horatiu Vultur
2025-09-26 12:27                 ` Vladimir Oltean
2025-09-26 12:27                   ` Horatiu Vultur
2025-09-26  9:46       ` Russell King (Oracle)
2025-09-26  9:52         ` Vladimir Oltean
2025-09-26 10:19           ` Russell King (Oracle)
2025-09-26 12:12             ` Horatiu Vultur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250926122038.3mv2plj3bvnfbple@skbuf \
    --to=vladimir.oltean@nxp.com \
    --cc=andrew@lunn.ch \
    --cc=christophe.jaillet@wanadoo.fr \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hkallweit1@gmail.com \
    --cc=horatiu.vultur@microchip.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=richardcochran@gmail.com \
    --cc=rmk+kernel@armlinux.org.uk \
    --cc=rosenp@gmail.com \
    --cc=steen.hegelund@microchip.com \
    --cc=vadim.fedorenko@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox