Re: [net-next 6/9] net: ethernet: ravb: Add callback for gPTP probe

From: Sergey Shtylyov

Date: Fri Jun 12 2026 - 14:49:21 EST


On 6/10/26 1:24 PM, Niklas Söderlund wrote:

> Different generations of the RAVB IP have different needs when it probes
> the gPTP timer clock. Add a callback in the PTP information to allow
> each generation to probe its own way.
>
> With this the last gPTP specific flag (gptp_ref_clk) can be removed.
> However the primary motivation for the change is to prepare for Gen4
> support, which compared to other generations with gPTP support does not
> have the clock as part of the IP itself.
>
> Gen4 will not need to compute GTI value as it have no where to write it,

Nowhere.

> as the gPTP clock is external. For this reason move the computation of
> it into the newly gPTP probe specific callbacks for the RAVB IP's that
> support it.
>
> Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@xxxxxxxxxxxx>

Reviewed-by: Sergey Shtylyov <sergei.shtylyov@xxxxxxxxx>

[...]

MBR, Sergey