From: Segher Boessenkool <segher@kernel.crashing.org>
To: Kim Phillips <kim.phillips@freescale.com>
Cc: linuxppc-dev <linuxppc-dev@ozlabs.org>
Subject: Re: [PATCH v2] update crypto node definition and device tree instances
Date: Tue, 1 Jul 2008 01:27:58 +0200 [thread overview]
Message-ID: <f34059884cc9de85e6e0fe8a934ae06e@kernel.crashing.org> (raw)
In-Reply-To: <20080630173008.d6762380.kim.phillips@freescale.com>
>> Yes. As a side note, since there are multiple devices that contain
>> e.g. a sec-1.0, it would be prudent to describe the exact incarnation
>> in the device tree, like "mpc8272-sec" or something, in either "model"
>
> but 'fsl,sec-X.Y' /does/ describe the exact incarnation,
No it doesn't. If it's on a different SoC, it can have different
bugs. It might be _meant_ to be exactly the same, but that's not
the same thing.
> whereas
> 'fsl,mpc8349-sec' /does not/. "fsl,mpc8349-sec' might mean the SEC 2.1
> or the SEC 2.4, it depends on the revision of the mpc8349.
Oh, nasty. That just means you'll need to put the revision of
the 8349 in there as well, though -- "fsl,mpc8349-rev2-sec" or
something.
>> or "compatible", just in case a problem shows up with one of them.
>
> I thought 'model' was superseded by 'compatible';
"model" is still a valid property. "model" shouldn't be needed
to find which device driver to use, but any specific device driver
can use it just fine.
> that's why it's taken out here, along with device_type.
"device_type" simply isn't useful for flat device trees (in pretty
much all cases), since it describes the OF programming model of a
device, and almost none of that applies to flat trees. So yeah,
taking that out is a good thing (esp. in a case like this, where
it isn't defined anywhere what device_type "crypto" means).
>>>> I can't find a manual online for "freescale sec"; googling
>>>> for "freescale sec-1.0" finds a manual for the PowerQUICC I;
>>>> is that the right one? I don't know, so the binding needs
>>>> to explain it to me.
>>>
>>> the binding shouldn't be responsible for google's shortcomings
>>
>> The binding needs to describe what device it is for. I am a stupid
>> user, just like most users, so if the binding doesn't tell me I turn
>> to google. Don't blame them for not finding it; the binding should
>> have told me in the first place!
>
> Again, I don't see how google's results are pertinent in this
> discussion.
It's not about google. It's about a user who needs to find out
what a certain "compatible" entry means, or who needs to find out
what value to use for a certain device.
> btw, the title for the binding is:
>
> g) Freescale SOC SEC Security Engines
>
> Is that what you are looking for?
I'm not looking for the binding, I know where it is, thanks; I'm
looking for information in the binding that tells me what "compatible"
value means what.
> If not, what precisely? a list of
> all the parts? There's an SEC in every mpc8[35]xxE!
You could do a list of all, sure. You could also say what a
"compatible" value looks like, and give some representative
examples.
>> The binding at a minimum should describe how to identify each
>> unique version from the device tree, no matter how miniscule
>> those differences are. Just a specific "compatible" value will
>> do.
>
> I'm at a loss; isn't that what this patch does?
I lost the patch, sorry. I came into this thread at the point where
Grant said that "fsl,sec1.0" is a horrible "compatible" value.
> Currently the driver matches on "fsl,sec2.0", and if needs be, will
> call of_device_is_compatible with the version number that introduces
> the feature it wants to implement.
That's okay I suppose. Each device tree still should put the exact
version of the chip in there as well.
Segher
next prev parent reply other threads:[~2008-06-30 23:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-27 16:52 [PATCH v2] update crypto node definition and device tree instances Kim Phillips
2008-06-28 5:29 ` Grant Likely
2008-06-28 23:37 ` Segher Boessenkool
2008-06-30 16:04 ` Kim Phillips
2008-06-30 16:55 ` Segher Boessenkool
2008-06-30 18:14 ` Kim Phillips
2008-06-30 21:19 ` Segher Boessenkool
2008-06-30 22:30 ` Kim Phillips
2008-06-30 23:27 ` Segher Boessenkool [this message]
2008-07-01 0:38 ` Kim Phillips
2008-06-30 15:56 ` Kim Phillips
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=f34059884cc9de85e6e0fe8a934ae06e@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.