* Re: [PATCH 0/3] improved watchdog driver for STMP3xyz/imx23/imx28
[not found] <515EF92C.1080609@digi.com>
@ 2013-04-05 16:22 ` Hector Palacios
0 siblings, 0 replies; 4+ messages in thread
From: Hector Palacios @ 2013-04-05 16:22 UTC (permalink / raw)
To: w.sang; +Cc: wim, linux-watchdog
Dear Wolfram,
On 04/05/2013 06:17 PM, Palacios, Hector wrote:
> Geez, this should have been sent a year ago but it dropped off somehow.
> Introduce a new user of the watchdog framework. This is a rewritten driver
> for STMP and imx23/28: Quoting Patch 2/3 for the motivation of a rewrite:
>
> ===
>
> Replace the existing STMP3xxx driver because it has enough drawbacks
> that a rewrite is apropriate. The new driver is designed to use the
> watchdog framework which makes it a lot smaller and avoids open coding
> the watchdog API again. It also uses now an explicitly exported function
> from the RTC driver to set up its registers (the old driver silently
> reused the hopefully(!) already remapped RTC registers). Also, this
> driver is mach independent, while the old one depends on a mach replaced
> by another one a year ago. Since the user interface is still the
> standard watchdog API, users don't need to adapt.
>
> ===
>
> The first patch adds an accessor routine to the RTC-driver which can hopefully
> go via the watchdog-tree as well (asking for Andrew's ack here). It is needed
> because the old driver silently assumed its IO area to be already remapped by
> the RTC driver. The second patch adds the new driver, the third removes the old
> one. The old driver was broken (= not compilable, no arch for it) anyhow, so
> there cannot be any regression. Based on 3.8-rc2 and tested on various MX28
> boards.
>
> Thanks,
>
> Wolfram
>
>
> Wolfram Sang (3):
> rtc: stmp3xxx: add wdt-accessor function
> watchdog: add new driver for STMP3xxx and i.MX23/28
> watchdog: remove old STMP3xxx driver
>
> drivers/rtc/rtc-stmp3xxx.c | 64 ++++++++
> drivers/watchdog/Kconfig | 13 +-
> drivers/watchdog/Makefile | 2 +-
> drivers/watchdog/stmp3xxx_rtc_wdt.c | 111 ++++++++++++++
> drivers/watchdog/stmp3xxx_wdt.c | 288 -----------------------------------
> include/linux/stmp3xxx_rtc_wdt.h | 15 ++
> 6 files changed, 198 insertions(+), 295 deletions(-)
> create mode 100644 drivers/watchdog/stmp3xxx_rtc_wdt.c
> delete mode 100644 drivers/watchdog/stmp3xxx_wdt.c
> create mode 100644 include/linux/stmp3xxx_rtc_wdt.h
Thank you.
Reviewed-by: Hector Palacios <hector.palacios@digi.com>
Tested-by: Hector Palacios <hector.palacios@digi.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 0/3] improved watchdog driver for STMP3xyz/imx23/imx28
@ 2013-01-04 13:58 Wolfram Sang
2013-01-29 16:26 ` Wolfram Sang
0 siblings, 1 reply; 4+ messages in thread
From: Wolfram Sang @ 2013-01-04 13:58 UTC (permalink / raw)
To: linux-watchdog; +Cc: Wim Van Sebroeck, Wolfram Sang
Geez, this should have been sent a year ago but it dropped off somehow.
Introduce a new user of the watchdog framework. This is a rewritten driver
for STMP and imx23/28: Quoting Patch 2/3 for the motivation of a rewrite:
===
Replace the existing STMP3xxx driver because it has enough drawbacks
that a rewrite is apropriate. The new driver is designed to use the
watchdog framework which makes it a lot smaller and avoids open coding
the watchdog API again. It also uses now an explicitly exported function
from the RTC driver to set up its registers (the old driver silently
reused the hopefully(!) already remapped RTC registers). Also, this
driver is mach independent, while the old one depends on a mach replaced
by another one a year ago. Since the user interface is still the
standard watchdog API, users don't need to adapt.
===
The first patch adds an accessor routine to the RTC-driver which can hopefully
go via the watchdog-tree as well (asking for Andrew's ack here). It is needed
because the old driver silently assumed its IO area to be already remapped by
the RTC driver. The second patch adds the new driver, the third removes the old
one. The old driver was broken (= not compilable, no arch for it) anyhow, so
there cannot be any regression. Based on 3.8-rc2 and tested on various MX28
boards.
Thanks,
Wolfram
Wolfram Sang (3):
rtc: stmp3xxx: add wdt-accessor function
watchdog: add new driver for STMP3xxx and i.MX23/28
watchdog: remove old STMP3xxx driver
drivers/rtc/rtc-stmp3xxx.c | 64 ++++++++
drivers/watchdog/Kconfig | 13 +-
drivers/watchdog/Makefile | 2 +-
drivers/watchdog/stmp3xxx_rtc_wdt.c | 111 ++++++++++++++
drivers/watchdog/stmp3xxx_wdt.c | 288 -----------------------------------
include/linux/stmp3xxx_rtc_wdt.h | 15 ++
6 files changed, 198 insertions(+), 295 deletions(-)
create mode 100644 drivers/watchdog/stmp3xxx_rtc_wdt.c
delete mode 100644 drivers/watchdog/stmp3xxx_wdt.c
create mode 100644 include/linux/stmp3xxx_rtc_wdt.h
--
1.7.10.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/3] improved watchdog driver for STMP3xyz/imx23/imx28
2013-01-04 13:58 Wolfram Sang
@ 2013-01-29 16:26 ` Wolfram Sang
2013-01-30 21:13 ` Wim Van Sebroeck
0 siblings, 1 reply; 4+ messages in thread
From: Wolfram Sang @ 2013-01-29 16:26 UTC (permalink / raw)
To: linux-watchdog; +Cc: Wim Van Sebroeck
[-- Attachment #1: Type: text/plain, Size: 2650 bytes --]
On Fri, Jan 04, 2013 at 02:58:46PM +0100, Wolfram Sang wrote:
> Geez, this should have been sent a year ago but it dropped off somehow.
> Introduce a new user of the watchdog framework. This is a rewritten driver
> for STMP and imx23/28: Quoting Patch 2/3 for the motivation of a rewrite:
>
> ===
>
> Replace the existing STMP3xxx driver because it has enough drawbacks
> that a rewrite is apropriate. The new driver is designed to use the
> watchdog framework which makes it a lot smaller and avoids open coding
> the watchdog API again. It also uses now an explicitly exported function
> from the RTC driver to set up its registers (the old driver silently
> reused the hopefully(!) already remapped RTC registers). Also, this
> driver is mach independent, while the old one depends on a mach replaced
> by another one a year ago. Since the user interface is still the
> standard watchdog API, users don't need to adapt.
>
> ===
>
> The first patch adds an accessor routine to the RTC-driver which can hopefully
> go via the watchdog-tree as well (asking for Andrew's ack here). It is needed
> because the old driver silently assumed its IO area to be already remapped by
> the RTC driver. The second patch adds the new driver, the third removes the old
> one. The old driver was broken (= not compilable, no arch for it) anyhow, so
> there cannot be any regression. Based on 3.8-rc2 and tested on various MX28
> boards.
>
> Thanks,
>
> Wolfram
Ping.
I rebased and tested the series against v3.8-rc5, added Andrew's ack and
pushed it out to
git://git.pengutronix.de/git/wsa/linux.git watchdog_mxs
Would be awesome to have this (simple) driver in 3.9.
>
>
> Wolfram Sang (3):
> rtc: stmp3xxx: add wdt-accessor function
> watchdog: add new driver for STMP3xxx and i.MX23/28
> watchdog: remove old STMP3xxx driver
>
> drivers/rtc/rtc-stmp3xxx.c | 64 ++++++++
> drivers/watchdog/Kconfig | 13 +-
> drivers/watchdog/Makefile | 2 +-
> drivers/watchdog/stmp3xxx_rtc_wdt.c | 111 ++++++++++++++
> drivers/watchdog/stmp3xxx_wdt.c | 288 -----------------------------------
> include/linux/stmp3xxx_rtc_wdt.h | 15 ++
> 6 files changed, 198 insertions(+), 295 deletions(-)
> create mode 100644 drivers/watchdog/stmp3xxx_rtc_wdt.c
> delete mode 100644 drivers/watchdog/stmp3xxx_wdt.c
> create mode 100644 include/linux/stmp3xxx_rtc_wdt.h
>
> --
> 1.7.10.4
>
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/3] improved watchdog driver for STMP3xyz/imx23/imx28
2013-01-29 16:26 ` Wolfram Sang
@ 2013-01-30 21:13 ` Wim Van Sebroeck
0 siblings, 0 replies; 4+ messages in thread
From: Wim Van Sebroeck @ 2013-01-30 21:13 UTC (permalink / raw)
To: Wolfram Sang; +Cc: linux-watchdog
Hi Wolfram,
> On Fri, Jan 04, 2013 at 02:58:46PM +0100, Wolfram Sang wrote:
> > Geez, this should have been sent a year ago but it dropped off somehow.
> > Introduce a new user of the watchdog framework. This is a rewritten driver
> > for STMP and imx23/28: Quoting Patch 2/3 for the motivation of a rewrite:
> >
> > ===
> >
> > Replace the existing STMP3xxx driver because it has enough drawbacks
> > that a rewrite is apropriate. The new driver is designed to use the
> > watchdog framework which makes it a lot smaller and avoids open coding
> > the watchdog API again. It also uses now an explicitly exported function
> > from the RTC driver to set up its registers (the old driver silently
> > reused the hopefully(!) already remapped RTC registers). Also, this
> > driver is mach independent, while the old one depends on a mach replaced
> > by another one a year ago. Since the user interface is still the
> > standard watchdog API, users don't need to adapt.
> >
> > ===
> >
> > The first patch adds an accessor routine to the RTC-driver which can hopefully
> > go via the watchdog-tree as well (asking for Andrew's ack here). It is needed
> > because the old driver silently assumed its IO area to be already remapped by
> > the RTC driver. The second patch adds the new driver, the third removes the old
> > one. The old driver was broken (= not compilable, no arch for it) anyhow, so
> > there cannot be any regression. Based on 3.8-rc2 and tested on various MX28
> > boards.
> >
> > Thanks,
> >
> > Wolfram
>
> Ping.
>
> I rebased and tested the series against v3.8-rc5, added Andrew's ack and
> pushed it out to
>
> git://git.pengutronix.de/git/wsa/linux.git watchdog_mxs
>
> Would be awesome to have this (simple) driver in 3.9.
>
> >
> >
> > Wolfram Sang (3):
> > rtc: stmp3xxx: add wdt-accessor function
> > watchdog: add new driver for STMP3xxx and i.MX23/28
> > watchdog: remove old STMP3xxx driver
> >
> > drivers/rtc/rtc-stmp3xxx.c | 64 ++++++++
> > drivers/watchdog/Kconfig | 13 +-
> > drivers/watchdog/Makefile | 2 +-
> > drivers/watchdog/stmp3xxx_rtc_wdt.c | 111 ++++++++++++++
> > drivers/watchdog/stmp3xxx_wdt.c | 288 -----------------------------------
> > include/linux/stmp3xxx_rtc_wdt.h | 15 ++
> > 6 files changed, 198 insertions(+), 295 deletions(-)
> > create mode 100644 drivers/watchdog/stmp3xxx_rtc_wdt.c
> > delete mode 100644 drivers/watchdog/stmp3xxx_wdt.c
> > create mode 100644 include/linux/stmp3xxx_rtc_wdt.h
> >
> > --
> > 1.7.10.4
> >
>
> --
> Pengutronix e.K. | Wolfram Sang |
> Industrial Linux Solutions | http://www.pengutronix.de/ |
Pulled it into linux-watchdog-next.
Kind regards,
Wim.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-05 16:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <515EF92C.1080609@digi.com>
2013-04-05 16:22 ` [PATCH 0/3] improved watchdog driver for STMP3xyz/imx23/imx28 Hector Palacios
2013-01-04 13:58 Wolfram Sang
2013-01-29 16:26 ` Wolfram Sang
2013-01-30 21:13 ` Wim Van Sebroeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.