From: Kyle Moffett <kyle@moffetthome.net>
To: netdev <netdev@vger.kernel.org>,
"Linux-Kernel@Vger. Kernel. Org" <linux-kernel@vger.kernel.org>
Subject: Porting the ibm_newemac driver to use phylib (and other PHY/MAC questions)
Date: Fri, 17 Apr 2009 20:32:42 -0400 [thread overview]
Message-ID: <f73f7ab80904171732n41832d0hc62978e57bbcc32e@mail.gmail.com> (raw)
Hello,
I'm currently fiddling with a custom embedded prototype board using
the ibm_newemac driver with some currently-unsupported PHYs. Those
PHYs *are* supported by phylib, but the emac driver seems to have its
own PHY layer cribbed from the sungem driver. I'm curious if there's
some particular reason it hasn't been ported (aside from "nobody has
bothered yet").
I've temporarily hacked a PHY driver together for the moment, but it
would be much easier for us to maintain and update our board if the
PHY drivers were integrated. As a result I'm also interested in how
complicated it might be to port the driver (and possibly sungem as
well) over to phylib, if that is indeed feasible. Also, if I end up
going that route, are there others available with other hardware
variants who would be willing to test my patches on their boards?
As an aside, would there be any interest in adding an ethtool option
to enable the features of many PHYs which allow them to transmit data
even if their receive port has no link (specifically fiber cards, but
a few copper cards can do something similar). From a cursory glance,
a third "duplex" configuration option would seem to make the most
sense from an end-user point of view. Specifically, the existing
options are "full" (simultaneous transmit/receive), "half"
(time-multiplexed transmit/receive). Perhaps a "tx" or "tx-only"
option would be sensible? Now, the receiving card probably doesn't
need an "rx-only" mode as "full" should do that just fine; though
perhaps some cards with unidirectional-link-detection would use
"rx-only" to intentionally disable that support. Once an extra couple
constants are added to linux/ethtool.h and the appropriate config
options added to ethtool, it should just be up to the drivers to
detect and handle those config options, no?
Comments and suggestions much appreciated.
Cheers,
Kyle Moffett
next reply other threads:[~2009-04-18 0:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-18 0:32 Kyle Moffett [this message]
2009-04-20 12:29 ` Josh Boyer
2009-04-21 0:10 ` Kyle Moffett
2009-04-22 8:21 ` Benjamin Herrenschmidt
2009-04-30 15:04 ` Kyle Moffett
2009-04-30 15:11 ` Grant Likely
2009-04-30 15:33 ` Kyle Moffett
2009-04-30 21:18 ` Benjamin Herrenschmidt
2009-04-30 22:21 ` Kyle Moffett
2009-05-03 4:26 ` Kyle Moffett
2009-05-03 22:14 ` Benjamin Herrenschmidt
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=f73f7ab80904171732n41832d0hc62978e57bbcc32e@mail.gmail.com \
--to=kyle@moffetthome.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®