linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: stanislav.meduna@nxtcontrol.com (Stanislav Meduna)
To: linux-arm-kernel@lists.infradead.org
Subject: i.MX53 restart via watchdog does not work
Date: Fri, 15 Apr 2016 18:17:45 +0200	[thread overview]
Message-ID: <57111429.6040802@nxtcontrol.com> (raw)

Hi,

I am using an TQMa53 board, which expects to be resetted
by watchdog circuit. In older kernels ths was done in
by mxc_restart defined in arch/arm/mach-imx/system.c
and initialized and wired in mach-imx53.c.

Current kernels however do not use this and the mach-imx53.c
does not set .restart. I am getting
  imx2-wdt 53f98000.wdog: Device shutdown: Expect reboot!
  reboot: Restarting system
and the system just hangs there.

What is the correct way to accomplish this? I can of course
try to merge the old code back, but I expect there is
a reason why it was removed. Is writing the restart function
where I get and enable the clock, get an I/O mapping and
write the watchdog registers the correct approach?
Or should this be controlled by the device tree? Are there
maybe some patches flying (I was not able to google
anything relevant)?

Thanks
-- 
                                Stano

             reply	other threads:[~2016-04-15 16:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-15 16:17 Stanislav Meduna [this message]
2016-04-19 15:39 ` i.MX53 restart via watchdog does not work Fabio Estevam
2016-04-19 15:54   ` Stanislav Meduna
2016-04-19 18:18     ` Fabio Estevam
2016-04-19 18:28       ` Stanislav Meduna
2016-04-19 18:43         ` Fabio Estevam
2016-06-23 15:14           ` Martin Fuzzey

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=57111429.6040802@nxtcontrol.com \
    --to=stanislav.meduna@nxtcontrol.com \
    --cc=linux-arm-kernel@lists.infradead.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).