Linux MultiMedia Card development
 help / color / mirror / Atom feed
From: Ludovic Desroches <ludovic.desroches@atmel.com>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: linux-mmc@vger.kernel.org,
	Ludovic Desroches <ludovic.desroches@atmel.com>
Subject: Re: [PATCH 1/8] mmc: atmel-mci: Remove redundant runtime PM calls
Date: Tue, 29 Mar 2016 17:03:36 +0200	[thread overview]
Message-ID: <20160329150336.GG820@odux.rfo.atmel.com> (raw)
In-Reply-To: <1459236673-5639-1-git-send-email-ulf.hansson@linaro.org>

On Tue, Mar 29, 2016 at 09:31:06AM +0200, Ulf Hansson wrote:
> Commit 9250aea76bfc ("mmc: core: Enable runtime PM management of host
> devices"), made some calls to the runtime PM API from the driver
> redundant. Especially those which deals with runtime PM reference
> counting, so let's remove them.
> 
> Cc: Ludovic Desroches <ludovic.desroches@atmel.com>
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Tested-by: Ludovic Desroches <ludovic.desroches@atmel.com>

> ---
>  drivers/mmc/host/atmel-mci.c | 9 ---------
>  1 file changed, 9 deletions(-)
> 
> diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
> index 9268c41..0ad8ef5 100644
> --- a/drivers/mmc/host/atmel-mci.c
> +++ b/drivers/mmc/host/atmel-mci.c
> @@ -1410,8 +1410,6 @@ static void atmci_request(struct mmc_host *mmc, struct mmc_request *mrq)
>  	WARN_ON(slot->mrq);
>  	dev_dbg(&host->pdev->dev, "MRQ: cmd %u\n", mrq->cmd->opcode);
>  
> -	pm_runtime_get_sync(&host->pdev->dev);
> -
>  	/*
>  	 * We may "know" the card is gone even though there's still an
>  	 * electrical connection. If so, we really need to communicate
> @@ -1442,8 +1440,6 @@ static void atmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
>  	struct atmel_mci	*host = slot->host;
>  	unsigned int		i;
>  
> -	pm_runtime_get_sync(&host->pdev->dev);
> -
>  	slot->sdc_reg &= ~ATMCI_SDCBUS_MASK;
>  	switch (ios->bus_width) {
>  	case MMC_BUS_WIDTH_1:
> @@ -1576,8 +1572,6 @@ static void atmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
>  		break;
>  	}
>  
> -	pm_runtime_mark_last_busy(&host->pdev->dev);
> -	pm_runtime_put_autosuspend(&host->pdev->dev);
>  }
>  
>  static int atmci_get_ro(struct mmc_host *mmc)
> @@ -1669,9 +1663,6 @@ static void atmci_request_end(struct atmel_mci *host, struct mmc_request *mrq)
>  	spin_unlock(&host->lock);
>  	mmc_request_done(prev_mmc, mrq);
>  	spin_lock(&host->lock);
> -
> -	pm_runtime_mark_last_busy(&host->pdev->dev);
> -	pm_runtime_put_autosuspend(&host->pdev->dev);
>  }
>  
>  static void atmci_command_complete(struct atmel_mci *host,
> -- 
> 1.9.1
> 

      parent reply	other threads:[~2016-03-29 15:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-29  7:31 [PATCH 1/8] mmc: atmel-mci: Remove redundant runtime PM calls Ulf Hansson
2016-03-29  7:31 ` [PATCH 2/8] mmc: mmci: " Ulf Hansson
2016-03-29  7:31 ` [PATCH 3/8] mmc: mediatek: " Ulf Hansson
2016-03-29  7:31 ` [PATCH 4/8] mmc: omap_hsmmc: " Ulf Hansson
2016-03-29  7:31 ` [PATCH 5/8] mmc: sdhci-acpi: " Ulf Hansson
2016-03-29  7:31 ` [PATCH 6/8] mmc: sdhci-pci: " Ulf Hansson
2016-03-29  7:31 ` [PATCH 7/8] mmc: sdhci: " Ulf Hansson
2016-04-01  7:46   ` Adrian Hunter
2016-04-01  9:46     ` Ulf Hansson
2016-04-05 11:40       ` Adrian Hunter
2016-04-05 14:38         ` Ulf Hansson
2016-03-29  7:31 ` [PATCH 8/8] mmc: tmio: " Ulf Hansson
2016-03-29 15:03 ` Ludovic Desroches [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=20160329150336.GG820@odux.rfo.atmel.com \
    --to=ludovic.desroches@atmel.com \
    --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