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

Commit 5515996e authored by Asutosh Das's avatar Asutosh Das
Browse files

mmc: sdhci-msm: add default qos



If cpu-dma-latency is not defined in dts files, set it
to 200usec

Change-Id: I27b0357b4d88842a258332250bae66efac3ee5e2
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
parent f75c756e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -160,6 +160,7 @@ enum sdc_mpm_pin_state {
#define CORE_VERSION_MAJOR_SHIFT	28
#define CORE_VERSION_TARGET_MASK	0x000000FF

#define MSM_MMC_DEFAULT_CPU_DMA_LATENCY 200 /* usecs */
/*
 * Waiting until end of potential AHB access for data:
 * 16 AHB cycles (160ns for 100MHz and 320ns for 50MHz) +
@@ -1491,7 +1492,8 @@ static struct sdhci_msm_pltfm_data *sdhci_msm_populate_pdata(struct device *dev)
	if (!of_property_read_u32(np, "qcom,cpu-dma-latency-us",
				&cpu_dma_latency))
		pdata->cpu_dma_latency_us = cpu_dma_latency;

	else
		pdata->cpu_dma_latency_us = MSM_MMC_DEFAULT_CPU_DMA_LATENCY;
	if (sdhci_msm_dt_get_array(dev, "qcom,clk-rates",
			&clk_table, &clk_table_len, 0)) {
		dev_err(dev, "failed parsing supported clock rates\n");