Skip to content
Snippets Groups Projects
Commit df66834a authored by Finn Thain's avatar Finn Thain Committed by Geert Uytterhoeven
Browse files

m68k/mac: Fix unexpected interrupt with CONFIG_EARLY_PRINTK


The present code does not wait for the SCC to finish resetting itself
before trying to initialise the device. The result is that the SCC
interrupt sources become enabled (if they weren't already). This leads to
an early boot crash (unexpected interrupt) given CONFIG_EARLY_PRINTK. Fix
this by adding a delay. A successful reset disables the interrupt sources.

Also, after the reset for channel A setup, the SCC then gets a second
reset for channel B setup which leaves channel A uninitialised again. Fix
this by performing the reset only once.

Signed-off-by: default avatarFinn Thain <fthain@telegraphics.com.au>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent e4aa937e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment