public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Hunter <adrian.hunter@intel.com>
To: Azhar Shaikh <azhar.shaikh@intel.com>,
	ulf.hansson@linaro.org, linux-mmc@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/2] mmc: sdhci-pci: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers
Date: Thu, 30 Mar 2017 10:41:37 +0300	[thread overview]
Message-ID: <c150badd-607c-d70d-94b1-a7add32929f3@intel.com> (raw)
In-Reply-To: <1490811393-109654-2-git-send-email-azhar.shaikh@intel.com>

On 29/03/17 21:16, Azhar Shaikh wrote:
> Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel SD card
> controllers.
> 
> Signed-off-by: Azhar Shaikh <azhar.shaikh@intel.com>

Acked-by: Adrian Hunter <adrian.hunter@intel.com>

> ---
> Changes in v2:
>   - Rebased the patch on top of 'next' branch.
>   - No code change.
> 
>  drivers/mmc/host/sdhci-pci-core.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c
> index 6c0440e..833072b 100644
> --- a/drivers/mmc/host/sdhci-pci-core.c
> +++ b/drivers/mmc/host/sdhci-pci-core.c
> @@ -630,16 +630,15 @@ static int byt_sdio_probe_slot(struct sdhci_pci_slot *slot)
>  static int byt_sd_probe_slot(struct sdhci_pci_slot *slot)
>  {
>  	byt_read_dsm(slot);
> -	slot->host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY;
> +	slot->host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY |
> +				 MMC_CAP_AGGRESSIVE_PM;
>  	slot->cd_idx = 0;
>  	slot->cd_override_level = true;
>  	if (slot->chip->pdev->device == PCI_DEVICE_ID_INTEL_BXT_SD ||
>  	    slot->chip->pdev->device == PCI_DEVICE_ID_INTEL_BXTM_SD ||
>  	    slot->chip->pdev->device == PCI_DEVICE_ID_INTEL_APL_SD ||
> -	    slot->chip->pdev->device == PCI_DEVICE_ID_INTEL_GLK_SD) {
> +	    slot->chip->pdev->device == PCI_DEVICE_ID_INTEL_GLK_SD)
>  		slot->host->mmc_host_ops.get_cd = bxt_get_cd;
> -		slot->host->mmc->caps |= MMC_CAP_AGGRESSIVE_PM;
> -	}
>  
>  	return 0;
>  }
> 

  reply	other threads:[~2017-03-30  7:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-28 18:08 [PATCH 1/2] mmc: sdhci-acpi: Set MMC_CAP_AGGRESSIVE_PM for BYT-related Intel controllers Azhar Shaikh
2017-03-28 18:08 ` [PATCH 2/2] mmc: sdhci-pci: " Azhar Shaikh
2017-03-29 18:16 ` [PATCH v2 1/2] mmc: sdhci-acpi: " Azhar Shaikh
2017-03-29 18:16   ` [PATCH v2 2/2] mmc: sdhci-pci: " Azhar Shaikh
2017-03-30  7:41     ` Adrian Hunter [this message]
2017-03-30 19:31     ` Ulf Hansson
2017-03-30  7:41   ` [PATCH v2 1/2] mmc: sdhci-acpi: " Adrian Hunter
2017-03-30 19:31   ` Ulf Hansson

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=c150badd-607c-d70d-94b1-a7add32929f3@intel.com \
    --to=adrian.hunter@intel.com \
    --cc=azhar.shaikh@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=ulf.hansson@linaro.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