From: "Rafael J. Wysocki" Subject: Re: [PATCH 3/3] sh_mmcif / PM: Use PM QoS requests, v2 Date: Tue, 6 Mar 2012 22:09:04 +0100 Message-ID: <201203062209.04640.rjw@sisk.pl> References: <201203040101.53177.rjw@sisk.pl> <201203042056.57012.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from ogre.sisk.pl ([217.79.144.158]:58530 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031094Ab2CFVE6 (ORCPT ); Tue, 6 Mar 2012 16:04:58 -0500 In-Reply-To: Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Guennadi Liakhovetski Cc: "linux-mmc@vger.kernel.org" , Linux PM list , Chris Ball , Ulf Hansson , Magnus Damm , Linus Walleij On Tuesday, March 06, 2012, Guennadi Liakhovetski wrote: > On Sun, 4 Mar 2012, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > Make sh_mmcif populate the pm_qos member of struct mmc_host, to > > let the core know that it should create the pm_latency_limit_ms > > host attribute for it, and set the default value of that attribute > > to 100 ms. > > > > Signed-off-by: Rafael J. Wysocki > > --- > > drivers/mmc/host/sh_mmcif.c | 10 ++++++++++ > > 1 file changed, 10 insertions(+) > > > > Index: linux/drivers/mmc/host/sh_mmcif.c > > =================================================================== > > --- linux.orig/drivers/mmc/host/sh_mmcif.c > > +++ linux/drivers/mmc/host/sh_mmcif.c > > @@ -57,6 +57,7 @@ > > #include > > #include > > #include > > +#include > > #include > > #include > > > > @@ -1327,6 +1328,12 @@ static int __devinit sh_mmcif_probe(stru > > if (ret < 0) > > goto clean_up2; > > > > + mmc->pm_qos = kzalloc(sizeof(*mmc->pm_qos), GFP_KERNEL); > > + if (mmc->pm_qos) > > + mmc->pm_qos->val = 100; > > Same comments as for tmio_mmc: embed pm_qos That wouldn't work. > and reduce the value? The value will be fine when the units are correct. Thanks, Rafael