]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: use icc_enable() and icc_disable()
authorAlex Elder <elder@linaro.org>
Wed, 9 Mar 2022 19:20:32 +0000 (13:20 -0600)
committerJakub Kicinski <kuba@kernel.org>
Fri, 11 Mar 2022 05:19:04 +0000 (21:19 -0800)
commit541b87b9ba3d45a2573af0b0db240a2ffe3dcb39
tree47c00f508e207462111d464a12e5d345b44b9c0f
parentd2198e3c057deacc09fddca8b98bd76d14b1cbf1
net: ipa: use icc_enable() and icc_disable()

The interconnect framework now provides the ability to enable and
disable interconnects without having to change their recorded
"enabled" bandwidth value.  Use this mechanism, rather than setting
the bandwidth values to zero and non-zero respectively to disable
and enable the IPA interconnects.

Disable each interconnect before setting its "enabled" average and
peak bandwidth values.  Thereafter, enable and disable interconnects
when required rather than setting their bandwidths.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_power.c