From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Wim Van Sebroeck <wim@iguana.be>
Cc: Felipe Balbi <me@felipebalbi.com>,
linux-kernel@vger.kernel.org, Tony Lindgren <tony@atomide.com>,
Andrew Morton <akpm@linux-foundation.org>,
"George G. Davis" <gdavis@mvista.com>, Alan Cox <alan@redhat.com>,
Felipe Balbi <felipe.balbi@nokia.com>
Subject: Re: [PATCH 1/3] watchdog: sync linux-omap changes
Date: Mon, 22 Sep 2008 20:13:53 +0100 [thread overview]
Message-ID: <20080922191353.GB8314@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20080922182206.GM22550@infomag.infomag.iguana.be>
On Mon, Sep 22, 2008 at 08:22:06PM +0200, Wim Van Sebroeck wrote:
> Hi All,
>
> last item that (for me) is still open is:
> > +struct omap_wdt_dev {
> > + void __iomem *base; /* physical */
> > + struct device *dev;
>
> is dev indeed unused or is it used by platform specific code?
> If this is sorted out this will go into the watchdog-mm tree.
It's unused, but it's a minor point, something that shouldn't stand
in the way of it going into the watchdog tree. It doesn't cause a
build error and doesn't cause malfunction. It's just a little untidy
and can be addressed separately.
However, if you want Filipe to redo the patch yet again (risking him
getting pissed off with the number of times round the loop it's taking
for what should be a simple driver) there's also this:
@@ -219,12 +240,12 @@ static long omap_wdt_ioctl(struct file *file, unsigned int+cmd,
omap_wdt_adjust_timeout(new_margin);
spin_lock(&wdt_lock);
- omap_wdt_disable();
- omap_wdt_set_timeout();
- omap_wdt_enable();
-
- omap_wdt_ping();
+ omap_wdt_disable(wdev);
+ omap_wdt_set_timeout(wdev);
+ omap_wdt_enable(wdev);
spin_unlock(&wdt_lock);
+
+ omap_wdt_ping(wdev);
which is moving omap_wdt_ping() outside of the spin lock, which I
doubt actually causes any problem in real life on OMAP platforms.
Granted that theoretically and logically it's wrong.
next prev parent reply other threads:[~2008-09-22 19:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-20 1:14 [PATCH 0/3] omap watchdog updates Felipe Balbi
2008-09-20 1:14 ` [PATCH 1/3] watchdog: sync linux-omap changes Felipe Balbi
2008-09-20 1:14 ` [PATCH 2/3] watchdog: another ioremap() fix Felipe Balbi
2008-09-20 1:14 ` [PATCH 3/3] watchdog: cleanup a bit omap_wdt.c Felipe Balbi
2008-09-22 18:22 ` [PATCH 1/3] watchdog: sync linux-omap changes Wim Van Sebroeck
2008-09-22 19:13 ` Russell King - ARM Linux [this message]
2008-09-23 8:39 ` Wim Van Sebroeck
2008-09-23 10:22 ` How to kick a secondary watchdog? (Re: [PATCH 1/3] watchdog: sync linux-omap changes) Tony Lindgren
2008-09-23 10:39 ` Alan Cox
2008-09-23 11:19 ` Wim Van Sebroeck
2008-09-23 11:32 ` Tony Lindgren
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=20080922191353.GB8314@flint.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=akpm@linux-foundation.org \
--cc=alan@redhat.com \
--cc=felipe.balbi@nokia.com \
--cc=gdavis@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=me@felipebalbi.com \
--cc=tony@atomide.com \
--cc=wim@iguana.be \
/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
all inboxes | Powered by JetHome®