Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Dec 2003 18:48:53 -0500
From:      "Dheeraj" <dhee@myrealbox.com>
To:        imp@bsdimp.com
Cc:        freebsd-current@freebsd.org
Subject:   Re: Re: Serial driver problems with 5.2-current
Message-ID:  <1072568933.c57d2260dhee@myrealbox.com>

next in thread | raw e-mail | index | archive | help
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" <imp@bsdimp.com>
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;





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1072568933.c57d2260dhee>