From: "Albrecht Dreß" <albrecht.dress@arcor.de>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: Linux PPC Development <linuxppc-dev@ozlabs.org>, wim@iguana.be
Subject: Re: [PATCH] powerpc/mpc52xx/wdt: Fix 5200 wdt always being used as gpt
Date: Mon, 03 Aug 2009 20:46:38 +0200 [thread overview]
Message-ID: <1249325206.3404.1@antares> (raw)
In-Reply-To: <fa686aa40908031050g2d03abb5s9dfe4dceb2072af6@mail.gmail.com> (from grant.likely@secretlab.ca on Mon Aug 3 19:50:05 2009)
[-- Attachment #1: Type: text/plain, Size: 1492 bytes --]
Am 03.08.09 19:50 schrieb(en) Grant Likely:
> Just about all mpc5200 device trees have the fsl,has-wdt property on
> GPT0 even when it isn't used as a watchdog.
Sorry, I do not understand... The file
Documentation/powerpc/dts-bindings/fsl/mpc5200.txt says
<snip>
On the mpc5200 and 5200b, GPT0 has a watchdog timer function. If the
board design supports the internal wdt, then the device node for GPT0
should include the empty property 'fsl,has-wdt'.
</snip>
I interpreted this as "if you don't want to have the wdt function of
gpt0, remove this property". If this assumption is wrong, how is the
kernel supposed to decide if a device shall be used as gpt or as wdt?
> The boards using GPT0 as a GPIO or timer will be broken by this patch.
A wdt is a security device which will (IMHO) either not be used as
such, or it is a *must not* be used for something else on a particular
board (you may even want u-boot to activate it, e.g. to detect a
hanging boot process). In both cases, a "tuned" device tree is needed.
> I know it is a lot more work, but the correct solution is to merge
> the GPT watchdog driver into the regular GPT driver so that we don't
> have two device drivers trying to bind against the same device.
I see the benefit of removing some duplicate code and of having gpio
access in parallel with the wdt, but it wouldn't solve the general
confusion above! Will look into that, though...
Best, Albrecht.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2009-08-03 18:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-03 16:40 [PATCH] powerpc/mpc52xx/wdt: Fix 5200 wdt always being used as gpt Albrecht Dreß
2009-08-03 17:50 ` Grant Likely
2009-08-03 18:46 ` Albrecht Dreß [this message]
2009-08-05 4:47 ` Grant Likely
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=1249325206.3404.1@antares \
--to=albrecht.dress@arcor.de \
--cc=grant.likely@secretlab.ca \
--cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).