Commit ce24ee46 authored by Mike Frysinger's avatar Mike Frysinger

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
...@@ -268,7 +268,7 @@ void disable_gptimers(uint16_t mask) ...@@ -268,7 +268,7 @@ void disable_gptimers(uint16_t mask)
_disable_gptimers(mask); _disable_gptimers(mask);
for (i = 0; i < MAX_BLACKFIN_GPTIMERS; ++i) for (i = 0; i < MAX_BLACKFIN_GPTIMERS; ++i)
if (mask & (1 << 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(); SSYNC();
} }
EXPORT_SYMBOL(disable_gptimers); EXPORT_SYMBOL(disable_gptimers);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment