memory: tegra: make icc_set_bw return zero if BWMGR not supported
authorSumit Gupta <sumitg@nvidia.com>
Wed, 21 Jun 2023 13:44:00 +0000 (19:14 +0530)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 25 Jul 2023 20:09:20 +0000 (22:09 +0200)
commitfaafd6ca7e6e7100d21d3f43ec17674f36c9f843
tree832b68d3ac3ec640e08f346dcdc22423c441756f
parentd1478aea649e739a0a0e4890cd8b049ae5d08c13
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: 9365bf006f53 ("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>
drivers/memory/tegra/tegra234.c