Skip to content

Commit d83ea02

Browse files
committed
Merge tag 'icc-5.18-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc into char-misc-linus
Pull interconnect fixes from Georgi: "interconnect fixes for v5.18-rc This contains an additional fix for sc7180 and sdx55 platforms that helps them to enter suspend even on devices that don't have the most recent DT changes. - interconnect: Restore sync state by ignoring ipa-virt in provider count Signed-off-by: Georgi Djakov <[email protected]>" * tag 'icc-5.18-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc: interconnect: Restore sync state by ignoring ipa-virt in provider count
2 parents fe50388 + 20ce30f commit d83ea02

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/interconnect/core.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,9 +1087,15 @@ static int of_count_icc_providers(struct device_node *np)
10871087
{
10881088
struct device_node *child;
10891089
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+
};
10901095

10911096
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)))
10931099
count++;
10941100
count += of_count_icc_providers(child);
10951101
}

0 commit comments

Comments
 (0)