lkml.org 
[lkml]   [1998]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: serial problems (was Re: serial (PPP) stomping on parport?)
On Wed, Jun 10, 1998 at 10:00:46AM -0700, Derrik wrote:
> I tried removing the new_serial.xmit_fifo_size check, and so far I'm not
> having any problems. setserial set up the port correctly, and everything
> seems to be happy. Maybe this should have been something like
> (new_serial.xmit_fifo_size < 0)?
>
> Derrik Pates
> dpates@kalifornia.com
> dpates@acm.org
>


Tried this, and it works for me. Able to configure the ports just fine under
2.1.105. Here's a patch for easier reference:


*** /usr/src/linux-2.1.104/drivers/char/serial.c Mon May 25 10:32:52 1998
--- serial.c Wed Jun 10 12:12:22 1998
***************
*** 1661,1669 ****

if ((new_serial.irq >= NR_IRQS) || (new_serial.port > 0xffff) ||
(new_serial.type < PORT_UNKNOWN) ||
(new_serial.type > PORT_MAX) ||
! (new_serial.xmit_fifo_size == 0)) {
return -EINVAL;
}

/* Make sure address is not already in use */
--- 1661,1669 ----

if ((new_serial.irq >= NR_IRQS) || (new_serial.port > 0xffff) ||
(new_serial.type < PORT_UNKNOWN) ||
(new_serial.type > PORT_MAX) ||
! (new_serial.xmit_fifo_size < 0)) {
return -EINVAL;
}

/* Make sure address is not already in use */


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dale Harris <rodmur@csuchico.edu> PGP KeyID: E26EC5FD
http://www.ecst.csuchico.edu/~rodmur/
|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:1.938 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site