From: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
To: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
Cc: linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Jason Cooper <jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>,
Jason Gunthorpe
<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>,
Andrew Lunn <andrew-g2DYL2Zd6BY@public.gmane.org>,
Sebastian Hesselbarth
<sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Lior Amsalem <alior-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>,
Tawfik Bayouk <tawfik-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>,
Thomas Petazzoni
<thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
Gregory Clement
<gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
Wim Van Sebroeck <wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.org>
Subject: Re: [PATCH v3 0/8] Watchdog support for Armada 375/38x SoC
Date: Fri, 14 Mar 2014 19:35:43 -0300 [thread overview]
Message-ID: <20140314223543.GA10868@arch> (raw)
In-Reply-To: <532380EA.7010809-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
On Mar 14, Guenter Roeck wrote:
> On 03/12/2014 02:11 PM, Ezequiel Garcia wrote:
> >Third round of the patchset adding support for watchdog on Armada 375 and
> >Armada 38x SoCs.
> >
> >The new Armada 375/385 SoCs have two registers for the watchdog RSTOUT:
> >
> > 1. It has a dedicated register (similar to the one in A370/XP)
> > 2. Also has a bit in a shared RSTOUT register.
> >
> >Therefore, in order to support this two-folded RSTOUT, we extend the 'reg'
> >property in the watchdog devicetree and require a new pair of cells to specify
> >the shared RSTOUT.
> >
> >On the driver side, we need to implement per-SoC stop() and enabled()
> >functions. Such somewhat complex infrastructure is needed to ensure the driver
> >performs proper reset of the watchdog timer, by masking and disabling the
> >RSTOUT before the interrupt is enabled.
> >
> >I've pushed a branch so people can test this easily, e.g. ensuring
> >no regressions on Dove, Kirkwood and A370/XP:
> >
> >https://github.com/MISL-EBU-System-SW/mainline-public/tree/wdt_a385_a375_v3
> >
> >Changes from v2:
> >
> > * Cleaned-up usage of atomic_io_modify(), using it only when needed.
> > For instance, the RSTOUT dedicated register on Armada 370/375/380/XP
> > can be safely access without any lock.
> >
> > * Use devm_ioremap_resource() for the non-shared registers. The shared
> > registers need to use devm_ioremap(), which does not request the
> > memory region.
> >
> >Changes from v1:
> >
> > * Reworked entirely!
> >
> >Ezequiel Garcia (8):
> > watchdog: orion: Introduce a SoC-specific RSTOUT mapping
> > watchdog: orion: Remove unneeded atomic access
> > watchdog: orion: Introduce per-SoC stop() function
> > watchdog: orion: Introduce per-SoC enabled() function
> > watchdog: orion: Add Armada 375/380 SoC support
> > ARM: mvebu: Enable Armada 375 watchdog in the devicetree
> > ARM: mvebu: Enable Armada 380/385 watchdog in the devicetree
> > ARM: mvebu: Add A375/A380 watchdog binding documentation
> >
> > .../devicetree/bindings/watchdog/marvel.txt | 7 +
> > arch/arm/boot/dts/armada-375.dtsi | 6 +
> > arch/arm/boot/dts/armada-38x.dtsi | 7 +
> > drivers/watchdog/orion_wdt.c | 180 +++++++++++++++++++--
> > 4 files changed, 188 insertions(+), 12 deletions(-)
> >
> For the series:
> Reviewed-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
>
Thanks a lot for reviewing the whole patchset. I'll probably sent another
round, as per your suggestion to move all the ioremap'ing to its own
function.
That stuff got long and scary enough to deserve its own place.
--
Ezequiel García, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2014-03-14 22:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-12 21:11 [PATCH v3 0/8] Watchdog support for Armada 375/38x SoC Ezequiel Garcia
[not found] ` <1394658715-2017-1-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2014-03-12 21:11 ` [PATCH v3 1/8] watchdog: orion: Introduce a SoC-specific RSTOUT mapping Ezequiel Garcia
2014-03-12 21:11 ` [PATCH v3 2/8] watchdog: orion: Remove unneeded atomic access Ezequiel Garcia
2014-03-12 21:11 ` [PATCH v3 3/8] watchdog: orion: Introduce per-SoC stop() function Ezequiel Garcia
2014-03-12 21:11 ` [PATCH v3 4/8] watchdog: orion: Introduce per-SoC enabled() function Ezequiel Garcia
2014-03-12 21:11 ` [PATCH v3 5/8] watchdog: orion: Add Armada 375/380 SoC support Ezequiel Garcia
2014-03-12 21:11 ` [PATCH v3 6/8] ARM: mvebu: Enable Armada 375 watchdog in the devicetree Ezequiel Garcia
2014-03-12 21:11 ` [PATCH v3 7/8] ARM: mvebu: Enable Armada 380/385 " Ezequiel Garcia
2014-03-12 21:11 ` [PATCH v3 8/8] ARM: mvebu: Add A375/A380 watchdog binding documentation Ezequiel Garcia
2014-03-12 21:43 ` [PATCH v3 0/8] Watchdog support for Armada 375/38x SoC Jason Gunthorpe
[not found] ` <20140312214312.GA14357-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2014-03-12 21:54 ` Ezequiel Garcia
[not found] ` <20140312215456.GA13340-nAQHv47ARr+vIlHkl8J1cg@public.gmane.org>
2014-03-19 22:21 ` Jason Gunthorpe
2014-03-14 22:21 ` Guenter Roeck
[not found] ` <532380EA.7010809-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2014-03-14 22:35 ` Ezequiel Garcia [this message]
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=20140314223543.GA10868@arch \
--to=ezequiel.garcia-wi1+55scjutkeb57/3fjtnbpr1lh4cv8@public.gmane.org \
--cc=alior-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org \
--cc=andrew-g2DYL2Zd6BY@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
--cc=jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org \
--cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
--cc=linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org \
--cc=linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=tawfik-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org \
--cc=thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
--cc=wim-IQzOog9fTRqzQB+pC5nmwQ@public.gmane.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;
as well as URLs for NNTP newsgroup(s).