From 88b87728f7bc31a25c57f4606aa9ae768c508619 Mon Sep 17 00:00:00 2001 From: Neeraj Soni Date: Fri, 14 Aug 2020 23:09:50 +0530 Subject: [PATCH] mmc: host: Fix the condition to parse crypto clocks If crypto clock details are present the call returns 0 which must be checked to parse the clock entry in host controller dtsi node. Test: 1. Clock scalability. 2. Performance number using Andorbench apk. Change-Id: I10ee3de1c1e02299de6ab390852d367cdb303224 Signed-off-by: Neeraj Soni --- drivers/mmc/host/sdhci-msm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index 9e9fb3afb0ec..29a87b31b6de 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -2055,7 +2055,7 @@ struct sdhci_msm_pltfm_data *sdhci_msm_populate_pdata(struct device *dev, } } - if (sdhci_msm_dt_get_array(dev, "qcom,ice-clk-rates", + if (!sdhci_msm_dt_get_array(dev, "qcom,ice-clk-rates", &ice_clk_table, &ice_clk_table_len, 0)) { if (ice_clk_table && ice_clk_table_len) { if (ice_clk_table_len != 2) {