RE: [PATCH] net: gianfar_ptp: move set_fipers() to spinlock protecting area

From: Y.b. Lu
Date: Mon Jan 08 2018 - 22:23:52 EST




> -----Original Message-----
> From: Fabio Estevam [mailto:festevam@xxxxxxxxx]
> Sent: 2018å1æ8æ 20:54
> To: Y.b. Lu <yangbo.lu@xxxxxxx>
> Cc: Claudiu Manoil <claudiu.manoil@xxxxxxx>; Richard Cochran
> <richardcochran@xxxxxxxxx>; netdev@xxxxxxxxxxxxxxx; linux-kernel
> <linux-kernel@xxxxxxxxxxxxxxx>
> Subject: Re: [PATCH] net: gianfar_ptp: move set_fipers() to spinlock protecting
> area
>
> On Mon, Jan 8, 2018 at 8:13 AM, Yangbo Lu <yangbo.lu@xxxxxxx> wrote:
> > set_fipers() calling should be protected by spinlock.
> > This patch is to move set_fipers() to spinlock protecting area in
> > ptp_gianfar_adjtime() function.
>
> It would be nice to explay why.

[Y.b. Lu] Sent out v2 patch and explained in commit message :)
Thanks.

>
> Thanks