interconnect: Restore sync state by ignoring ipa-virt in provider count

Ignore compatible strings for the IPA virt drivers that were removed in
commits 2fb251c26560 ("interconnect: qcom: sdx55: Drop IP0
interconnects") and 2f3724930eb4 ("interconnect: qcom: sc7180: Drop IP0
interconnects") so that the sync state logic can kick in again.
Otherwise all the interconnects in the system will stay pegged at max
speeds because 'providers_count' is always going to be one larger than
the number of drivers that will ever probe on sc7180 or sdx55. This
fixes suspend on sc7180 and sdx55 devices when you don't have a
devicetree patch to remove the ipa-virt compatible node.

Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Doug Anderson <dianders@chromium.org>
Cc: Alex Elder <elder@linaro.org>
Cc: Taniya Das <quic_tdas@quicinc.com>
Cc: Mike Tipton <quic_mdtipton@quicinc.com>
Fixes: 2fb251c26560 ("interconnect: qcom: sdx55: Drop IP0 interconnects")
Fixes: 2f3724930eb4 ("interconnect: qcom: sc7180: Drop IP0 interconnects")
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20220427013226.341209-1-swboyd@chromium.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>

authored by Stephen Boyd and committed by Georgi Djakov 20ce30fb 2fb251c2

Changed files
+7 -1
drivers
interconnect
+7 -1
drivers/interconnect/core.c
··· 1087 1087 { 1088 1088 struct device_node *child; 1089 1089 int count = 0; 1090 + const struct of_device_id __maybe_unused ignore_list[] = { 1091 + { .compatible = "qcom,sc7180-ipa-virt" }, 1092 + { .compatible = "qcom,sdx55-ipa-virt" }, 1093 + {} 1094 + }; 1090 1095 1091 1096 for_each_available_child_of_node(np, child) { 1092 - if (of_property_read_bool(child, "#interconnect-cells")) 1097 + if (of_property_read_bool(child, "#interconnect-cells") && 1098 + likely(!of_match_node(ignore_list, child))) 1093 1099 count++; 1094 1100 count += of_count_icc_providers(child); 1095 1101 }