Title: [9819] trunk/arch/blackfin/kernel/gptimers.c: Blackfin: gptimers: fix thinko when disabling timers
- Revision
- 9819
- Author
- vapier
- Date
- 2011-04-04 11:20:50 -0400 (Mon, 04 Apr 2011)
Log Message
Blackfin: gptimers: fix thinko when disabling timers
we only want to clear the run bit, not all bits. so dont read the whole reg and then write all the bits back out
Reported-by: isabelle leonardi
Modified Paths
Diff
Modified: trunk/arch/blackfin/kernel/gptimers.c (9818 => 9819)
--- trunk/arch/blackfin/kernel/gptimers.c 2011-04-02 11:30:53 UTC (rev 9818)
+++ trunk/arch/blackfin/kernel/gptimers.c 2011-04-04 15:20:50 UTC (rev 9819)
@@ -268,7 +268,7 @@
_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);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits