m68k: mvme147,mvme16x: Don't wipe PCC timer config bits
authorFinn Thain <fthain@telegraphics.com.au>
Tue, 30 Mar 2021 07:37:51 +0000 (18:37 +1100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 6 Apr 2021 07:33:20 +0000 (09:33 +0200)
commit43262178c043032e7c42d00de44c818ba05f9967
tree00c07114e812d3bb05c41ceacfe3ac43e3306e08
parentcbfa72b57747f8b87df16396d85e832c8bf03811
m68k: mvme147,mvme16x: Don't wipe PCC timer config bits

Don't clear the timer 1 configuration bits when clearing the interrupt flag
and counter overflow. As Michael reported, "This results in no timer
interrupts being delivered after the first. Initialization then hangs
in calibrate_delay as the jiffies counter is not updated."

On mvme16x, enable the timer after requesting the irq, consistent with
mvme147.

Cc: Michael Pavone <pavone@retrodev.com>
Fixes: 7529b90d051e ("m68k: mvme147: Handle timer counter overflow")
Fixes: 19999a8b8782 ("m68k: mvme16x: Handle timer counter overflow")
Reported-and-tested-by: Michael Pavone <pavone@retrodev.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Link: https://lore.kernel.org/r/4fdaa113db089b8fb607f7dd818479f8cdcc4547.1617089871.git.fthain@telegraphics.com.au
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/asm/mvme147hw.h
arch/m68k/mvme147/config.c
arch/m68k/mvme16x/config.c