Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55df7912 authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Use separate DT entry to add firmware path prefix



qcom,converged-dt is meant to use one DT node which has multiple
sub-nodes to support multiple devices. There is also one simple
scenario that one same DT node can be directly used by multiple
devices without creating sub-nodes. Use separate DT entry for such
case to add firmware path prefix to simplify implementation and
avoid conflicts.

Change-Id: I3beb3dfce30d31f086eeb6667afa83560880ff32
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent a77dc8ab
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2955,8 +2955,10 @@ static void cnss_get_wlaon_pwr_ctrl_info(struct cnss_plat_data *plat_priv)

static bool cnss_use_fw_path_with_prefix(struct cnss_plat_data *plat_priv)
{
	return of_property_read_bool(plat_priv->plat_dev->dev.of_node,
				     "qcom,converged-dt");
	return (of_property_read_bool(plat_priv->plat_dev->dev.of_node,
				      "qcom,converged-dt") ||
	       of_property_read_bool(plat_priv->plat_dev->dev.of_node,
				     "qcom,same-dt-multi-dev"));
}

static const struct platform_device_id cnss_platform_id_table[] = {