mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 11:53:01 +00:00
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:
parent
5499e3b5c7
commit
925b16ff72
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue