[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <C8443D0743D26F4388EA172BF4E2A7A93E9AD898@DBDE01.ent.ti.com>
Date: Wed, 25 Jul 2012 14:01:21 +0000
From: "Mohammed, Afzal" <afzal@...com>
To: Sergei Shtylyov <sshtylyov@...sta.com>
CC: "grant.likely@...retlab.ca" <grant.likely@...retlab.ca>,
"rob.herring@...xeda.com" <rob.herring@...xeda.com>,
"rob@...dley.net" <rob@...dley.net>,
"linux@....linux.org.uk" <linux@....linux.org.uk>,
"Nori, Sekhar" <nsekhar@...com>, "Hilman, Kevin" <khilman@...com>,
"a.zummo@...ertech.it" <a.zummo@...ertech.it>,
"tony@...mide.com" <tony@...mide.com>,
"devicetree-discuss@...ts.ozlabs.org"
<devicetree-discuss@...ts.ozlabs.org>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"davinci-linux-open-source@...ux.davincidsp.com"
<davinci-linux-open-source@...ux.davincidsp.com>,
"rtc-linux@...glegroups.com" <rtc-linux@...glegroups.com>
Subject: RE: [PATCH v2 1/6] rtc: omap: kicker mechanism support
Hi Sergei,
On Wed, Jul 25, 2012 at 16:45:29, Sergei Shtylyov wrote:
> > +/* OMAP_RTC_KICKER values */
> > +#define KICK0_VALUE (0x83e70b13)
> > +#define KICK1_VALUE (0x95a4f1e0)
>
> Parens not needed around simple literals.
Thanks for catching it
>
> > static void __iomem *rtc_base;
> >
> > #define rtc_read(addr) __raw_readb(rtc_base + (addr))
> > #define rtc_write(val, addr) __raw_writeb(val, rtc_base + (addr))
> >
> > +#define rtc_writel(val, addr) writel(val, rtc_base + (addr))
> > +
>
> Why not __raw_writel() like the above functions?
This driver would be used in AM335X, it being ARMv7, writel would be
safe (existing __raw_readb/__raw_writeb too needs to be replaced)
Regards
Afzal
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists