Netdev List
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: nicolo.giuliani6@studio.unibo.it
Cc: Vladimir Oltean <olteanv@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Richard Cochran <richardcochran@gmail.com>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] net: dsa: mv88e6xxx: continue without PTP if the TAI period is invalid
Date: Sun, 20 Sep 2026 16:48:37 +0200	[thread overview]
Message-ID: <66937bde-51a0-49d2-9ae7-f27fb4f8ecde@lunn.ch> (raw)
In-Reply-To: <20260919-send-net-v1-1-4355c72465ee@studio.unibo.it>

On Sat, Sep 19, 2026 at 09:52:07PM +0200, Nicolo Giuliani via B4 Relay wrote:
> From: Nicolo Giuliani <nicolo.giuliani6@studio.unibo.it>
> 
> Since commit 7e3c18097a70 ("net: dsa: mv88e6xxx: read cycle counter
> period from hardware"), mv88e6xxx_ptp_setup() reads the TAI clock period
> register and fails with -ENODEV if the value is not one of the supported
> periods. mv88e6xxx_setup() propagates the error, so the switch does not
> probe at all, although it is fully usable without PTP. Before that commit
> the register was not read and the probe did not depend on its value.

The point of the failure is to indicate an assumption in the driver is
not valid, and we need to examine the assumption.

> 
> The 88E6193X on the Sophos XGS 107w reads 0 in that register, so its
> probe fails with:
> 
>   mv88e6xxx ...: unexpected cycle counter period of 0 ps

So the assumption is, all devices have valid values here. So the
correct fix is to refine the assumption. What does the datasheet for
the 88E6193X say about this register? Has its meaning changed? Marvell
like moving registers around, is it somewhere else?

    Andrew

---
pw-bot: cr

  reply	other threads:[~2026-09-20 14:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-19 19:52 [PATCH net] net: dsa: mv88e6xxx: continue without PTP if the TAI period is invalid Nicolo Giuliani via B4 Relay
2026-09-20 14:48 ` Andrew Lunn [this message]
2026-09-20 17:34   ` R: " Nicolò Giuliani - nicolo.giuliani6@studio.unibo.it
2026-09-20 18:58     ` Andrew Lunn
2026-09-20 19:08       ` R: " Nicolò Giuliani - nicolo.giuliani6@studio.unibo.it
2026-09-20 21:21         ` Andrew Lunn
2026-09-21  3:58           ` R: " Nicolò Giuliani - nicolo.giuliani6@studio.unibo.it

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=66937bde-51a0-49d2-9ae7-f27fb4f8ecde@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nicolo.giuliani6@studio.unibo.it \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=richardcochran@gmail.com \
    /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