interconnect: Revert to previous config if any request fails
authorGeorgi Djakov <georgi.djakov@linaro.org>
Wed, 16 Jan 2019 16:11:03 +0000 (18:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 12:37:25 +0000 (13:37 +0100)
commitdce6d406669b56506192e726ffbb238e409a7120
treeb0319d905210066a51b3d4bdf9ecda5663d395a3
parentecfbed0c5ccc0df25cf213c710417ebc1d17aad7
interconnect: Revert to previous config if any request fails

When consumers report their bandwidth needs with icc_set_bw(), it's
possible that the requested amount of bandwidth is not available or just
the new configuration fails to apply on some path. In this case revert to
the previous configuration and propagate the error back to the consumers
to let them know that bandwidth is not available, hardware is busy or
whatever error is returned by the interconnect platform driver.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/interconnect/core.c