Thread (4 messages) flat view 4 messages, 3 authors, 2018-01-09

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

From: Richard Cochran <richardcochran@gmail.com>
Date: 2018-01-09 03:39:23
Also in: lkml

On Mon, Jan 08, 2018 at 10:53:40AM -0200, Fabio Estevam wrote:
On Mon, Jan 8, 2018 at 8:13 AM, Yangbo Lu [off-list ref] wrote:
quoted
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.
Maybe this is important?

/* Caller must hold etsects->lock. */
static void set_fipers(struct etsects *etsects)
{
	set_alarm(etsects);
	gfar_write(&etsects->regs->tmr_fiper1, etsects->tmr_fiper1);
	gfar_write(&etsects->regs->tmr_fiper2, etsects->tmr_fiper2);
}

Thanks,
Richard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help