linux-watchdog.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND 0/3] watchdog: new driver for STMP3xxx/MX23/MX28
@ 2012-01-23 19:33 Wolfram Sang
  2012-01-23 19:33 ` [PATCH 1/3] rtc: stmp3xxx: add wdt-accessor function Wolfram Sang
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Wolfram Sang @ 2012-01-23 19:33 UTC (permalink / raw)
  To: linux-watchdog; +Cc: rtc-linux, Wim Van Sebroeck, Andrew Morton, Wolfram Sang

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. It now uses an 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 still depends on a
removed mach.

===

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).  The second
patch adds the new driver, the third removes the old one.

After missing the last merge window, I really hope we can get it into 3.4. The
old driver was broken (= not compilable) anyhow, so there cannot be any
regression.  Tested on a MX28EVK.

Regards,

   Wolfram

Changes since V1:

* don't use EXPORT_SYMBOL for the callback into the RTC anymore.
  Now, the callback is provided via platform_data to make sure it is
  private between RTC and watchdog.

* use more helpers to reduce driver size (module_platform_driver, pm_ops)

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 |  139 +++++++++++++++++
 drivers/watchdog/stmp3xxx_wdt.c     |  286 -----------------------------------
 include/linux/stmp3xxx_rtc_wdt.h    |   15 ++
 6 files changed, 226 insertions(+), 293 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.2.5


^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 0/3] improved watchdog driver for STMP3xyz/imx23/imx28
@ 2013-01-04 13:58 Wolfram Sang
  2013-01-04 13:58 ` [PATCH 2/3] watchdog: add new driver for STMP3xxx and i.MX23/28 Wolfram Sang
  0 siblings, 1 reply; 7+ 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] 7+ messages in thread
* [PATCH 0/3] watchdog: new driver for STMP3xxx/MX23/MX28
@ 2011-12-08 17:19 Wolfram Sang
  2011-12-08 17:19 ` [PATCH 2/3] watchdog: add new driver for STMP3xxx and i.MX23/28 Wolfram Sang
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfram Sang @ 2011-12-08 17:19 UTC (permalink / raw)
  To: linux-watchdog
  Cc: Wim Van Sebroeck, Andrew Morton, linux-arm-kernel, Wolfram Sang

Introduce a new user of the watchdog framework :) This is a rewritten driver
for STMP and imx23/28 (the old one was not compilable anymore due to the
missing mach). Please read the patch descriptions to understand why I think a
rewrite was necessary. The first patch adds an accessor routine to the
RTC-driver which can hopefully go via the watchdog-tree as well. The second
patch adds the new driver, the third removes the old one.

I hope this can make it for 3.3; the old driver was broken (= not compilable)
anyhow, so there cannot be any regression. Tested on a MX28EVK.

Regards,

   Wolfram

Changes since V1:

* don't use EXPORT_SYMBOL for the callback into the RTC anymore.
  Now, the callback is provided via platform_data to make sure it is
  private between RTC and watchdog.

* use more helpers to reduce driver size (module_platform_driver, pm_ops)

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 |  139 ++++++++++++++++
 drivers/watchdog/stmp3xxx_wdt.c     |  297 -----------------------------------
 include/linux/stmp3xxx_rtc_wdt.h    |   15 ++
 6 files changed, 226 insertions(+), 304 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.7.3


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-01-04 13:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-23 19:33 [PATCH RESEND 0/3] watchdog: new driver for STMP3xxx/MX23/MX28 Wolfram Sang
2012-01-23 19:33 ` [PATCH 1/3] rtc: stmp3xxx: add wdt-accessor function Wolfram Sang
2012-01-25  0:59   ` Andrew Morton
2012-01-23 19:33 ` [PATCH 2/3] watchdog: add new driver for STMP3xxx and i.MX23/28 Wolfram Sang
2012-01-25  1:02 ` [PATCH RESEND 0/3] watchdog: new driver for STMP3xxx/MX23/MX28 Andrew Morton
  -- strict thread matches above, loose matches on Subject: below --
2013-01-04 13:58 [PATCH 0/3] improved watchdog driver for STMP3xyz/imx23/imx28 Wolfram Sang
2013-01-04 13:58 ` [PATCH 2/3] watchdog: add new driver for STMP3xxx and i.MX23/28 Wolfram Sang
2011-12-08 17:19 [PATCH 0/3] watchdog: new driver for STMP3xxx/MX23/MX28 Wolfram Sang
2011-12-08 17:19 ` [PATCH 2/3] watchdog: add new driver for STMP3xxx and i.MX23/28 Wolfram Sang

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).