From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: wim@iguana.be, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] watchdog: Add support for the WM8350 watchdog
Date: Fri, 31 Oct 2008 11:34:19 +0000 [thread overview]
Message-ID: <20081031113419.GA3982@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <20081030151804.bc8bd02a.akpm@linux-foundation.org>
On Thu, Oct 30, 2008 at 03:18:04PM -0700, Andrew Morton wrote:
> Mark Brown <broonie@opensource.wolfsonmicro.com> wrote:
> > + wm8350_reg_lock(wm8350);
> I was curious about this wm8350_reg_lock/wm8350_reg_unlock thing, so I
> went to have a look at it. Nothing. Obviously its authors felt there
> was no benefit in having anyone else understand what it does.
Well, there's really not that much more to it than what the function
names say - some of the registers can be locked in hardware, meaning
that the lock needs to be unlocked when writing to them. I'll come up
with some sort of blurb and send a patch to Samuel but I'm not sure how
much it'll actually help.
This is mostly for things particularly likely to cause damage to the
system - in this case the hardware supports extremely short timeouts
which might be too short to be able to kick the watchdog again if it
fires and reboots (the lowest option is 0.125s IIRC). The only way
to recover from that is to remove all power from the system.
> > + if (test_and_set_bit(1, &wm8350_wdt_users))
> It's odd that the driver uses bit 1 rather than bit 0.
Hrm, yeah. No idea why, the driver was like that when I first looked at
it and I can't see any history explaining the choice.
next prev parent reply other threads:[~2008-10-31 11:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-27 15:31 [PATCH] watchdog: Add support for the WM8350 watchdog Mark Brown
2008-10-30 22:18 ` Andrew Morton
2008-10-31 11:34 ` Mark Brown [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-11-06 10:56 Mark Brown
2008-10-20 19:12 Mark Brown
2008-10-20 21:00 ` Wim Van Sebroeck
2008-10-21 9:57 ` Mark Brown
2008-10-24 12:37 ` Wim Van Sebroeck
2008-10-10 13:55 Mark Brown
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=20081031113419.GA3982@rakim.wolfsonmicro.main \
--to=broonie@opensource.wolfsonmicro.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--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