From owner-freebsd-net@FreeBSD.ORG Wed Feb 23 08:33:10 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36EAD16A4CE for ; Wed, 23 Feb 2005 08:33:10 +0000 (GMT) Received: from falcon.loomes.de (smtp.loomes.de [212.40.161.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F2EF43D54 for ; Wed, 23 Feb 2005 08:33:09 +0000 (GMT) (envelope-from markus@trippelsdorf.de) Received: from port-212-202-34-139.dynamic.qsc.de ([212.202.34.139] helo=[192.68.0.2]) by falcon.loomes.de with asmtp (Exim 4.30) id 1D3rxD-0002gj-Do; Wed, 23 Feb 2005 09:33:07 +0100 From: Markus Trippelsdorf To: Brian Campbell In-Reply-To: <1109139161.620.9.camel@bsd.trippelsdorf.de> References: <200502230042.j1N0g1q79345@pobox.com> <1109139161.620.9.camel@bsd.trippelsdorf.de> Content-Type: multipart/mixed; boundary="=-K07qR+w/SWEtm5MthVM5" Date: Wed, 23 Feb 2005 09:33:05 +0100 Message-Id: <1109147585.2574.1.camel@bsd.trippelsdorf.de> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port cc: freebsd-net@freebsd.org Subject: Re: skc0: no PHY found X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2005 08:33:10 -0000 --=-K07qR+w/SWEtm5MthVM5 Content-Type: text/plain Content-Transfer-Encoding: 7bit On Wed, 2005-02-23 at 07:12 +0100, Markus Trippelsdorf wrote: > On Tue, 2005-02-22 at 19:42 -0500, Brian Campbell wrote: > > >On Sun, 2005-02-20 at 18:07 +0000, Bjoern A. Zeeb wrote: > > >> On Sun, 20 Feb 2005, Markus Trippelsdorf wrote: > > >> > My build in ethernet card (ASUS A8V mobo) does not work. > > >> > (I've tried HEAD, RELENG_5 and RELENG_5_3): > > >> > > >> Could you please apply the patch at [1] and mail me the results. > > > > > >OK here is the relevant part of dmesg: > > > > > >skc0: port 0xb000-0xb0ff mem > > >skc0: no PHY found! 6 > > >device_attach: sk0 attach returned 6 > > > > I'm running 4.7 and had the same problem ... my fix was, in > > sk_init_yukon(), just after sc is assigned, add: > > > > sk_win_write_4(sc, SK_GPIO, > > (sk_win_read_4(sc, SK_GPIO) | SK_GPIO_DIR9) & ~SK_GPIO_DAT9); > Hi Brian, > thank you very much. Your patch completely solved the problem. > IMHO it should be committed to the tree. This is the patch: --=-K07qR+w/SWEtm5MthVM5 Content-Disposition: attachment; filename=if_sk_yukon_patch Content-Type: text/plain; name=if_sk_yukon_patch; charset=us-ascii Content-Transfer-Encoding: 7bit --- sys/pci/if_sk.c.orig Wed Feb 23 09:28:09 2005 +++ sys/pci/if_sk.c Wed Feb 23 06:48:43 2005 @@ -2405,6 +2405,8 @@ int i; sc = sc_if->sk_softc; + sk_win_write_4(sc, SK_GPIO, + (sk_win_read_4(sc, SK_GPIO) | SK_GPIO_DIR9) & ~SK_GPIO_DAT9); ifp = &sc_if->arpcom.ac_if; /* GMAC and GPHY Reset */ --=-K07qR+w/SWEtm5MthVM5--