From: Benoit Cousson <bcousson@baylibre.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: "Hebbar, Gururaja" <gururaja.hebbar@ti.com>,
"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
"khilman@linaro.org" <khilman@linaro.org>,
"tony@atomide.com" <tony@atomide.com>,
"rob.herring@calxeda.com" <rob.herring@calxeda.com>,
"a.zummo@towertech.it" <a.zummo@towertech.it>,
"rob@landley.net" <rob@landley.net>,
"grant.likely@linaro.org" <grant.likely@linaro.org>,
"rtc-linux@googlegroups.com" <rtc-linux@googlegroups.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"davinci-linux-open-source@linux.davincidsp.com"
<davinci-linux-open-source@linux.davincidsp.com>,
"sudhakar.raj@ti.com" <sudhakar.raj@ti.com>
Subject: Re: [PATCH v3 1/2] rtc: omap: update of_device_id to reflect latest ip revisions
Date: Fri, 16 Aug 2013 20:12:46 +0200 [thread overview]
Message-ID: <520E6B9E.5080706@baylibre.com> (raw)
In-Reply-To: <20130816172022.GA3719@e106331-lin.cambridge.arm.com>
Hi Mark,
On 16/08/2013 19:20, Mark Rutland wrote:
> Hi Benoit,
>
> On Fri, Aug 16, 2013 at 03:15:57PM +0100, Benoit Cousson wrote:
>> Hi Gururaja,
>>
>> On 16/08/2013 13:36, Hebbar, Gururaja wrote:
>>> The syntax of compatible property in DT is to mention the Most specific
>>> match to most generic match.
>>>
>>> Since AM335x is the platform with latest IP revision, add it 1st in
>>> the device id table.
>>
>> I don't understand why? The order should not matter at all.
>>
>> I've tried to follow the thread you had with Mark on the v2, but AFAIK,
>> you've never answered to his latest question.
>>
>> Moreover, checking the differences between the Davinci and the am3352
>> RTC IP, I would not claim that both are compatible.
>>
>> Sure you can use the am3352 with the Davinci driver, but you will lose
>> the wakeup functionality without even being notify about that.
>
> Could you describe the wakeup functionality, and how it differs between
> the am3352-rtc and the da830-rtc?
AFAIK, da830-rtc does not have that functionality at all. This is
something that was added to the am3352-rtc.
> As I understand it, the am3352 functionality is a superset of the da830
> functionality. You can use the old driver, and get some functionality,
> or use the new driver and get it all.
Mmm, what your are saying now seems to make sense to me as well. So I'm
even more confused :-)
> That means that am3352-rtc is compatible with da830. As long as the
> kernel first checks for am3352-rtc, there will be *no* loss of
> functionality. All this does is enable older kernels to use the hardware
> in some fashion, and given the older kernel didn't have support for the
> am3352-rtc features, this is a *gain* in functionality, not a loss.
>
>>
>> For my point of view, compatible mean that the HW will still be fully
>> functional with both versions of the driver, which is not the case here.
>
> What? A driver for any entry in the compatible list should be able to
> drive the hardware to *some* level of functionality. We list from
> most-specific to most-general to allow a graceful degradation from fully
> supported to bare minimum functionality.
OK, but where is it written in the DT spec that this is what the
compatible is supposed to mean?
I'm quoting it again:
"
The compatible property value consists of one or more strings that
define the specific programming model for the device. This list of
strings should be used by a client program for device driver selection.
The property value consists of a concatenated list of null terminated
strings, from most specific to most general. They allow a device to
express its compatibility with a family of similar devices, potentially
allowing a single device driver to match against several devices.
"
The graceful degradation or the loss of functionality is not something
that I really understand in that text.
Anyway, I'm probably too tired... I'll go back home, and think about
that after the week-end.
Regards,
Benoit
next prev parent reply other threads:[~2013-08-16 18:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-16 11:36 [PATCH v3 0/2] rtc: omap: update AM335x rtc ip revision Hebbar, Gururaja
2013-08-16 11:36 ` [PATCH v3 1/2] rtc: omap: update of_device_id to reflect latest ip revisions Hebbar, Gururaja
2013-08-16 14:15 ` Benoit Cousson
2013-08-16 15:41 ` Sekhar Nori
2013-08-16 16:33 ` Benoit Cousson
2013-08-23 8:50 ` Sekhar Nori
2013-08-23 15:10 ` Benoit Cousson
2013-08-23 16:17 ` Sekhar Nori
2013-08-16 17:20 ` Mark Rutland
2013-08-16 18:12 ` Benoit Cousson [this message]
2013-08-19 14:45 ` Mark Rutland
2013-08-16 11:36 ` [PATCH v3 2/2] ARM: dts: AM33XX: update rtc node compatibility Hebbar, Gururaja
2013-08-16 12:14 ` [PATCH v3 0/2] rtc: omap: update AM335x rtc ip revision Gururaja Hebbar
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=520E6B9E.5080706@baylibre.com \
--to=bcousson@baylibre.com \
--cc=a.zummo@towertech.it \
--cc=akpm@linux-foundation.org \
--cc=davinci-linux-open-source@linux.davincidsp.com \
--cc=devicetree@vger.kernel.org \
--cc=grant.likely@linaro.org \
--cc=gururaja.hebbar@ti.com \
--cc=khilman@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=rob.herring@calxeda.com \
--cc=rob@landley.net \
--cc=rtc-linux@googlegroups.com \
--cc=sudhakar.raj@ti.com \
--cc=tony@atomide.com \
/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