Devicetree
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
To: Segher Boessenkool
	<segher-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
Cc: linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org,
	devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org,
	Jon Smirl <jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: [PATCH] of: i2c: improve last resort compatible entry selection
Date: Wed, 30 Jul 2008 08:42:02 -0600	[thread overview]
Message-ID: <20080730144202.GB21958@secretlab.ca> (raw)
In-Reply-To: <043095cdcd52bb7af5cf4373b249b302-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>

On Mon, Jul 28, 2008 at 09:47:21AM +0200, Segher Boessenkool wrote:
>>>  A reasonable "compatible" value would be something like
>>> "serial-eeprom-24c32".
>>>  You can go a little bit more generic than that, if you write up in
>>>  your binding how the driver should figure out the device size and
>>>  the protocol used.
>>
>> Matching on "serial-eeprom-24c32" requires me to convince the at24
>> authors to add that string as an alias binding for their driver.
>
> No, it requires the IIC subsystem to get fixed and not use OF
> "compatible" values as module alias names.

Indeed; the device tree is just a data structure with a well defined
usage model.  It is the kernel's job to adapt that data into a form that
it can use.

>> How
>> about "serial-eeprom,24c32" or "generic,24x32"?
>
> Neither "serial-eeprom" nor "generic" is the name of a vendor, so
> no.  The comma has a well-defined meaning.  Why would a comma be
> easier than a dash for your device matching code, anyway?

Just to add my voice; I 100% agree.  If it is not documented, and it
doesn't fit with established conventions, then it shouldn't be used in
the compatible field.

g.

       reply	other threads:[~2008-07-30 14:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080714175437.GA5230@polina.dev.rtsoft.ru>
     [not found] ` <20080727001119.GB12191@secretlab.ca>
     [not found]   ` <9e4733910807262205l2db8d662u9dd2e517282686f8@mail.gmail.com>
     [not found]     ` <fa686aa40807262235l47bff0bfi15d86a6e171d6775@mail.gmail.com>
     [not found]       ` <9e4733910807270721h5777bb80u9f3d25413a62883c@mail.gmail.com>
     [not found]         ` <77a246d166f3eafb4d6a5d899ff86945@kernel.crashing.org>
     [not found]           ` <9e4733910807271500l23fd2b12n940197474a5291df@mail.gmail.com>
     [not found]             ` <043095cdcd52bb7af5cf4373b249b302@kernel.crashing.org>
     [not found]               ` <043095cdcd52bb7af5cf4373b249b302-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2008-07-30 14:42                 ` Grant Likely [this message]
2008-07-30 20:20                   ` [PATCH] of: i2c: improve last resort compatible entry selection Jon Smirl

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=20080730144202.GB21958@secretlab.ca \
    --to=grant.likely-s3s/wqlpoipyb63q8fvjnq@public.gmane.org \
    --cc=devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
    --cc=jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
    --cc=segher-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@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