From owner-cvs-all@FreeBSD.ORG Sun Feb 27 15:12:50 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF6AC16A4CF; Sun, 27 Feb 2005 15:12:50 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2A8D43D3F; Sun, 27 Feb 2005 15:12:50 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j1RFCoRk001851; Sun, 27 Feb 2005 15:12:50 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1RFCoRX001850; Sun, 27 Feb 2005 15:12:50 GMT (envelope-from mux) Message-Id: <200502271512.j1RFCoRX001850@repoman.freebsd.org> From: Maxime Henrion Date: Sun, 27 Feb 2005 15:12:50 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/fxp if_fxp.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2005 15:12:50 -0000 mux 2005-02-27 15:12:50 UTC FreeBSD src repository Modified files: sys/dev/fxp if_fxp.c Log: Fix a stupid bogon from myself, sc->revision wasn't initialized when testing it to know whether we should enable the 82503 serial mode... Move code to the right location and disallow the use of the 82503 serial mode if the sc->revision field is 0 again. This makes fxp(4) work correctly with ATMEL 350 93C46 cards (3 port 82559 based with a 82555 PHY), as well as with the older ATMEL 220 93C46 (same flavour) and with the even older 10Mbps-only 82557 cards with the 82503 serial interface. Tested by: Andre Albsmeier , krion MFC after: 2 weeks Revision Changes Path 1.224 +10 -10 src/sys/dev/fxp/if_fxp.c