diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2011-01-27 08:21:35 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-01-29 15:07:19 +0100 |
commit | f53671c054ba0b5d5b10e2a7294786fa2f73479e (patch) | |
tree | 7b19c366220b1da1628a4a9985c7d64673a079d6 /simpletrace.c | |
parent | 0bb533374a110f22412d95e75768afb8212f8243 (diff) |
escc: fix interrupt flags
Recent PowerPC kernel end up in kernel panic during boot in -nographic
mode. In this mode the second serial port is used as the udbg console,
and thus a few characters are sent on this port. This activates the
tx interrupt flag, and later choke the Linux kernel, as it was not
expecting such a flag to be set.
The problem here comes from the fact that contrary to most devices the
interrupt flags are only set if the interrupt is enabled. Quoting the
datasheet: "If the corresponding IE bit is not set, the IP for that
source of interrupt will never be set."
This patch fixes that by enabling the interrupt flag only when the
corresponding interrupt is enabled.
Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'simpletrace.c')
0 files changed, 0 insertions, 0 deletions