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

This commit is contained in:
qctecmdr 2022-04-26 02:26:21 -07:00 • committed by Gerrit - the friendly Code Review server
commit ea47c1defd
2 changed files with 4 additions and 0 deletions

View file

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

View file

@ -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",