From owner-freebsd-current@FreeBSD.ORG Sat Dec 27 15:48:54 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 797DD16A4CE for ; Sat, 27 Dec 2003 15:48:54 -0800 (PST) Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6660C43D45 for ; Sat, 27 Dec 2003 15:48:52 -0800 (PST) (envelope-from dhee@myrealbox.com) Received: from dhee [24.99.34.159] by myrealbox.com with NetMail ModWeb Module; Sat, 27 Dec 2003 18:48:53 -0500 From: "Dheeraj" To: imp@bsdimp.com Date: Sat, 27 Dec 2003 18:48:53 -0500 X-Mailer: NetMail ModWeb Module X-Sender: dhee MIME-Version: 1.0 Message-ID: <1072568933.c57d2260dhee@myrealbox.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cc: freebsd-current@freebsd.org Subject: Re: Re: Serial driver problems with 5.2-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dhee@myrealbox.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Dec 2003 23:48:54 -0000 Thanks Warner. At last it doesn't hang anymore. But it was what you expected with that 'r= eturn', I cannot test it right away if it can dial-out with that patch. I= shall do it as soon as I get back home and reply on the result later in = the evening. truely dheeraj -----Original Message----- From: "M. Warner Losh" To: dhee@myrealbox.com Date: Sat, 27 Dec 2003 14:21:40 -0700 (MST) Subject: Re: Serial driver problems with 5.2-current Try this patch. It bails out more. Index: sio.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cache/ncvs/src/sys/dev/sio/sio.c,v retrieving revision 1.416 diff -u -r1.416 sio.c --- sio.c=0917 Nov 2003 07:21:19 -0000=091.416 +++ sio.c=0927 Dec 2003 21:16:50 -0000 @@ -1794,9 +1794,20 @@ =09=09=09} =09=09} =09=09line_status =3D inb(com->line_status_port); - +=09=09if (line_status =3D=3D 0xff) { +=09=09=09printf("sio%d: spouting nonsense -- disabled.\n", +=09=09=09 com->unit); +=09=09=09com->gone =3D 1; +=09=09=09return; +=09=09} =09=09/* input event? (check first to help avoid overruns) */ =09=09while (line_status & LSR_RCV_MASK) { +=09=09=09if (line_status =3D=3D 0xff) { +=09=09=09=09printf("sio%d: linstatus bad -- disabled.\n", +=09=09=09=09 com->unit); +=09=09=09=09com->gone =3D 1; +=09=09=09=09return; +=09=09=09} =09=09=09/* break/unnattached error bits or real input? */ =09=09=09if (!(line_status & LSR_RXRDY)) =09=09=09=09recv_data =3D 0;