Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09cc6226 authored by Can Guo's avatar Can Guo
Browse files

mmc: sdhci: fix PM Qos code porting error



A porting error is found in function sdhci_post_req,
where pre_req call is misplaced. And function
sdhci_pre_req misses pre_req call. This change
fixes it.

Change-Id: I08aea3b3e45e8c3db5cdac12da1129a12e143787
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent 9c9a0530
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -2701,8 +2701,8 @@ static void sdhci_post_req(struct mmc_host *mmc, struct mmc_request *mrq,

	data->host_cookie = COOKIE_UNMAPPED;

	if (host->ops->pre_req)
		host->ops->pre_req(host, mrq);
	if (host->ops->post_req)
		host->ops->post_req(host, mrq);
}

static void sdhci_pre_req(struct mmc_host *mmc, struct mmc_request *mrq,
@@ -2714,6 +2714,9 @@ static void sdhci_pre_req(struct mmc_host *mmc, struct mmc_request *mrq,

	if (host->flags & SDHCI_REQ_USE_DMA)
		sdhci_pre_dma_transfer(host, mrq->data, COOKIE_PRE_MAPPED);

	if (host->ops->pre_req)
		host->ops->pre_req(host, mrq);
}

static inline bool sdhci_has_requests(struct sdhci_host *host)