devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: Sergei Shtylyov <sshtylyov@mvista.com>
Cc: devicetree-discuss@lists.ozlabs.org, grant.likely@secretlab.ca,
	davinci-linux-open-source@linux.davincidsp.com,
	Wolfgang Denk <wd@denx.de>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] arm, davinci: configure davinci aemif chipselects through OF
Date: Mon, 05 Dec 2011 11:50:41 +0100	[thread overview]
Message-ID: <4EDCA201.4080505@denx.de> (raw)
In-Reply-To: <4EDB66C9.9050302@mvista.com>

Hello Sergei,

Sergei Shtylyov wrote:
> Hello.
> 
> On 04-12-2011 13:41, Heiko Schocher wrote:
> 
>> Signed-off-by: Heiko Schocher<hs@denx.de>
>> Cc: davinci-linux-open-source@linux.davincidsp.com
>> Cc: devicetree-discuss@lists.ozlabs.org
>> Cc: linux-arm-kernel@lists.infradead.org
>> Cc: grant.likely@secretlab.ca
>> Cc: Sekhar Nori<nsekhar@ti.com>
>> Cc: Kevin Hilman<khilman@ti.com>
>> Cc: Wolfgang Denk<wd@denx.de>
> 
>> diff --git a/arch/arm/mach-davinci/aemif.c
>> b/arch/arm/mach-davinci/aemif.c
>> index 1ce70a9..12c559f 100644
>> --- a/arch/arm/mach-davinci/aemif.c
>> +++ b/arch/arm/mach-davinci/aemif.c
> [...]
>> @@ -131,3 +138,99 @@ int davinci_aemif_setup_timing(struct
>> davinci_aemif_timing *t,
>>       return 0;
>>   }
>>   EXPORT_SYMBOL(davinci_aemif_setup_timing);
>> +
>> +#if defined(CONFIG_OF)
>> +static int dv_get_value(struct device_node *np, const char *name)
>> +{
>> +    const u32 *data;
>> +    int len;
>> +
>> +    data = of_get_property(np, name,&len);
>> +    if (data)
>> +        return be32_to_cpu(readl(data));
> 
>    Why readl() here?! Device tree is not a peripheral device...
> 
>> +
>> +    return -EINVAL;
>> +}
> 
>    Isn't there already a standard helper for that, of_property_read_u32()?

Yep, fixed that.

Thanks!

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

  reply	other threads:[~2011-12-05 10:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-04  9:41 [PATCH] arm,davinci: configure davinci aemif chipselects through OF Heiko Schocher
     [not found] ` <1322991679-20947-1-git-send-email-hs-ynQEQJNshbs@public.gmane.org>
2011-12-04 12:25   ` [PATCH] arm, davinci: " Sergei Shtylyov
2011-12-05 10:50     ` Heiko Schocher [this message]
2011-12-04 12:33   ` Sergei Shtylyov
     [not found]     ` <4EDB68B7.8080609-Igf4POYTYCDQT0dZR+AlfA@public.gmane.org>
2011-12-05 11:49       ` Heiko Schocher
2011-12-07 10:44   ` [PATCH] arm,davinci: " Nori, Sekhar
     [not found]     ` <DF0F476B391FA8409C78302C7BA518B603EFB2-Er742YJ7I/eIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2011-12-08  7:47       ` [PATCH] arm, davinci: " Heiko Schocher
     [not found]         ` <4EE06B79.7070804-ynQEQJNshbs@public.gmane.org>
2011-12-08  8:19           ` [PATCH] arm,davinci: " Nori, Sekhar
     [not found]             ` <DF0F476B391FA8409C78302C7BA518B6040A03-Er742YJ7I/eIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2011-12-08  9:06               ` [PATCH] arm, davinci: " Heiko Schocher
     [not found]                 ` <4EE07E27.8090602-ynQEQJNshbs@public.gmane.org>
2011-12-08 10:29                   ` [PATCH] arm,davinci: " Nori, Sekhar
     [not found]                     ` <DF0F476B391FA8409C78302C7BA518B6040CBB-Er742YJ7I/eIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2011-12-08 15:48                       ` [PATCH] arm, davinci: " Arnd Bergmann
     [not found]                         ` <201112081548.08548.arnd-r2nGTMty4D4@public.gmane.org>
2011-12-13 18:34                           ` [PATCH] arm,davinci: " Nori, Sekhar
2011-12-14 14:35                             ` [PATCH] arm, davinci: " Ben Gardiner
     [not found]                               ` <CAPcSpELkWJpP9-3UoNHF_aWSdd_b0FHNooNm+zF7UTjHEBC_vg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-15 17:10                                 ` [PATCH] arm,davinci: " Nori, Sekhar

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=4EDCA201.4080505@denx.de \
    --to=hs@denx.de \
    --cc=davinci-linux-open-source@linux.davincidsp.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=grant.likely@secretlab.ca \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=sshtylyov@mvista.com \
    --cc=wd@denx.de \
    /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;
as well as URLs for NNTP newsgroup(s).