Skip to content

Commit 5becde6

Browse files
committed
Merge tag 'char-misc-5.18-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver fixes from Greg KH: "Here are two small driver fixes for 5.18-rc7 that resolve reported problems: - slimbus driver irq bugfix - interconnect sync state bugfix Both of these have been in linux-next with no reported problems" * tag 'char-misc-5.18-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: slimbus: qcom: Fix IRQ check in qcom_slim_probe interconnect: Restore sync state by ignoring ipa-virt in provider count
2 parents 6811a46 + d83ea02 commit 5becde6

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
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
}

drivers/slimbus/qcom-ctrl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,9 +510,9 @@ static int qcom_slim_probe(struct platform_device *pdev)
510510
}
511511

512512
ctrl->irq = platform_get_irq(pdev, 0);
513-
if (!ctrl->irq) {
513+
if (ctrl->irq < 0) {
514514
dev_err(&pdev->dev, "no slimbus IRQ\n");
515-
return -ENODEV;
515+
return ctrl->irq;
516516
}
517517

518518
sctrl = &ctrl->ctrl;

0 commit comments

Comments
 (0)