All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Adrian Hunter <adrian.hunter@intel.com>
Cc: Linux PM list <linux-pm@vger.kernel.org>,
	Linux MMC list <linux-mmc@vger.kernel.org>,
	Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
	Chris Ball <cjb@laptop.org>,
	Ulf Hansson <ulf.hansson@stericsson.com>,
	Magnus Damm <magnus.damm@gmail.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	Mark Brown <broonie@opensource.wolfsonmicro.com>,
	Kevin Hilman <khilman@ti.com>
Subject: Re: [PATCH 2/3] tmio_mmc / PM: Use PM QoS latency constraint
Date: Thu, 8 Mar 2012 22:29:01 +0100	[thread overview]
Message-ID: <201203082229.01709.rjw@sisk.pl> (raw)
In-Reply-To: <4F58679A.6060202@intel.com>

On Thursday, March 08, 2012, Adrian Hunter wrote:
> On 08/03/12 01:29, Rafael J. Wysocki wrote:
> > From: Rafael J. Wysocki <rjw@sisk.pl>
> > 
> > Make tmio_mmc call dev_pm_qos_expose_latency_limit() to expose
> > the PM QoS latency limit to user space and specify the initial
> > value of it as 100 microseconds.
> > 
> > Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
> > ---
> >  drivers/mmc/host/tmio_mmc_pio.c |    5 +++++
> >  1 file changed, 5 insertions(+)
> > 
> > Index: linux/drivers/mmc/host/tmio_mmc_pio.c
> > ===================================================================
> > --- linux.orig/drivers/mmc/host/tmio_mmc_pio.c
> > +++ linux/drivers/mmc/host/tmio_mmc_pio.c
> > @@ -39,6 +39,7 @@
> >  #include <linux/module.h>
> >  #include <linux/pagemap.h>
> >  #include <linux/platform_device.h>
> > +#include <linux/pm_qos.h>
> >  #include <linux/pm_runtime.h>
> >  #include <linux/scatterlist.h>
> >  #include <linux/spinlock.h>
> > @@ -955,6 +956,8 @@ int __devinit tmio_mmc_host_probe(struct
> >  
> >  	mmc_add_host(mmc);
> >  
> > +	dev_pm_qos_expose_latency_limit(&pdev->dev, 100);
> > +
> >  	/* Unmask the IRQs we want to know about */
> >  	if (!_host->chan_rx)
> >  		irq_mask |= TMIO_MASK_READOP;
> > @@ -993,6 +996,8 @@ void tmio_mmc_host_remove(struct tmio_mm
> >  		|| host->mmc->caps & MMC_CAP_NONREMOVABLE)
> >  		pm_runtime_get_sync(&pdev->dev);
> >  
> > +	dev_pm_qos_hide_latency_limit(&pdev->dev);
> 
> Is it really necessary to hide the latency limit before destroying the
> device?  Presumably QoS code could (or does) take care of it.

Yes, it can do that.  I'll modify patch [1/3] this way.

Thanks,
Rafael

  reply	other threads:[~2012-03-08 21:24 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-04  0:01 [PATCH 0/3] MMC / PM: Make it possible to use PM QoS latency constraints Rafael J. Wysocki
2012-03-04  0:02 ` [PATCH 1/3] " Rafael J. Wysocki
2012-03-04 10:59   ` Linus Walleij
2012-03-04 19:47     ` Rafael J. Wysocki
2012-03-04  0:04 ` [PATCH 2/3] tmio_mmc / PM: Use PM QoS requests Rafael J. Wysocki
2012-03-04  0:04 ` [PATCH 3/3] sh_mmcif " Rafael J. Wysocki
2012-03-04 19:53 ` [PATCH 0/3] MMC / PM: Make it possible to use PM QoS latency constraints Rafael J. Wysocki
2012-03-04 19:55   ` [PATCH 1/3] MMC / PM: Make it possible to use PM QoS latency constraints, v2 Rafael J. Wysocki
2012-03-05  7:02     ` Linus Walleij
2012-03-06  9:34     ` Guennadi Liakhovetski
2012-03-06 21:06       ` Rafael J. Wysocki
2012-03-04 19:56   ` [PATCH 2/3] tmio_mmc / PM: Use PM QoS requests, v2 Rafael J. Wysocki
2012-03-06  9:40     ` Guennadi Liakhovetski
2012-03-06 21:07       ` Rafael J. Wysocki
2012-03-06 22:33         ` Guennadi Liakhovetski
2012-03-06 23:41           ` Rafael J. Wysocki
2012-03-04 19:56   ` [PATCH 3/3] sh_mmcif " Rafael J. Wysocki
2012-03-06  9:40     ` Guennadi Liakhovetski
2012-03-06 21:09       ` Rafael J. Wysocki
2012-03-07 23:27   ` [PATCH 0/3] PM: Make it possible to expose PM QoS latency constraints Rafael J. Wysocki
2012-03-07 23:28     ` [PATCH 1/3] PM / QoS: " Rafael J. Wysocki
2012-03-08 17:49       ` Kevin Hilman
2012-03-08 18:01         ` Mark Brown
2012-03-08 21:28           ` Rafael J. Wysocki
2012-03-08 21:23         ` Guennadi Liakhovetski
2012-03-08 21:27         ` Rafael J. Wysocki
2012-03-08 22:05           ` Kevin Hilman
2012-03-08 22:37             ` Rafael J. Wysocki
2012-03-08 23:18               ` Kevin Hilman
2012-03-08 23:30                 ` Rafael J. Wysocki
2012-03-09  1:02                   ` Kevin Hilman
2012-03-09 15:17                     ` Alan Stern
2012-03-09 17:10                       ` Kevin Hilman
2012-03-09 20:59                         ` Rafael J. Wysocki
2012-03-09 21:34                           ` Kevin Hilman
2012-03-07 23:29     ` [PATCH 2/3] tmio_mmc / PM: Use PM QoS latency constraint Rafael J. Wysocki
2012-03-08  8:02       ` Adrian Hunter
2012-03-08 21:29         ` Rafael J. Wysocki [this message]
2012-03-07 23:30     ` [PATCH 3/3] sh_mmcif " Rafael J. Wysocki
2012-03-08 11:03       ` Mark Brown
2012-03-08 21:29         ` Rafael J. Wysocki
2012-03-08 23:00     ` [Update][PATCH 0/3] PM: Make it possible to expose PM QoS latency constraints Rafael J. Wysocki
2012-03-08 23:01       ` [Update][PATCH 1/3] PM / QoS: " Rafael J. Wysocki
2012-03-12 19:32         ` Linus Walleij
2012-03-13  0:02           ` Rafael J. Wysocki
2012-03-08 23:03       ` [Update][PATCH 2/3] tmio_mmc / PM: Use PM QoS latency constraint Rafael J. Wysocki
2012-03-08 23:03       ` [Update][PATCH 3/3] sh_mmcif " Rafael J. Wysocki
2012-03-10 21:14       ` [Update][PATCH 0/3] PM: Make it possible to expose PM QoS latency constraints Rafael J. Wysocki
2012-03-06 10:30 ` [PATCH 0/3] MMC / PM: Make it possible to use " Adrian Hunter
2012-03-06 13:39   ` Guennadi Liakhovetski
2012-03-06 21:14     ` Rafael J. Wysocki
2012-03-07  8:31       ` Adrian Hunter
2012-03-07  9:05         ` Rafael J. Wysocki
2012-03-07 19:38           ` Mark Brown
2012-03-07 20:38           ` Kevin Hilman
2012-03-07 20:51             ` Rafael J. Wysocki
2012-03-07 20:54               ` Mark Brown
2012-03-07 21:31                 ` Rafael J. Wysocki
2012-03-06 21:47   ` Rafael J. Wysocki
2012-03-07  7:06     ` Adrian Hunter
2012-03-07  9:05       ` Rafael J. Wysocki

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=201203082229.01709.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=adrian.hunter@intel.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=cjb@laptop.org \
    --cc=g.liakhovetski@gmx.de \
    --cc=khilman@ti.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=ulf.hansson@stericsson.com \
    /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 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.