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

Commit 91ce446b authored by Ram Prakash Gupta's avatar Ram Prakash Gupta
Browse files

mmc: cqhci: 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.

Change-Id: I6fb414c13923d963a187ba004e0285ba31ea49d3
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
Signed-off-by: default avatarRam Prakash Gupta <rampraka@codeaurora.org>
parent ca041207
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -305,6 +305,9 @@ static void __cqhci_enable(struct cqhci_host *cq_host)

	cqhci_writel(cq_host, cq_host->rca, CQHCI_SSC2);

	/* send QSR at lesser intervals than the default */
	cqhci_writel(cq_host, SEND_QSR_INTERVAL, CQHCI_SSC1);

	cqhci_set_irqs(cq_host, 0);

	mmc->cqe_on = true;
+6 −0
Original line number Diff line number Diff line
@@ -95,6 +95,12 @@
/* send status config 2 */
#define CQHCI_SSC2			0x44

/*
 * Value n means CQE would send CMD13 during the transfer of data block
 * BLOCK_CNT-n
 */
#define SEND_QSR_INTERVAL 0x70001

/* response for dcmd */
#define CQHCI_CRDCT			0x48