From owner-cvs-all Thu Dec 24 06:18:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA05871 for cvs-all-outgoing; Thu, 24 Dec 1998 06:18:09 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA05866; Thu, 24 Dec 1998 06:18:08 -0800 (PST) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id GAA27145; Thu, 24 Dec 1998 06:17:58 -0800 (PST) Date: Thu, 24 Dec 1998 06:17:58 -0800 (PST) Message-Id: <199812241417.GAA27145@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/i386/isa cy.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk bde 1998/12/24 06:17:58 PST Modified files: sys/i386/isa cy.c Log: Flush the fifos at the correct place in cyopen(). Various things in cyopen() were done in a different order than in sioopen(), partly to (ab)use a side effect of comparam() and partly because I didn't understand what the reset was doing (it flushes the fifos). This turned out to be more than a cosmetic problem. Flushing the fifos quite late is good for discarding input that arrived while the line state was being initialized, and in the cy driver it also seems to reduce a problem with input that arrived long ago during the previous close (the UART loses sync too easily and for too long). Revision Changes Path 1.82 +17 -31 src/sys/i386/isa/cy.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message