Re: [PATCH v2] net: stmmac: correct MAC propagation delay

From: Richard Cochran
Date: Thu Jul 27 2023 - 09:36:51 EST


On Thu, Jul 27, 2023 at 09:20:10AM +0200, Johannes Zink wrote:
> Hi Richard,
>
> On 7/26/23 22:57, Richard Cochran wrote:
> > On Mon, Jul 24, 2023 at 12:01:31PM +0200, Johannes Zink wrote:
> >
> > Earlier versions of the IP core return zero from these...
> >
> > > +#define PTP_TS_INGR_LAT 0x68 /* MAC internal Ingress Latency */
> > > +#define PTP_TS_EGR_LAT 0x6c /* MAC internal Egress Latency */
> >
>
> good catch. Gonna send a v3 with a check to and set the values for dwmac v5 only.

AFAICT there is no feature bit that indicates the presence or absence
of these two registers.

Are you sure that *all* v5 IP cores have these?

I am not sure.

Thanks,
Richard