interconnect: qcom: Ensure that the floor bandwidth value is enforced
authorGeorgi Djakov <georgi.djakov@linaro.org>
Thu, 22 Oct 2020 10:26:26 +0000 (13:26 +0300)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Thu, 22 Oct 2020 10:26:26 +0000 (13:26 +0300)
commit266cd33b59138501579c64648f54b93eab2e5adf
treeb70dd409e4d6c2a37ff12e9c34b49973febdc09e
parent599809540f173f572c32a35d712accdc14d6357c
interconnect: qcom: Ensure that the floor bandwidth value is enforced

Take into account the initial bandwidth from the framework and update
the internal sum and max values before committing if needed. This will
ensure that the floor bandwidth values are enforced until the providers
get into sync state.

Fixes: 7d3b0b0d8184 ("interconnect: qcom: Use icc_sync_state")
Tested-by: Akash Asthana <akashast@codeaurora.org>
Link: https://lore.kernel.org/r/20201021155938.9223-1-georgi.djakov@linaro.org
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/interconnect/qcom/icc-rpmh.c