From: jason@lakedaemon.net (Jason Cooper)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: ixp4xx: Add "ask" handler for timer interrupts
Date: Sat, 1 Dec 2012 16:45:25 -0500 [thread overview]
Message-ID: <20121201214525.GI12509@titan.lakedaemon.net> (raw)
In-Reply-To: <201212012125.51935.arnd@arndb.de>
On Sat, Dec 01, 2012 at 09:25:51PM +0000, Arnd Bergmann wrote:
> On Saturday 01 December 2012, Alexander Shiyan wrote:
> > + switch (d->irq) {
> > + case IRQ_IXP4XX_TIMER1:
> > + *IXP4XX_OSST = IXP4XX_OSST_TIMER_1_PEND;
> > + break;
> > + case IRQ_IXP4XX_TIMER2:
> > + *IXP4XX_OSST = IXP4XX_OSST_TIMER_2_PEND;
> > + break;
> > + case IRQ_IXP4XX_TIMESTAMP:
> > + *IXP4XX_OSST = IXP4XX_OSST_TIMER_TS_PEND;
> > + break;
> > + case IRQ_IXP4XX_WDOG:
> > + *IXP4XX_OSST = IXP4XX_OSST_TIMER_WDOG_PEND;
> > + break;
>
> Since you are touching these lines, it probably makes sense to convert them
> to use writel_relaxed() in the process. Dereferencing a volatile pointer
> in order to do MMIO is strongly discouraged, see
> Documentation/volatile-considered-harmful.txt
Arnd,
I took a quick look at the ixp4xx code when I saw this. It appears the
entire sub-arch is written this way :-( Perhaps it would be better to
do a cleanup patch before this one? I didn't mention it in my initial
comment because it looks like quite a bit of work.
In either case, it's all cleanup, so it shouldn't cause a dependency
headache.
Alexander, if you're so inclined, a cleanup series would be much
appreciated. If you don't have the time, no problem, just make the
changes suggested by Arnd and I and we'll get to the cleanup eventually.
thx,
Jason.
next prev parent reply other threads:[~2012-12-01 21:45 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-01 7:33 [PATCH] ARM: ixp4xx: Add "ask" handler for timer interrupts Alexander Shiyan
2012-12-01 13:05 ` Jason Cooper
2012-12-01 13:14 ` Re[2]: " Alexander Shiyan
2012-12-01 15:41 ` Jason Cooper
2012-12-01 21:25 ` Arnd Bergmann
2012-12-01 21:45 ` Jason Cooper [this message]
2012-12-02 0:11 ` Arnd Bergmann
2012-12-02 6:02 ` Re[2]: " Alexander Shiyan
2012-12-02 13:13 ` Arnd Bergmann
2012-12-02 13:55 ` Re[4]: " Alexander Shiyan
2012-12-03 23:40 ` Arnd Bergmann
2012-12-02 8:09 ` [PATCH 1/2] ARM: ixp4xx: Moving the timer flags control in ixp4xx_irq_ack() procedure Alexander Shiyan
2012-12-02 8:09 ` [PATCH 2/2] ARM: ixp4xx: Using gpiolib rather than a private GPIO API Alexander Shiyan
2012-12-02 13:25 ` Arnd Bergmann
2012-12-02 13:24 ` [PATCH 1/2] ARM: ixp4xx: Moving the timer flags control in ixp4xx_irq_ack() procedure Arnd Bergmann
2012-12-02 13:37 ` Mikael Pettersson
2012-12-02 13:50 ` Re[2]: " Alexander Shiyan
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=20121201214525.GI12509@titan.lakedaemon.net \
--to=jason@lakedaemon.net \
--cc=linux-arm-kernel@lists.infradead.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