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

Commit e46e64a5 authored by Asutosh Das's avatar Asutosh Das Committed by Sahitya Tummala
Browse files

mmc: cmdq: decrease the QSR polling period



Configure the controller to send the QSR at 1 clock period.
This would send SQS(CMD13) when no data transfer is in
progress. This decrease in the polling period increases the
performance of the device.

CRs-fixed: 891366
Change-Id: Ic2807c6334a778b5f0c89fb605c6923a44f7624a
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
parent 9c186765
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -357,8 +357,7 @@ static int cmdq_enable(struct mmc_host *mmc)
	cmdq_writel(cq_host, mmc->card->rca, CQSSC2);
	cmdq_writel(cq_host, mmc->card->rca, CQSSC2);


	/* send QSR at lesser intervals than the default */
	/* send QSR at lesser intervals than the default */
	cmdq_writel(cq_host, cmdq_readl(cq_host, CQSSC1) | SEND_QSR_INTERVAL,
	cmdq_writel(cq_host, SEND_QSR_INTERVAL, CQSSC1);
				CQSSC1);


	/* enable bkops exception indication */
	/* enable bkops exception indication */
	if (mmc_card_configured_manual_bkops(mmc->card) &&
	if (mmc_card_configured_manual_bkops(mmc->card) &&
+1 −1
Original line number Original line Diff line number Diff line
@@ -78,7 +78,7 @@
 * Value n means CQE would send CMD13 during the transfer of data block
 * Value n means CQE would send CMD13 during the transfer of data block
 * BLOCK_CNT-n
 * BLOCK_CNT-n
 */
 */
#define SEND_QSR_INTERVAL 0x70000
#define SEND_QSR_INTERVAL 0x70001


/* send status config 2 */
/* send status config 2 */
#define CQSSC2		0x44
#define CQSSC2		0x44