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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 19:54:13 +0000 (14:54 -0500)
commit11d827a993a969c3c6ec56758ff63a44ba19b466
treeb8d6a0a308cf17fa083bd8dd27bd6c508e00ccd4
parente5143f863c92f9f37b0977e482d6c78e74500f3b
net: gianfar_ptp: move set_fipers() to spinlock protecting area

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>
drivers/net/ethernet/freescale/gianfar_ptp.c