All of lore.kernel.org
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: Kim Phillips <kim.phillips@freescale.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH 1/4 v2] powerpc: document max-speed and interface-type properties
Date: Wed, 18 Apr 2007 01:18:24 +0200	[thread overview]
Message-ID: <f170b2c44ae8a76dd4d35ceb94a624b0@kernel.crashing.org> (raw)
In-Reply-To: <20070417152712.51c7348f.kim.phillips@freescale.com>

>> "compatible" means "what kind of device is this", for the
>> purposes of a client program (i.e., Linux) matching a
>> driver to it (i.e., it should say what kind of PHY it
>> is, and phylib should use that info -- in most cases,
>> it won't need more than the least specific entry in
>> "compatible", i.e. "rgmii" or whatever.
>>
>
> sorry, I disagree; for me, a compatible entry in the PHY node would 
> look
> something like "marvell"

which would be completely wrong

> or "m88e11x1".

It should be something like "m88e11x1\0m88e1xxx\0rgmii" instead.
A "compatible" property can contain many values, ordered from
most exact to least exact.

> "rgmii" might indeed be
> something that PHY supports, but it tells the driver nothing about how
> to enable it (whereas "m88e11x1" would).  The rgmii designation in
> question in this thread is not a property of the PHY, but of the board.

It certainly is a property of the PHY as well.

>> So those UCCs should have a different "compatible" entry.
>> It's not rocket science.
>
> It's referring to the name of the driver,

No, not at all.  No device tree entry name/value has any
direct correspondence with Linux device driver names
(in principle; things can "accidentally" have the same
name, of course).

>> max-speed of connection = min(max-speed of enet, max-speed
>> of PHY) -- and both of those are implied by their respective
>> "compatible" properties.
>>
>
> Again, max-speed is exclusively for configuring the UCC itself,
> regardless of the connection speed.

If that is really true, and the value of that property
has nothing to do with the MAC<->PHY data channel, it should
have a different (not that generic) name.


Segher

  reply	other threads:[~2007-04-17 23:18 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-13  6:25 [PATCH 1/4 v2] powerpc: document max-speed and interface-type properties Kim Phillips
2007-04-13 17:00 ` Kumar Gala
2007-04-13 17:36   ` Kim Phillips
2007-04-13 17:42     ` Kumar Gala
2007-04-13 17:52       ` Kim Phillips
2007-04-13 17:59         ` Kumar Gala
2007-04-13 19:02 ` Segher Boessenkool
2007-04-16 15:25   ` Kim Phillips
2007-04-16 15:34     ` Kumar Gala
2007-04-16 15:47       ` Segher Boessenkool
2007-04-16 16:57         ` Kim Phillips
2007-04-16 23:18           ` Segher Boessenkool
2007-04-17  0:31             ` Kim Phillips
2007-04-17 10:25               ` Segher Boessenkool
2007-04-17 20:27                 ` Kim Phillips
2007-04-17 23:18                   ` Segher Boessenkool [this message]
2007-04-18  1:13                     ` Kim Phillips
2007-04-18 10:34                       ` Segher Boessenkool
2007-04-18 21:48                         ` Kim Phillips
2007-04-20  8:34                           ` Segher Boessenkool
2007-04-20 19:13                             ` Andy Fleming
2007-04-21 17:22                               ` Segher Boessenkool
2007-04-23 16:58                                 ` Andy Fleming
2007-04-23 21:24                                   ` Segher Boessenkool
2007-04-16 18:40         ` Andy Fleming
2007-04-16 23:25           ` Segher Boessenkool
2007-04-17  7:04             ` Andy Fleming
2007-04-17 10:40               ` Segher Boessenkool

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=f170b2c44ae8a76dd4d35ceb94a624b0@kernel.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=kim.phillips@freescale.com \
    --cc=linuxppc-dev@ozlabs.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 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.