From: Mark Rutland <mark.rutland@arm.com>
To: Harini Katakam <harinik@xilinx.com>
Cc: "wim@iguana.be" <wim@iguana.be>,
"grant.likely@linaro.org" <grant.likely@linaro.org>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
Pawel Moll <Pawel.Moll@arm.com>,
"ijc+devicetree@hellion.org.uk" <ijc+devicetree@hellion.org.uk>,
"galak@codeaurora.org" <galak@codeaurora.org>,
"rob@landley.net" <rob@landley.net>,
"michals@xilinx.com" <michals@xilinx.com>,
"linux-watchdog@vger.kernel.org" <linux-watchdog@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>
Subject: Re: [PATCH v2 1/2] watchdog: Add Cadence WDT driver
Date: Thu, 29 May 2014 10:21:06 +0100 [thread overview]
Message-ID: <20140529092106.GC24233@leverpostej> (raw)
In-Reply-To: <1401185895-3677-1-git-send-email-harinik@xilinx.com>
On Tue, May 27, 2014 at 11:18:14AM +0100, Harini Katakam wrote:
> Add Cadence WDT driver. This is used by Xilinx Zynq.
>
> Signed-off-by: Harini Katakam <harinik@xilinx.com>
> ---
>
> Sorry for the delay in sending v2.
> v2 changes:
> - Update IO helpers.
> - Use dev_dbg instead of dev_info where possible.
> - Use watchdog_init_timeout
> - Spinlock for restart register where missing.
> - Change order of probe to move reboot notifier register to the end
> - Remove unecessary comments
> - Do clk_prepare_enabel and clk_disable_unprepare in resume/suspend
> respectively.
> - There is an input from dts to decide whether internal reset should be
> enabled or not. When this is enabled, reset happens wutomatically when
> counter reaches zero. In case this is not enabled, a message is disaplayed
> to indicate that the watchdog has timed out. Elaborated this message
> to describe the above.
When is that useful?
[...]
> + of_property_read_u32(pdev->dev.of_node, "reset", &wdt->rst);
For booleans use an empty property and of_property_read_bool.
[...]
> +static struct of_device_id cdns_wdt_of_match[] = {
> + { .compatible = "xlnx,zynq-wdt-r1p2", },
> + { .compatible = "cdns,wdt-r1p2", },
If these can currently be handled identically, why not just have
"cdns,wdt-r1p2" in the driver and in your dts have:
compatible = "xlnx,zynq-wdt-r1p2", "cdns,wdt-r1p2";
If we need to distinguish the two for some reason later we can always
add the "xlnx,zynq-wdt-r1p2" string to the driver.
Cheers,
Mark.
next prev parent reply other threads:[~2014-05-29 9:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-27 10:18 [PATCH v2 1/2] watchdog: Add Cadence WDT driver Harini Katakam
[not found] ` <1401185895-3677-1-git-send-email-harinik-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2014-05-27 10:18 ` [PATCH v2 2/2] devicetree: Add Cadence WDT devicetree bindings documentation Harini Katakam
2014-05-29 9:12 ` Mark Rutland
2014-05-29 9:27 ` Harini Katakam
2014-05-29 9:37 ` Michal Simek
2014-05-29 9:21 ` Mark Rutland [this message]
2014-05-29 9:38 ` [PATCH v2 1/2] watchdog: Add Cadence WDT driver Harini Katakam
2014-05-29 9:43 ` Michal Simek
2014-05-29 13:19 ` Mark Rutland
2014-06-02 6:25 ` Michal Simek
2014-06-02 13:17 ` Mark Rutland
2014-06-02 13:28 ` Michal Simek
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=20140529092106.GC24233@leverpostej \
--to=mark.rutland@arm.com \
--cc=Pawel.Moll@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=grant.likely@linaro.org \
--cc=harinik@xilinx.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=michals@xilinx.com \
--cc=rob@landley.net \
--cc=robh+dt@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;
as well as URLs for NNTP newsgroup(s).