Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Oct 2008 11:51:22 +0800
From:      "Sepherosa Ziehau" <sepherosa@gmail.com>
To:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: How to support an Ethernet PHY without ID registers?
Message-ID:  <ea7b9c170810072051i637f6963v209a3fd1d9c123fa@mail.gmail.com>
In-Reply-To: <48EBB3D6.600@incunabulum.net>
References:  <48EBB3D6.600@incunabulum.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 8, 2008 at 3:09 AM, Bruce M Simpson <bms@incunabulum.net> wrote:
> Hi,
>
> I have been trying to get FreeBSD onto the Freecom FSG3 Storage Gateway.
> It is an xScale based ARM system.
>
> Whilst the npe(4) driver appears to attach, the PHY does not. It is a
> Realtel RTL8305SB switch chip in dual miibus mode. Unfortunately the
> RTL8305SB does not have ID registers. The RTL8305SC does, but it's a totally

Are you sure you could read from BMSR?  Return invalid value from BMSR
is the usual cause of miibus attaching/probing failure.  For ID1/ID2
reading, you could just fake some values in npe(4)'s miibus_readreg
implementation.

Best Regards,
sephe

-- 
Live Free or Die



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