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

Commit d7283245 authored by fei tong's avatar fei tong Committed by ftong
Browse files

ipc: apr: Add config to control the ipc context print



Add CONFIG_IPC_LOGGING block for the code that initialize the logging context.

Change-Id: Ia5d8e5a579573e0ebce65ceb5798a7c2e0fd333f
Signed-off-by: default avatarftong <quic_ftong@quicinc.com>
parent 3fc201fd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1214,10 +1214,12 @@ static int apr_probe(struct platform_device *pdev)
		return -ENOMEM;
	}

#ifdef CONFIG_IPC_LOGGING
	apr_pkt_ctx = ipc_log_context_create(APR_PKT_IPC_LOG_PAGE_CNT,
						"apr", 0);
	if (!apr_pkt_ctx)
		pr_err("%s: Unable to create ipc log context\n", __func__);
#endif  /* CONFIG_IPC_LOGGING */

	spin_lock(&apr_priv->apr_lock);
	apr_priv->is_initial_boot = true;
+2 −0
Original line number Diff line number Diff line
@@ -1421,10 +1421,12 @@ static int apr_probe(struct platform_device *pdev)
		return -ENOMEM;
	}

#ifdef CONFIG_IPC_LOGGING
	apr_pkt_ctx = ipc_log_context_create(APR_PKT_IPC_LOG_PAGE_CNT,
						"apr", 0);
	if (!apr_pkt_ctx)
		pr_err("%s: Unable to create ipc log context\n", __func__);
#endif  /* CONFIG_IPC_LOGGING */

	ret = of_property_read_string(pdev->dev.of_node,
				      "qcom,subsys-name",