From: Wolfram Sang <wsa@the-dreams.de>
To: linux-sh@vger.kernel.org
Subject: Re: [RFC v2 4/5] ARM: shmobile: r8a7790: let rst module allow watchdog resets if desired
Date: Fri, 23 Oct 2015 12:28:35 +0000 [thread overview]
Message-ID: <20151023122835.GM13380@katana> (raw)
In-Reply-To: <1444632876-2672-5-git-send-email-wsa@the-dreams.de>
[-- Attachment #1: Type: text/plain, Size: 864 bytes --]
> > +#if defined(CONFIG_WATCHDOG)
> > + void __iomem *p = ioremap_nocache(WDTRSTCR, 4);
> > + BUG_ON(!p);
> > + iowrite32(0xa55a0000, p);
> > + iounmap(p);
> > +#endif
>
> That's a bit of a hack. We should aim at removing code from mach-shmobile, not
> adding new code :-) Furthermore it will cause issues with virtualization as
> hypervisors commonly map memory based on DT, the above code will thus generate
> a write access to an unmapped piece of memory as there's no corresponding DT
> node.
I know. As I said in the cover letter (hint! ;)) it only works for me with
UP on Lager. These arch patches are only to be able to test the driver.
Totally not to be upstreamed.
> Time for a reset driver it seems ;-)
Can of worms for Gen2...
Let's hope it will be easier on Gen3 and we can submit the main driver
upstream this way.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-10-23 12:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-12 6:54 [RFC v2 4/5] ARM: shmobile: r8a7790: let rst module allow watchdog resets if desired Wolfram Sang
2015-10-23 12:24 ` Laurent Pinchart
2015-10-23 12:28 ` Wolfram Sang [this message]
2015-10-24 17:42 ` Geert Uytterhoeven
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=20151023122835.GM13380@katana \
--to=wsa@the-dreams.de \
--cc=linux-sh@vger.kernel.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