Re: [v2] net: gianfar_ptp: move set_fipers() to spinlock protecting area

From: David Miller
Date: Wed Jan 10 2018 - 14:54:37 EST


From: Yangbo Lu <yangbo.lu@xxxxxxx>
Date: Tue, 9 Jan 2018 11:02:33 +0800

> set_fipers() calling should be protected by spinlock in
> case that any interrupt breaks related registers setting
> and the function we expect. This patch is to move set_fipers()
> to spinlock protecting area in ptp_gianfar_adjtime().
>
> Signed-off-by: Yangbo Lu <yangbo.lu@xxxxxxx>
> ---
> Changes for v2:
> - explained why spinlock was needed in commit message.

Applied.