From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: consequences of setting net_device_ops ndo_change_carrier()? Date: Sun, 5 Aug 2018 16:58:31 +0200 Message-ID: <20180805145831.GA26545@lunn.ch> References: <20180805011121.GA19202@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Linux kernel ntedev mailing list To: "Robert P. J. Day" Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:55786 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726240AbeHERDZ (ORCPT ); Sun, 5 Aug 2018 13:03:25 -0400 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: > > 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