Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Feb 2005 09:33:05 +0100
From:      Markus Trippelsdorf <markus@trippelsdorf.de>
To:        Brian Campbell <brianc@pobox.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: skc0: no PHY found
Message-ID:  <1109147585.2574.1.camel@bsd.trippelsdorf.de>
In-Reply-To: <1109139161.620.9.camel@bsd.trippelsdorf.de>
References:  <200502230042.j1N0g1q79345@pobox.com> <1109139161.620.9.camel@bsd.trippelsdorf.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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: <Marvell Gigabit Ethernet> 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--



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