interconnect: Skip call into provider if initial bw is zero
authorVivek Aknurwar <quic_viveka@quicinc.com>
Fri, 13 Jan 2023 22:07:59 +0000 (14:07 -0800)
committerGeorgi Djakov <djakov@kernel.org>
Mon, 20 Mar 2023 14:42:26 +0000 (16:42 +0200)
commit558ea12354882bb8250be8ea09a6658af3f7d912
treea00c7959c4d0f34467cea689fa6a6a0e96562848
parent4658842abce4bebb0a0caef53f9c99f0ec4e27e3
interconnect: Skip call into provider if initial bw is zero

Currently framework sets bw even when init bw requirements are zero during
provider registration, thus resulting bulk of set bw to hw.
Avoid this behaviour by skipping provider set bw calls if init bw is zero.

Signed-off-by: Vivek Aknurwar <quic_viveka@quicinc.com>
Link: https://lore.kernel.org/r/1673647679-15216-1-git-send-email-quic_viveka@quicinc.com
Signed-off-by: Georgi Djakov <djakov@kernel.org>
drivers/interconnect/core.c