From: Joakim Tjernlund <joakim.tjernlund@transmode.se>
To: Li Yang-r58472 <LeoLi@freescale.com>
Cc: linuxppc-dev Development <linuxppc-dev@ozlabs.org>,
Netdev <netdev@vger.kernel.org>
Subject: RE: [PATCH] ucc_geth.c, make PHY device optional.
Date: Tue, 03 Jul 2007 09:20:46 +0200 [thread overview]
Message-ID: <1183447246.20673.155.camel@gentoo-jocke.transmode.se> (raw)
In-Reply-To: <989B956029373F45A0B8AF0297081890D837CB@zch01exm26.fsl.freescale.net>
On Tue, 2007-07-03 at 11:42 +0800, Li Yang-r58472 wrote:
> > -----Original Message-----
> > From: netdev-owner@vger.kernel.org
> [mailto:netdev-owner@vger.kernel.org] On
> > Behalf Of Joakim Tjernlund
> > Sent: Tuesday, July 03, 2007 8:52 AM
> > To: 'linuxppc-dev Development'; 'Netdev'; Li Yang-r58472
> > Subject: [PATCH] ucc_geth.c, make PHY device optional.
> >
> > > This patch makes the PHY optional for ucc_geth.c ethernet driver.
> > > This is useful to support a direct mii to mii connection to, for
> example,
> > > a onboard swicth.
> > >
> > > Signed-off-by: Joakim Tjernlund <joakim.tjernlund@transmode.se>
> > ----
> Hi Joakim,
>
> I'm wondering if we really need to have the option to disable phylib.
maybe, but it has to be dynamic too. I need to use PHY on UCC2 and mii
on UCC3 and UCC4.
> Actually we have made phylib selected by default for ucc_geth. Many L2
> switch chips have the capacity to be controlled. Therefore they can be
> managed as a phy device.
Yes, they can be but why force a PHY impl. when its is of no use? The
only thing the eth driver needs from the it is speed and duplex. If
these are fixed, you don't need to talk with a PHY.
> For the MII interface which is not
> configurable, shouldn't we use the fixed phy support from Vitaly?
Well, I think the the fixed phy is great when your eth driver requires a
PHY, but it is a workaround with extra processing overhead. IMHO the
best impl. is to make the PHY optional in the eth driver and as you can
see from the patch, that was really simple.
An useful extension would be to add a new propety in the DTS to hold
initial speed and duplex(perhaps extend phy-connection-type). This
would be useful for the fixed driver too as one could derive speed and
duplex for the fixed phy from that property instead of creating a fixed
phy for each speed and duplex one want to support.
Jocke
next prev parent reply other threads:[~2007-07-03 7:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-29 18:49 [PATCH] ucc_geth.c, make PHY device optional Joakim Tjernlund
2007-07-03 0:52 ` Joakim Tjernlund
2007-07-03 3:42 ` Li Yang-r58472
2007-07-03 7:20 ` Joakim Tjernlund [this message]
2007-07-03 8:22 ` Li Yang-r58472
2007-07-03 11:19 ` Joakim Tjernlund
2007-07-03 11:38 ` Li Yang-r58472
2007-07-04 8:50 ` Joakim Tjernlund
2007-07-04 13:13 ` Li Yang-r58472
2007-07-04 13:32 ` Segher Boessenkool
2007-07-04 16:44 ` Joakim Tjernlund
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=1183447246.20673.155.camel@gentoo-jocke.transmode.se \
--to=joakim.tjernlund@transmode.se \
--cc=LeoLi@freescale.com \
--cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).