From: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
To: Matt Sealey <matt-sEEEE4iEDtaXzmuOJsdVMQ@public.gmane.org>
Cc: linuxppc-dev list
<linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org>,
devicetree-discuss list
<devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org>
Subject: Re: GPIO - marking individual pins (not) available in device tree
Date: Tue, 28 Oct 2008 11:34:52 +1100 [thread overview]
Message-ID: <20081028003452.GE26424@yookeroo.seuss> (raw)
In-Reply-To: <4905E857.6040206-sEEEE4iEDtaXzmuOJsdVMQ@public.gmane.org>
On Mon, Oct 27, 2008 at 11:12:07AM -0500, Matt Sealey wrote:
>
>
> David Gibson wrote:
>> On Sun, Oct 26, 2008 at 04:13:26PM -0500, Matt Sealey wrote:
>>>
>>> Mitch Bradley wrote:
>>
>> device_type in 1275 defines the runtime method interface. It's *not*
>> for declaring the general class of the device, although it often
>> matches that in practice.
>
> It *is* for declaring the general class of the device, even if it's
> purpose is to make it known that it implements all the required
> methods and therefore acts in a certain predefined way when those
> methods are used; it's not a necessary property but it is a USEFUL
> property:
No, it's really not. There are only two ways device class information
can be useful:
- for human readability. For this purpose the node name with
the generic names convention suffices.
- for manipulating the device without having a driver specific
to the device. This works *only* if there is a class-defined protocol
for doing this manipulation. Clearly, this can't exist unless the
firmware provides some sort of runtime service to abstract away
differences between devices. Flat trees cannot of themselves provide
such a thing, and so should not advertise that they can with
device_type.
Even if a firmware did provide run time services, but they weren't in
the form of the OF defined method interface, they should not use
device_type, but some other property to advertise their own particular
brand of runtime service interface.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
next prev parent reply other threads:[~2008-10-28 0:34 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-23 21:32 GPIO - marking individual pins (not) available in device tree Matt Sealey
2008-10-23 22:22 ` Mitch Bradley
2008-10-23 23:05 ` Matt Sealey
2008-10-24 0:52 ` Mitch Bradley
[not found] ` <49011C42.2020101-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2008-10-24 3:29 ` David Gibson
[not found] ` <20081024032944.GE4267-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org>
2008-10-24 4:17 ` Mitch Bradley
[not found] ` <49014C69.8020408-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2008-10-24 4:45 ` David Gibson
2008-10-24 22:14 ` Matt Sealey
2008-10-26 23:47 ` David Gibson
2008-10-27 15:40 ` Matt Sealey
2008-10-27 18:34 ` Anton Vorontsov
2008-10-27 18:56 ` Matt Sealey
[not found] ` <49060EC3.1070704-sEEEE4iEDtaXzmuOJsdVMQ@public.gmane.org>
2008-10-27 20:10 ` Anton Vorontsov
[not found] ` <20081027201023.GA18642-wnGakbxT3iijyJ0x5qLZdcN33GVbZNy3@public.gmane.org>
2008-10-27 21:56 ` Matt Sealey
[not found] ` <49063929.3060900-sEEEE4iEDtaXzmuOJsdVMQ@public.gmane.org>
2008-10-27 23:12 ` Anton Vorontsov
2008-10-27 23:40 ` Anton Vorontsov
2008-10-28 0:47 ` Matt Sealey
[not found] ` <20081027231221.GA22008-wnGakbxT3iijyJ0x5qLZdcN33GVbZNy3@public.gmane.org>
2008-10-28 1:11 ` Matt Sealey
2008-10-28 2:37 ` Anton Vorontsov
[not found] ` <20081028023722.GA30057-wnGakbxT3iijyJ0x5qLZdcN33GVbZNy3@public.gmane.org>
2008-10-28 16:53 ` Matt Sealey
2008-10-28 17:39 ` Grant Likely
[not found] ` <fa686aa40810281039v4f22a464u3eb1d421e1226fc8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-10-28 19:46 ` Matt Sealey
[not found] ` <4905E0DC.104-sEEEE4iEDtaXzmuOJsdVMQ@public.gmane.org>
2008-10-28 0:15 ` David Gibson
2008-10-28 0:51 ` Matt Sealey
2008-10-28 1:50 ` David Gibson
[not found] ` <4906620B.7080308-sEEEE4iEDtaXzmuOJsdVMQ@public.gmane.org>
2008-10-28 5:20 ` Grant Likely
2008-10-24 22:03 ` Matt Sealey
2008-10-24 22:20 ` Stephen Neuendorffer
2008-10-26 21:39 ` Matt Sealey
2008-10-24 23:44 ` Mitch Bradley
[not found] ` <49025DE0.6070403-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2008-10-26 21:13 ` Matt Sealey
2008-10-26 23:53 ` David Gibson
[not found] ` <20081026235303.GE22339-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org>
2008-10-27 16:12 ` Matt Sealey
[not found] ` <4905E857.6040206-sEEEE4iEDtaXzmuOJsdVMQ@public.gmane.org>
2008-10-27 16:35 ` Scott Wood
2008-10-27 17:05 ` Matt Sealey
2008-10-27 17:25 ` Scott Wood
2008-10-27 17:49 ` Matt Sealey
2008-10-27 17:54 ` Scott Wood
[not found] ` <49060047.2010809-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2008-10-28 0:38 ` David Gibson
2008-10-28 0:34 ` David Gibson [this message]
2008-10-24 4:58 ` David Gibson
[not found] ` <4900F90B.80703-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2008-10-24 3:27 ` David Gibson
2008-10-24 16:41 ` Anton Vorontsov
2008-10-24 17:01 ` Anton Vorontsov
[not found] ` <20081024170128.GA20577-wnGakbxT3iijyJ0x5qLZdcN33GVbZNy3@public.gmane.org>
2008-10-24 22:17 ` Matt Sealey
2008-10-24 22:37 ` Anton Vorontsov
-- strict thread matches above, loose matches on Subject: below --
2008-10-28 13:31 Konstantinos Margaritis
2008-10-28 14:11 ` Anton Vorontsov
2008-10-28 14:15 ` Grant Likely
[not found] ` <fa686aa40810280715m3275a302jd43ab517d2d455fc-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-10-28 17:06 ` Matt Sealey
2008-10-28 17:32 ` Grant Likely
2008-10-28 23:37 ` David Gibson
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=20081028003452.GE26424@yookeroo.seuss \
--to=david-xt8fgy+axnrb3ne2bgzf6laj5h9x9tb+@public.gmane.org \
--cc=devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
--cc=linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
--cc=matt-sEEEE4iEDtaXzmuOJsdVMQ@public.gmane.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