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
This commit is contained in:
Yue Ma
2022-02-15 11:02:26 -08:00
committed by Gerrit - the friendly Code Review server
parent 28ed2c727f
commit eff13adc0c

View File

@@ -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");