From d2a14c07920744306c8126f4044c9ccb46cf21c2 Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Tue, 18 Feb 2003 05:46:11 -0800 Subject: [PATCH] [PATCH] fix m68knommu/ColdFire serial port hang This patches fixes a serial port "hang" on the m68knommu ColdFire serial driver. It was erroneoulsy looking for a state bit that is never set. --- drivers/serial/mcfserial.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/serial/mcfserial.c b/drivers/serial/mcfserial.c index a40649de01875..3e994bbdfe3ec 100644 --- a/drivers/serial/mcfserial.c +++ b/drivers/serial/mcfserial.c @@ -1,7 +1,7 @@ /* * mcfserial.c -- serial driver for ColdFire internal UARTS. * - * Copyright (C) 1999-2002 Greg Ungerer + * Copyright (C) 1999-2003 Greg Ungerer * Copyright (c) 2000-2001 Lineo, Inc. * Copyright (C) 2001-2002 SnapGear Inc. * @@ -50,12 +50,6 @@ #include #include "mcfserial.h" -/* - * the only event we use - */ -#undef RS_EVENT_WRITE_WAKEUP -#define RS_EVENT_WRITE_WAKEUP 0 - struct timer_list mcfrs_timer_struct; /* @@ -443,12 +437,10 @@ static void mcfrs_offintr(void *private) if (!tty) return; - if (test_and_clear_bit(RS_EVENT_WRITE_WAKEUP, &info->event)) { - if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && - tty->ldisc.write_wakeup) - (tty->ldisc.write_wakeup)(tty); - wake_up_interruptible(&tty->write_wait); - } + if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && + tty->ldisc.write_wakeup) + (tty->ldisc.write_wakeup)(tty); + wake_up_interruptible(&tty->write_wait); } -- 2.53.0