Ricochet Merlin - is serial patch in kernel?

From: Mark C . Langston <mark.a.t.bitshift.org>
Date: Thu Jul 05 2001 - 15:44:08 EDT

The other major device I want to use with my iPaq/Familiar combo is
the Novatel Merlin PCMCIA modem for Ricochet (while it's still in
existence).

Some quick research turns up a needed patch to
linux/drivers/char/serial.c:

--- serial.c.orig Fri Feb 2 12:55:44 2001
+++ serial.c Fri Feb 2 12:56:43 2001
@@ -569,10 +569,16 @@
 
         icount = &info->state->icount;
         do {
-
+ /*
+ * Check if flip buffer is full -- if it is, try to flip,
+ * and if flipping got queued, return immediately
+ */
+ if (tty->flip.count >= TTY_FLIPBUF_SIZE) {
+ tty->flip.tqueue.routine((void *) tty);
+ if (tty->flip.count >= TTY_FLIPBUF_SIZE)
+ return;
+ }
                 ch = serial_inp(info, UART_RX);
- if (tty->flip.count >= TTY_FLIPBUF_SIZE)
- goto ignore_char;
                 *tty->flip.char_buf_ptr = ch;
                 icount->rx++;
 
Has this been incorporated into the current kernel? If not, would
someone be so kind? If it's done before Saturday, I can test. If
not, it'll have to wait a week until I'm back from Black Hat/DC in Las
Vegas, home of the 2.4GHz-hostile strip. (No Ricochet, noise on
802.11b, and spotty CDPD).

(Thanks to the folks who explained the linuxargs addition for use of
64MB on expanded iPaqs. It works like a dream. Now, if I can just
figure out why pump is only intermittently receiving a lease from my
Apple AirPort Base Station... *grr*)

-- 
Mark C. Langston
mark@bitshift.org
Systems & Network Admin
http://www.bitshift.org
Received on Thu Jul 5 12:38:57 2001

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:38:27 EDT