Skip to content

Commit faafd6c

Browse files
Sumit Guptakrzk
authored andcommitted
memory: tegra: make icc_set_bw return zero if BWMGR not supported
Return zero from icc_set_bw() to MC client driver if MRQ_BWMGR_INT is not supported by the BPMP-FW. Currently, 'EINVAL' is returned which causes error message in client drivers even when the platform doesn't support scaling. Fixes: 9365bf0 ("PCI: tegra194: Add interconnect support in Tegra234") Signed-off-by: Sumit Gupta <sumitg@nvidia.com> Acked-by: Thierry Reding <treding@nvidia.com> Link: https://lore.kernel.org/r/20230621134400.23070-5-sumitg@nvidia.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent d1478ae commit faafd6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/memory/tegra/tegra234.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ static int tegra234_mc_icc_set(struct icc_node *src, struct icc_node *dst)
827827
return 0;
828828

829829
if (!mc->bwmgr_mrq_supported)
830-
return -EINVAL;
830+
return 0;
831831

832832
if (!mc->bpmp) {
833833
dev_err(mc->dev, "BPMP reference NULL\n");
@@ -874,7 +874,7 @@ static int tegra234_mc_icc_aggregate(struct icc_node *node, u32 tag, u32 avg_bw,
874874
struct tegra_mc *mc = icc_provider_to_tegra_mc(p);
875875

876876
if (!mc->bwmgr_mrq_supported)
877-
return -EINVAL;
877+
return 0;
878878

879879
if (node->id == TEGRA_ICC_MC_CPU_CLUSTER0 ||
880880
node->id == TEGRA_ICC_MC_CPU_CLUSTER1 ||

0 commit comments

Comments
 (0)