]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: mac: Fix VIA timer counter accesses
authorFinn Thain <fthain@telegraphics.com.au>
Sat, 1 Dec 2018 00:53:10 +0000 (11:53 +1100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 25 Mar 2019 09:22:24 +0000 (10:22 +0100)
commitc3c765d840a38d213ab73c319cfb6aa3b2fc212c
treee21e77c22681c99cbc5a69b963dc7c04ef5e71b4
parent40cd04872570f4006181a6db255bacbfd7155f32
m68k: mac: Fix VIA timer counter accesses

This resolves some bugs that affect VIA timer counter accesses.
Avoid lost interrupts caused by reading the counter low byte register.
Make allowance for the fact that the counter will be decremented to
0xFFFF before being reloaded.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/mac/via.c