[SERIAL] Fix clocal wakeup problem
commitf61051cd2fc58546f28c226933942d4360810ffb
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sat, 7 Jan 2006 23:11:23 +0000 (7 23:11 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 7 Jan 2006 23:11:23 +0000 (7 23:11 +0000)
treebac31cc9c3c857d21b1b084260f443ebc8d25e6c
parentb9abaa3fb7328851bdeaad19e694048f0ff71d9a
[SERIAL] Fix clocal wakeup problem

Jim Alexander reported a problem where "if one calls open() in
blocking mode with CLOCAL off, the 8250.c driver under the 2.6
kernel (or at least 2.6.8 and 2.6.10) does not wake up the
blocked process when DCD is asserted."

Fix this by enabling modem status interrupts immediately before
we read the carrier detect status.

Thanks to Jim for reporting the problem and testing the fix.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/serial/serial_core.c