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: Asutosh Das <asutoshd@codeaurora.org>
This commit is contained in:
parent
da2e2cbd57
commit
c0a43df5f6
1 changed files with 3 additions and 1 deletions
|
@ -191,6 +191,7 @@ struct sdhci_msm_reg_data {
|
|||
bool set_voltage_sup;
|
||||
};
|
||||
|
||||
#define MSM_MMC_DEFAULT_CPU_DMA_LATENCY 200 /* usecs */
|
||||
/*
|
||||
* This structure keeps information for all the
|
||||
* regulators required for a SDCC slot.
|
||||
|
@ -1526,7 +1527,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");
|
||||
|
|
Loading…
Add table
Reference in a new issue