From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Magnus Damm <magnus.damm@gmail.com>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
linux-mmc@vger.kernel.org, linux-sh@vger.kernel.org
Subject: Re: [PATCH] mmc: tmio: Don't access hardware registers after stopping clocks
Date: Tue, 19 Jun 2012 09:34:56 +0000 [thread overview]
Message-ID: <5753942.6DRRAABTSC@avalon> (raw)
In-Reply-To: <CANqRtoQD+sneTT7tCYji7YGpX5eJEQrWCQoX8jWJ1hiChjFh_g@mail.gmail.com>
Hi Magnus,
On Tuesday 19 June 2012 15:53:30 Magnus Damm wrote:
> On Fri, Jun 15, 2012 at 4:09 PM, Guennadi Liakhovetski wrote:
> > On Fri, 15 Jun 2012, Magnus Damm wrote:
> >
> > [snip]
> >
> >> Guennadi, does this trigger on sh7372 as well? If not, why is that?
> >
> > No. That message is produced by the sh_mobile_sdhi_wait_idle() function,
> > which is only used, if the TMIO_MMC_HAS_IDLE_WAIT flag is set, which is
> > not set on mackerel (or ap4evb).
>
> Ok, thanks for checking this. It seems that we are "lucky" to find
> this breakage...
>
> In the future, please take care to make sure this does not happen
> again. This goes without saying, but the driver should not access the
> hardware when it is Runtime PM suspended. I believe it should be
> possible to verify the code paths by manual code inspection. Also, to
> make the behavior more consistent you may want to make use of
> "pm_runtime_put_sync()" instead of "pm_runtime_put()".
For testing that's a good idea. That makes me wonder whether we should have a
Kconfig option to turn all pm_runtime_put() into pm_runtime_put_sync() for
stress-testing.
--
Regards,
Laurent Pinchart
prev parent reply other threads:[~2012-06-19 9:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-12 12:57 [PATCH] mmc: tmio: Don't access hardware registers after stopping clocks Laurent Pinchart
2012-06-12 13:31 ` Guennadi Liakhovetski
2012-06-12 21:28 ` Laurent Pinchart
2012-06-14 11:12 ` Magnus Damm
2012-06-14 19:12 ` Laurent Pinchart
2012-06-14 19:37 ` Rafael J. Wysocki
2012-06-14 20:34 ` Laurent Pinchart
2012-06-14 21:48 ` Rafael J. Wysocki
2012-06-15 10:03 ` Rafael J. Wysocki
2012-06-15 10:17 ` Laurent Pinchart
2012-06-15 19:08 ` Rafael J. Wysocki
2012-06-15 0:47 ` Magnus Damm
2012-06-15 7:09 ` Guennadi Liakhovetski
2012-06-19 6:53 ` Magnus Damm
2012-06-19 9:34 ` Laurent Pinchart [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=5753942.6DRRAABTSC@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=g.liakhovetski@gmx.de \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=rjw@sisk.pl \
/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).