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: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
This commit is contained in:
Asutosh Das 2015-10-06 09:53:33 +05:30 committed by Sahitya Tummala
parent 5499e3b5c7
commit 925b16ff72
2 changed files with 2 additions and 3 deletions

View file

@ -356,8 +356,7 @@ static int cmdq_enable(struct mmc_host *mmc)
cmdq_writel(cq_host, mmc->card->rca, CQSSC2);
/* send QSR at lesser intervals than the default */
cmdq_writel(cq_host, cmdq_readl(cq_host, CQSSC1) | SEND_QSR_INTERVAL,
CQSSC1);
cmdq_writel(cq_host, SEND_QSR_INTERVAL, CQSSC1);
/* ensure the writes are done before enabling CQE */
mb();

View file

@ -78,7 +78,7 @@
* Value n means CQE would send CMD13 during the transfer of data block
* BLOCK_CNT-n
*/
#define SEND_QSR_INTERVAL 0x70000
#define SEND_QSR_INTERVAL 0x70001
/* send status config 2 */
#define CQSSC2 0x44