]> git.hungrycats.org Git - linux/commit
net: gianfar_ptp: move set_fipers() to spinlock protecting area
authorYangbo Lu <yangbo.lu@nxp.com>
Tue, 9 Jan 2018 03:02:33 +0000 (11:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Mar 2018 09:17:11 +0000 (10:17 +0100)
commit62a101cde990623dbe9b9f8370ac5294f1da3229
treeec9cce472c2e0c447f80d17bda2006be361229f1
parentf895445fad01fb69df79aae897cb31ff7967a5d8
net: gianfar_ptp: move set_fipers() to spinlock protecting area

[ Upstream commit 11d827a993a969c3c6ec56758ff63a44ba19b466 ]

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@nxp.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/freescale/gianfar_ptp.c