From: Andrew Lunn <andrew@lunn.ch>
To: "Robert P. J. Day" <rpjday@crashcourse.ca>
Cc: Linux kernel ntedev mailing list <netdev@vger.kernel.org>
Subject: Re: consequences of setting net_device_ops ndo_change_carrier()?
Date: Sun, 5 Aug 2018 16:58:31 +0200 [thread overview]
Message-ID: <20180805145831.GA26545@lunn.ch> (raw)
In-Reply-To: <alpine.LFD.2.21.1808050625220.7483@localhost.localdomain>
> > 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
prev parent reply other threads:[~2018-08-05 17:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-04 11:06 consequences of setting net_device_ops ndo_change_carrier()? Robert P. J. Day
2018-08-04 11:47 ` Jiri Pirko
2018-08-04 11:57 ` Robert P. J. Day
2018-08-04 17:26 ` Stephen Hemminger
2018-08-04 17:32 ` Robert P. J. Day
2018-08-05 1:11 ` Andrew Lunn
2018-08-05 10:43 ` Robert P. J. Day
2018-08-05 14:58 ` Andrew Lunn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180805145831.GA26545@lunn.ch \
--to=andrew@lunn.ch \
--cc=netdev@vger.kernel.org \
--cc=rpjday@crashcourse.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.