From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [v2] net: gianfar_ptp: move set_fipers() to spinlock protecting area Date: Wed, 10 Jan 2018 14:54:29 -0500 (EST) Message-ID: <20180110.145429.139747567601766196.davem@davemloft.net> References: <20180109030233.16013-1-yangbo.lu@nxp.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: festevam@gmail.com, claudiu.manoil@nxp.com, richardcochran@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: yangbo.lu@nxp.com Return-path: In-Reply-To: <20180109030233.16013-1-yangbo.lu@nxp.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Yangbo Lu 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 > --- > Changes for v2: > - explained why spinlock was needed in commit message. Applied.