Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce24ee46 authored by Mike Frysinger's avatar Mike Frysinger
Browse files

Blackfin: gptimers: fix thinko when disabling timers



We only want to clear the run bit for this one timer, not all status bits.
So don't read the whole reg and then write all the bits back out.

Reported-by: default avatarIsabelle Leonardi <i.leonardi@detracom.fr>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 943aee0c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -268,7 +268,7 @@ void disable_gptimers(uint16_t mask)
	_disable_gptimers(mask);
	for (i = 0; i < MAX_BLACKFIN_GPTIMERS; ++i)
		if (mask & (1 << i))
			group_regs[BFIN_TIMER_OCTET(i)]->status |= trun_mask[i];
			group_regs[BFIN_TIMER_OCTET(i)]->status = trun_mask[i];
	SSYNC();
}
EXPORT_SYMBOL(disable_gptimers);