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 <neersoni@codeaurora.org>
tirimbino
Neeraj Soni 4 years ago committed by Gerrit - the friendly Code Review server
parent 4903075301
commit 88b87728f7
  1. 2
      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) {

Loading…
Cancel
Save