Commit b250bf5f authored by Alex Elder's avatar Alex Elder Committed by Jakub Kicinski

net: ipa: fix interconnect enable bug

When the core clock rate and interconnect bandwidth specifications
were moved into configuration data, a copy/paste bug was introduced,
causing the memory interconnect bandwidth to be set three times
rather than enabling the three different interconnects.

Fix this bug.

Fixes: 91d02f95 ("net: ipa: use config data for clocking")
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Reviewed-by: default avatarGeorgi Djakov <georgi.djakov@linaro.org>
Link: https://lore.kernel.org/r/20201222151613.5730-1-elder@linaro.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent de33212f
...@@ -115,13 +115,13 @@ static int ipa_interconnect_enable(struct ipa *ipa) ...@@ -115,13 +115,13 @@ static int ipa_interconnect_enable(struct ipa *ipa)
return ret; return ret;
data = &clock->interconnect_data[IPA_INTERCONNECT_IMEM]; data = &clock->interconnect_data[IPA_INTERCONNECT_IMEM];
ret = icc_set_bw(clock->memory_path, data->average_rate, ret = icc_set_bw(clock->imem_path, data->average_rate,
data->peak_rate); data->peak_rate);
if (ret) if (ret)
goto err_memory_path_disable; goto err_memory_path_disable;
data = &clock->interconnect_data[IPA_INTERCONNECT_CONFIG]; data = &clock->interconnect_data[IPA_INTERCONNECT_CONFIG];
ret = icc_set_bw(clock->memory_path, data->average_rate, ret = icc_set_bw(clock->config_path, data->average_rate,
data->peak_rate); data->peak_rate);
if (ret) if (ret)
goto err_imem_path_disable; goto err_imem_path_disable;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment