lkml.org 
[lkml]   [2022]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next 3/7] net: lan966x: Add support for ptp clocks
On Thu, Jan 27, 2022 at 11:23:29AM +0100, Horatiu Vultur wrote:

> +static int lan966x_ptp_phc_init(struct lan966x *lan966x,
> + int index,
> + struct ptp_clock_info *clock_info)
> +{
> + struct lan966x_phc *phc = &lan966x->phc[index];
> +
> + phc->info = *clock_info;
> + phc->clock = ptp_clock_register(&phc->info, lan966x->dev);
> + if (IS_ERR(phc->clock))
> + return PTR_ERR(phc->clock);
> +
> + phc->index = index;
> + phc->lan966x = lan966x;
> +
> + /* PTP Rx stamping is always enabled. */
> + phc->hwtstamp_config.rx_filter = HWTSTAMP_FILTER_PTP_V2_EVENT;

Not true -- you allow it to be disabled in the next patch!

Thanks,
Richard


> +
> + return 0;
> +}

\
 
 \ /
  Last update: 2022-01-27 16:29    [W:0.113 / U:1.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site