[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180805145831.GA26545@lunn.ch>
Date: Sun, 5 Aug 2018 16:58:31 +0200
From: Andrew Lunn <andrew@...n.ch>
To: "Robert P. J. Day" <rpjday@...shcourse.ca>
Cc: Linux kernel ntedev mailing list <netdev@...r.kernel.org>
Subject: Re: consequences of setting net_device_ops ndo_change_carrier()?
> > You should have a PHY device of some sort. Either a traditional
> > copper PHY, or an SFP module. There should be a driver for this PHY.
> > This could be one of those in drivers/net/phy. Or it could be
> > firmware running, running on a little microcontroller inside your
> > FPGA?
>
> in my case, it's properly in drivers/net/phy, so at least that part
> is normal. back to investigating ...
Hi Robert
O.K, that makes thing simpler.
PHYs are controlled via an MDIO bus. Do you have an MDIO bus driver?
You said this was an FPGA design. MDIO might be a standard cell you
can just drop in. If so, look around and see if there is an existing
driver for it. Otherwise you might have to write one. They are quite
simple, some examples are in driver/net/phy. Depending on the address
range, the MDIO bus driver can also be embedded in the MAC driver.
Andrew
Powered by blists - more mailing lists