From owner-cvs-all@FreeBSD.ORG Thu Oct 4 11:28:26 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B13516A420; Thu, 4 Oct 2007 11:28:26 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 05AED13C46A; Thu, 4 Oct 2007 11:28:26 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l94BSPCJ002668; Thu, 4 Oct 2007 11:28:25 GMT (envelope-from yongari@repoman.freebsd.org) Received: (from yongari@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l94BSP5B002667; Thu, 4 Oct 2007 11:28:25 GMT (envelope-from yongari) Message-Id: <200710041128.l94BSP5B002667@repoman.freebsd.org> From: Pyun YongHyeon Date: Thu, 4 Oct 2007 11:28:25 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/dev/re if_re.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 04 Oct 2007 11:28:26 -0000 yongari 2007-10-04 11:28:25 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/dev/re if_re.c Log: MFC if_re.c rev. 1.95 to RELENG_6. Make sure to take PHY out of power down mode in device attach. Without this the PHY wouldn't work as expected. This should fix dual-boot Windows XP machine where RealTek Windows drivers put the PHY in power down mode during shutdown. The magic PHY register accesses come from RealTek driver. No datasheets mention the magic PHY registers. In general, the PHY wakeup code should go into PHY driver. However it seems that it only apply to RTL8169S single chip and it would be another hack if we have rgephy(4) check what parent driver/chip model is attached. Revision Changes Path 1.46.2.34 +22 -0 src/sys/dev/re/if_re.c