From eff13adc0c01751a54270a715f48e0087d70cd93 Mon Sep 17 00:00:00 2001 From: Yue Ma Date: Tue, 15 Feb 2022 11:02:26 -0800 Subject: [PATCH] cnss2: Check qcom,drv-name for DRV support qcom,drv-name is used to specify the DRV subsystem which will be used in the target. Add the support to check it for DRV support as well. Change-Id: If1c588f1a0b870e020466b1cb6d9ee8bedc87ef3 --- cnss2/pci.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cnss2/pci.c b/cnss2/pci.c index aab3777ffa..8bf392ffc7 100644 --- a/cnss2/pci.c +++ b/cnss2/pci.c @@ -3255,9 +3255,12 @@ static bool cnss_pci_is_drv_supported(struct cnss_pci_data *pci_priv) root_of_node = root_port->dev.of_node; - if (root_of_node->parent) + if (root_of_node->parent) { drv_supported = of_property_read_bool(root_of_node->parent, - "qcom,drv-supported"); + "qcom,drv-supported") || + of_property_read_bool(root_of_node->parent, + "qcom,drv-name"); + } cnss_pr_dbg("PCIe DRV is %s\n", drv_supported ? "supported" : "not supported");