Loading drivers/coresight/coresight-audio-etm.c +32 −5 Original line number Diff line number Diff line Loading @@ -47,6 +47,23 @@ static int audio_etm_enable(struct coresight_device *csdev) mutex_lock(&drvdata->mutex); /* * The QMI handle may be NULL in the following scenarios: * 1. QMI service is not present * 2. QMI service is present but attempt to enable remote ETM is earlier * than service is ready to handle request * 3. Connection between QMI client and QMI service failed * * Enable CoreSight without processing further QMI commands which * provides the option to enable remote ETM by other means. */ if (!drvdata->handle) { dev_info(drvdata->dev, "%s: QMI service unavailable. Skipping QMI requests\n", __func__); goto out; } req.state = CORESIGHT_ETM_STATE_ENABLED_V01; req_desc.msg_id = CORESIGHT_QMI_SET_ETM_REQ_V01; Loading @@ -72,7 +89,7 @@ static int audio_etm_enable(struct coresight_device *csdev) ret = -EREMOTEIO; goto err; } out: mutex_unlock(&drvdata->mutex); dev_info(drvdata->dev, "Audio ETM tracing enabled\n"); Loading @@ -93,6 +110,13 @@ static void audio_etm_disable(struct coresight_device *csdev) mutex_lock(&drvdata->mutex); if (!drvdata->handle) { dev_info(drvdata->dev, "%s: QMI service unavailable. Skipping QMI requests\n", __func__); goto out; } req.state = CORESIGHT_ETM_STATE_DISABLED_V01; req_desc.msg_id = CORESIGHT_QMI_SET_ETM_REQ_V01; Loading @@ -116,7 +140,7 @@ static void audio_etm_disable(struct coresight_device *csdev) __func__, resp.resp.result, resp.resp.error); goto err; } out: mutex_unlock(&drvdata->mutex); dev_info(drvdata->dev, "Audio ETM tracing disabled\n"); Loading @@ -141,7 +165,8 @@ static void audio_etm_rcv_msg(struct work_struct *work) work_rcv_msg); if (qmi_recv_msg(drvdata->handle) < 0) pr_err("%s: Error receiving QMI message\n", __func__); dev_err(drvdata->dev, "%s: Error receiving QMI message\n", __func__); } static void audio_etm_notify(struct qmi_handle *handle, Loading @@ -166,14 +191,16 @@ static void audio_etm_svc_arrive(struct work_struct *work) drvdata->handle = qmi_handle_create(audio_etm_notify, drvdata); if (!drvdata->handle) { pr_err("%s: QMI client handle alloc failed\n", __func__); dev_err(drvdata->dev, "%s: QMI client handle alloc failed\n", __func__); return; } if (qmi_connect_to_service(drvdata->handle, CORESIGHT_QMI_SVC_ID, CORESIGHT_QMI_VERSION, CORESIGHT_SVC_INST_ID_AUDIO_V01) < 0) { pr_err("%s: Could not connect handle to service\n", __func__); dev_err(drvdata->dev, "%s: Could not connect handle to service\n", __func__); qmi_handle_destroy(drvdata->handle); drvdata->handle = NULL; } Loading drivers/coresight/coresight-modem-etm.c +32 −6 Original line number Diff line number Diff line Loading @@ -47,6 +47,23 @@ static int modem_etm_enable(struct coresight_device *csdev) mutex_lock(&drvdata->mutex); /* * The QMI handle may be NULL in the following scenarios: * 1. QMI service is not present * 2. QMI service is present but attempt to enable remote ETM is earlier * than service is ready to handle request * 3. Connection between QMI client and QMI service failed * * Enable CoreSight without processing further QMI commands which * provides the option to enable remote ETM by other means. */ if (!drvdata->handle) { dev_info(drvdata->dev, "%s: QMI service unavailable. Skipping QMI requests\n", __func__); goto out; } req.state = CORESIGHT_ETM_STATE_ENABLED_V01; req_desc.msg_id = CORESIGHT_QMI_SET_ETM_REQ_V01; Loading @@ -72,7 +89,7 @@ static int modem_etm_enable(struct coresight_device *csdev) ret = -EREMOTEIO; goto err; } out: mutex_unlock(&drvdata->mutex); dev_info(drvdata->dev, "Modem ETM tracing enabled\n"); Loading @@ -82,7 +99,6 @@ err: return ret; } static void modem_etm_disable(struct coresight_device *csdev) { struct modem_etm_drvdata *drvdata = Loading @@ -94,6 +110,13 @@ static void modem_etm_disable(struct coresight_device *csdev) mutex_lock(&drvdata->mutex); if (!drvdata->handle) { dev_info(drvdata->dev, "%s: QMI service unavailable. Skipping QMI requests\n", __func__); goto out; } req.state = CORESIGHT_ETM_STATE_DISABLED_V01; req_desc.msg_id = CORESIGHT_QMI_SET_ETM_REQ_V01; Loading @@ -117,7 +140,7 @@ static void modem_etm_disable(struct coresight_device *csdev) __func__, resp.resp.result, resp.resp.error); goto err; } out: mutex_unlock(&drvdata->mutex); dev_info(drvdata->dev, "Modem ETM tracing disabled\n"); Loading @@ -142,7 +165,8 @@ static void modem_etm_rcv_msg(struct work_struct *work) work_rcv_msg); if (qmi_recv_msg(drvdata->handle) < 0) pr_err("%s: Error receiving QMI message\n", __func__); dev_err(drvdata->dev, "%s: Error receiving QMI message\n", __func__); } static void modem_etm_notify(struct qmi_handle *handle, Loading @@ -167,14 +191,16 @@ static void modem_etm_svc_arrive(struct work_struct *work) drvdata->handle = qmi_handle_create(modem_etm_notify, drvdata); if (!drvdata->handle) { pr_err("%s: QMI client handle alloc failed\n", __func__); dev_err(drvdata->dev, "%s: QMI client handle alloc failed\n", __func__); return; } if (qmi_connect_to_service(drvdata->handle, CORESIGHT_QMI_SVC_ID, CORESIGHT_QMI_VERSION, CORESIGHT_SVC_INST_ID_MODEM_V01) < 0) { pr_err("%s: Could not connect handle to service\n", __func__); dev_err(drvdata->dev, "%s: Could not connect handle to service\n", __func__); qmi_handle_destroy(drvdata->handle); drvdata->handle = NULL; } Loading drivers/coresight/coresight-rpm-etm.c +32 −7 Original line number Diff line number Diff line Loading @@ -47,6 +47,23 @@ static int rpm_etm_enable(struct coresight_device *csdev) mutex_lock(&drvdata->mutex); /* * The QMI handle may be NULL in the following scenarios: * 1. QMI service is not present * 2. QMI service is present but attempt to enable remote ETM is earlier * than service is ready to handle request * 3. Connection between QMI client and QMI service failed * * Enable CoreSight without processing further QMI commands which * provides the option to enable remote ETM by other means. */ if (!drvdata->handle) { dev_info(drvdata->dev, "%s: QMI service unavailable. Skipping QMI requests\n", __func__); goto out; } req.state = CORESIGHT_ETM_STATE_ENABLED_V01; req_desc.msg_id = CORESIGHT_QMI_SET_ETM_REQ_V01; Loading @@ -72,7 +89,7 @@ static int rpm_etm_enable(struct coresight_device *csdev) ret = -EREMOTEIO; goto err; } out: mutex_unlock(&drvdata->mutex); dev_info(drvdata->dev, "RPM ETM tracing enabled\n"); Loading @@ -82,7 +99,6 @@ err: return ret; } static void rpm_etm_disable(struct coresight_device *csdev) { struct rpm_etm_drvdata *drvdata = Loading @@ -94,6 +110,13 @@ static void rpm_etm_disable(struct coresight_device *csdev) mutex_lock(&drvdata->mutex); if (!drvdata->handle) { dev_info(drvdata->dev, "%s: QMI service unavailable. Skipping QMI requests\n", __func__); goto out; } req.state = CORESIGHT_ETM_STATE_DISABLED_V01; req_desc.msg_id = CORESIGHT_QMI_SET_ETM_REQ_V01; Loading @@ -117,7 +140,7 @@ static void rpm_etm_disable(struct coresight_device *csdev) __func__, resp.resp.result, resp.resp.error); goto err; } out: mutex_unlock(&drvdata->mutex); dev_info(drvdata->dev, "RPM ETM tracing disabled\n"); Loading @@ -142,7 +165,8 @@ static void rpm_etm_rcv_msg(struct work_struct *work) work_rcv_msg); if (qmi_recv_msg(drvdata->handle) < 0) pr_err("%s: Error receiving QMI message\n", __func__); dev_err(drvdata->dev, "%s: Error receiving QMI message\n", __func__); } static void rpm_etm_notify(struct qmi_handle *handle, Loading @@ -167,14 +191,16 @@ static void rpm_etm_svc_arrive(struct work_struct *work) drvdata->handle = qmi_handle_create(rpm_etm_notify, drvdata); if (!drvdata->handle) { pr_err("%s: QMI client handle alloc failed\n", __func__); dev_err(drvdata->dev, "%s: QMI client handle alloc failed\n", __func__); return; } if (qmi_connect_to_service(drvdata->handle, CORESIGHT_QMI_SVC_ID, CORESIGHT_QMI_VERSION, CORESIGHT_SVC_INST_ID_RPM_V01) < 0) { pr_err("%s: Could not connect handle to service\n", __func__); dev_err(drvdata->dev, "%s: Could not connect handle to service\n", __func__); qmi_handle_destroy(drvdata->handle); drvdata->handle = NULL; } Loading Loading @@ -275,7 +301,6 @@ err1: err0: destroy_workqueue(drvdata->wq); return ret; } static int rpm_etm_remove(struct platform_device *pdev) Loading drivers/coresight/coresight-wcn-etm.c +32 −8 Original line number Diff line number Diff line Loading @@ -47,6 +47,23 @@ static int wcn_etm_enable(struct coresight_device *csdev) mutex_lock(&drvdata->mutex); /* * The QMI handle may be NULL in the following scenarios: * 1. QMI service is not present * 2. QMI service is present but attempt to enable remote ETM is earlier * than service is ready to handle request * 3. Connection between QMI client and QMI service failed * * Enable CoreSight without processing further QMI commands which * provides the option to enable remote ETM by other means. */ if (!drvdata->handle) { dev_info(drvdata->dev, "%s: QMI service unavailable. Skipping QMI requests\n", __func__); goto out; } req.state = CORESIGHT_ETM_STATE_ENABLED_V01; req_desc.msg_id = CORESIGHT_QMI_SET_ETM_REQ_V01; Loading @@ -72,7 +89,7 @@ static int wcn_etm_enable(struct coresight_device *csdev) ret = -EREMOTEIO; goto err; } out: mutex_unlock(&drvdata->mutex); dev_info(drvdata->dev, "Wireless ETM tracing enabled\n"); Loading @@ -82,7 +99,6 @@ err: return ret; } static void wcn_etm_disable(struct coresight_device *csdev) { struct wcn_etm_drvdata *drvdata = Loading @@ -94,6 +110,13 @@ static void wcn_etm_disable(struct coresight_device *csdev) mutex_lock(&drvdata->mutex); if (!drvdata->handle) { dev_info(drvdata->dev, "%s: QMI service unavailable. Skipping QMI requests\n", __func__); goto out; } req.state = CORESIGHT_ETM_STATE_DISABLED_V01; req_desc.msg_id = CORESIGHT_QMI_SET_ETM_REQ_V01; Loading @@ -117,7 +140,7 @@ static void wcn_etm_disable(struct coresight_device *csdev) __func__, resp.resp.result, resp.resp.error); goto err; } out: mutex_unlock(&drvdata->mutex); dev_info(drvdata->dev, "Wireless ETM tracing disabled\n"); Loading @@ -142,7 +165,8 @@ static void wcn_etm_rcv_msg(struct work_struct *work) work_rcv_msg); if (qmi_recv_msg(drvdata->handle) < 0) pr_err("%s: Error receiving QMI message\n", __func__); dev_err(drvdata->dev, "%s: Error receiving QMI message\n", __func__); } static void wcn_etm_notify(struct qmi_handle *handle, Loading @@ -167,14 +191,16 @@ static void wcn_etm_svc_arrive(struct work_struct *work) drvdata->handle = qmi_handle_create(wcn_etm_notify, drvdata); if (!drvdata->handle) { pr_err("%s: QMI client handle alloc failed\n", __func__); dev_err(drvdata->dev, "%s: QMI client handle alloc failed\n", __func__); return; } if (qmi_connect_to_service(drvdata->handle, CORESIGHT_QMI_SVC_ID, CORESIGHT_QMI_VERSION, CORESIGHT_SVC_INST_ID_WCN_V01) < 0) { pr_err("%s: Could not connect handle to service\n", __func__); dev_err(drvdata->dev, "%s: Could not connect handle to service\n", __func__); qmi_handle_destroy(drvdata->handle); drvdata->handle = NULL; } Loading Loading @@ -265,7 +291,6 @@ static int wcn_etm_probe(struct platform_device *pdev) ret = PTR_ERR(drvdata->csdev); goto err1; } dev_info(dev, "Wireless ETM initialized\n"); return 0; err1: Loading @@ -276,7 +301,6 @@ err1: err0: destroy_workqueue(drvdata->wq); return ret; } static int wcn_etm_remove(struct platform_device *pdev) Loading Loading
drivers/coresight/coresight-audio-etm.c +32 −5 Original line number Diff line number Diff line Loading @@ -47,6 +47,23 @@ static int audio_etm_enable(struct coresight_device *csdev) mutex_lock(&drvdata->mutex); /* * The QMI handle may be NULL in the following scenarios: * 1. QMI service is not present * 2. QMI service is present but attempt to enable remote ETM is earlier * than service is ready to handle request * 3. Connection between QMI client and QMI service failed * * Enable CoreSight without processing further QMI commands which * provides the option to enable remote ETM by other means. */ if (!drvdata->handle) { dev_info(drvdata->dev, "%s: QMI service unavailable. Skipping QMI requests\n", __func__); goto out; } req.state = CORESIGHT_ETM_STATE_ENABLED_V01; req_desc.msg_id = CORESIGHT_QMI_SET_ETM_REQ_V01; Loading @@ -72,7 +89,7 @@ static int audio_etm_enable(struct coresight_device *csdev) ret = -EREMOTEIO; goto err; } out: mutex_unlock(&drvdata->mutex); dev_info(drvdata->dev, "Audio ETM tracing enabled\n"); Loading @@ -93,6 +110,13 @@ static void audio_etm_disable(struct coresight_device *csdev) mutex_lock(&drvdata->mutex); if (!drvdata->handle) { dev_info(drvdata->dev, "%s: QMI service unavailable. Skipping QMI requests\n", __func__); goto out; } req.state = CORESIGHT_ETM_STATE_DISABLED_V01; req_desc.msg_id = CORESIGHT_QMI_SET_ETM_REQ_V01; Loading @@ -116,7 +140,7 @@ static void audio_etm_disable(struct coresight_device *csdev) __func__, resp.resp.result, resp.resp.error); goto err; } out: mutex_unlock(&drvdata->mutex); dev_info(drvdata->dev, "Audio ETM tracing disabled\n"); Loading @@ -141,7 +165,8 @@ static void audio_etm_rcv_msg(struct work_struct *work) work_rcv_msg); if (qmi_recv_msg(drvdata->handle) < 0) pr_err("%s: Error receiving QMI message\n", __func__); dev_err(drvdata->dev, "%s: Error receiving QMI message\n", __func__); } static void audio_etm_notify(struct qmi_handle *handle, Loading @@ -166,14 +191,16 @@ static void audio_etm_svc_arrive(struct work_struct *work) drvdata->handle = qmi_handle_create(audio_etm_notify, drvdata); if (!drvdata->handle) { pr_err("%s: QMI client handle alloc failed\n", __func__); dev_err(drvdata->dev, "%s: QMI client handle alloc failed\n", __func__); return; } if (qmi_connect_to_service(drvdata->handle, CORESIGHT_QMI_SVC_ID, CORESIGHT_QMI_VERSION, CORESIGHT_SVC_INST_ID_AUDIO_V01) < 0) { pr_err("%s: Could not connect handle to service\n", __func__); dev_err(drvdata->dev, "%s: Could not connect handle to service\n", __func__); qmi_handle_destroy(drvdata->handle); drvdata->handle = NULL; } Loading
drivers/coresight/coresight-modem-etm.c +32 −6 Original line number Diff line number Diff line Loading @@ -47,6 +47,23 @@ static int modem_etm_enable(struct coresight_device *csdev) mutex_lock(&drvdata->mutex); /* * The QMI handle may be NULL in the following scenarios: * 1. QMI service is not present * 2. QMI service is present but attempt to enable remote ETM is earlier * than service is ready to handle request * 3. Connection between QMI client and QMI service failed * * Enable CoreSight without processing further QMI commands which * provides the option to enable remote ETM by other means. */ if (!drvdata->handle) { dev_info(drvdata->dev, "%s: QMI service unavailable. Skipping QMI requests\n", __func__); goto out; } req.state = CORESIGHT_ETM_STATE_ENABLED_V01; req_desc.msg_id = CORESIGHT_QMI_SET_ETM_REQ_V01; Loading @@ -72,7 +89,7 @@ static int modem_etm_enable(struct coresight_device *csdev) ret = -EREMOTEIO; goto err; } out: mutex_unlock(&drvdata->mutex); dev_info(drvdata->dev, "Modem ETM tracing enabled\n"); Loading @@ -82,7 +99,6 @@ err: return ret; } static void modem_etm_disable(struct coresight_device *csdev) { struct modem_etm_drvdata *drvdata = Loading @@ -94,6 +110,13 @@ static void modem_etm_disable(struct coresight_device *csdev) mutex_lock(&drvdata->mutex); if (!drvdata->handle) { dev_info(drvdata->dev, "%s: QMI service unavailable. Skipping QMI requests\n", __func__); goto out; } req.state = CORESIGHT_ETM_STATE_DISABLED_V01; req_desc.msg_id = CORESIGHT_QMI_SET_ETM_REQ_V01; Loading @@ -117,7 +140,7 @@ static void modem_etm_disable(struct coresight_device *csdev) __func__, resp.resp.result, resp.resp.error); goto err; } out: mutex_unlock(&drvdata->mutex); dev_info(drvdata->dev, "Modem ETM tracing disabled\n"); Loading @@ -142,7 +165,8 @@ static void modem_etm_rcv_msg(struct work_struct *work) work_rcv_msg); if (qmi_recv_msg(drvdata->handle) < 0) pr_err("%s: Error receiving QMI message\n", __func__); dev_err(drvdata->dev, "%s: Error receiving QMI message\n", __func__); } static void modem_etm_notify(struct qmi_handle *handle, Loading @@ -167,14 +191,16 @@ static void modem_etm_svc_arrive(struct work_struct *work) drvdata->handle = qmi_handle_create(modem_etm_notify, drvdata); if (!drvdata->handle) { pr_err("%s: QMI client handle alloc failed\n", __func__); dev_err(drvdata->dev, "%s: QMI client handle alloc failed\n", __func__); return; } if (qmi_connect_to_service(drvdata->handle, CORESIGHT_QMI_SVC_ID, CORESIGHT_QMI_VERSION, CORESIGHT_SVC_INST_ID_MODEM_V01) < 0) { pr_err("%s: Could not connect handle to service\n", __func__); dev_err(drvdata->dev, "%s: Could not connect handle to service\n", __func__); qmi_handle_destroy(drvdata->handle); drvdata->handle = NULL; } Loading
drivers/coresight/coresight-rpm-etm.c +32 −7 Original line number Diff line number Diff line Loading @@ -47,6 +47,23 @@ static int rpm_etm_enable(struct coresight_device *csdev) mutex_lock(&drvdata->mutex); /* * The QMI handle may be NULL in the following scenarios: * 1. QMI service is not present * 2. QMI service is present but attempt to enable remote ETM is earlier * than service is ready to handle request * 3. Connection between QMI client and QMI service failed * * Enable CoreSight without processing further QMI commands which * provides the option to enable remote ETM by other means. */ if (!drvdata->handle) { dev_info(drvdata->dev, "%s: QMI service unavailable. Skipping QMI requests\n", __func__); goto out; } req.state = CORESIGHT_ETM_STATE_ENABLED_V01; req_desc.msg_id = CORESIGHT_QMI_SET_ETM_REQ_V01; Loading @@ -72,7 +89,7 @@ static int rpm_etm_enable(struct coresight_device *csdev) ret = -EREMOTEIO; goto err; } out: mutex_unlock(&drvdata->mutex); dev_info(drvdata->dev, "RPM ETM tracing enabled\n"); Loading @@ -82,7 +99,6 @@ err: return ret; } static void rpm_etm_disable(struct coresight_device *csdev) { struct rpm_etm_drvdata *drvdata = Loading @@ -94,6 +110,13 @@ static void rpm_etm_disable(struct coresight_device *csdev) mutex_lock(&drvdata->mutex); if (!drvdata->handle) { dev_info(drvdata->dev, "%s: QMI service unavailable. Skipping QMI requests\n", __func__); goto out; } req.state = CORESIGHT_ETM_STATE_DISABLED_V01; req_desc.msg_id = CORESIGHT_QMI_SET_ETM_REQ_V01; Loading @@ -117,7 +140,7 @@ static void rpm_etm_disable(struct coresight_device *csdev) __func__, resp.resp.result, resp.resp.error); goto err; } out: mutex_unlock(&drvdata->mutex); dev_info(drvdata->dev, "RPM ETM tracing disabled\n"); Loading @@ -142,7 +165,8 @@ static void rpm_etm_rcv_msg(struct work_struct *work) work_rcv_msg); if (qmi_recv_msg(drvdata->handle) < 0) pr_err("%s: Error receiving QMI message\n", __func__); dev_err(drvdata->dev, "%s: Error receiving QMI message\n", __func__); } static void rpm_etm_notify(struct qmi_handle *handle, Loading @@ -167,14 +191,16 @@ static void rpm_etm_svc_arrive(struct work_struct *work) drvdata->handle = qmi_handle_create(rpm_etm_notify, drvdata); if (!drvdata->handle) { pr_err("%s: QMI client handle alloc failed\n", __func__); dev_err(drvdata->dev, "%s: QMI client handle alloc failed\n", __func__); return; } if (qmi_connect_to_service(drvdata->handle, CORESIGHT_QMI_SVC_ID, CORESIGHT_QMI_VERSION, CORESIGHT_SVC_INST_ID_RPM_V01) < 0) { pr_err("%s: Could not connect handle to service\n", __func__); dev_err(drvdata->dev, "%s: Could not connect handle to service\n", __func__); qmi_handle_destroy(drvdata->handle); drvdata->handle = NULL; } Loading Loading @@ -275,7 +301,6 @@ err1: err0: destroy_workqueue(drvdata->wq); return ret; } static int rpm_etm_remove(struct platform_device *pdev) Loading
drivers/coresight/coresight-wcn-etm.c +32 −8 Original line number Diff line number Diff line Loading @@ -47,6 +47,23 @@ static int wcn_etm_enable(struct coresight_device *csdev) mutex_lock(&drvdata->mutex); /* * The QMI handle may be NULL in the following scenarios: * 1. QMI service is not present * 2. QMI service is present but attempt to enable remote ETM is earlier * than service is ready to handle request * 3. Connection between QMI client and QMI service failed * * Enable CoreSight without processing further QMI commands which * provides the option to enable remote ETM by other means. */ if (!drvdata->handle) { dev_info(drvdata->dev, "%s: QMI service unavailable. Skipping QMI requests\n", __func__); goto out; } req.state = CORESIGHT_ETM_STATE_ENABLED_V01; req_desc.msg_id = CORESIGHT_QMI_SET_ETM_REQ_V01; Loading @@ -72,7 +89,7 @@ static int wcn_etm_enable(struct coresight_device *csdev) ret = -EREMOTEIO; goto err; } out: mutex_unlock(&drvdata->mutex); dev_info(drvdata->dev, "Wireless ETM tracing enabled\n"); Loading @@ -82,7 +99,6 @@ err: return ret; } static void wcn_etm_disable(struct coresight_device *csdev) { struct wcn_etm_drvdata *drvdata = Loading @@ -94,6 +110,13 @@ static void wcn_etm_disable(struct coresight_device *csdev) mutex_lock(&drvdata->mutex); if (!drvdata->handle) { dev_info(drvdata->dev, "%s: QMI service unavailable. Skipping QMI requests\n", __func__); goto out; } req.state = CORESIGHT_ETM_STATE_DISABLED_V01; req_desc.msg_id = CORESIGHT_QMI_SET_ETM_REQ_V01; Loading @@ -117,7 +140,7 @@ static void wcn_etm_disable(struct coresight_device *csdev) __func__, resp.resp.result, resp.resp.error); goto err; } out: mutex_unlock(&drvdata->mutex); dev_info(drvdata->dev, "Wireless ETM tracing disabled\n"); Loading @@ -142,7 +165,8 @@ static void wcn_etm_rcv_msg(struct work_struct *work) work_rcv_msg); if (qmi_recv_msg(drvdata->handle) < 0) pr_err("%s: Error receiving QMI message\n", __func__); dev_err(drvdata->dev, "%s: Error receiving QMI message\n", __func__); } static void wcn_etm_notify(struct qmi_handle *handle, Loading @@ -167,14 +191,16 @@ static void wcn_etm_svc_arrive(struct work_struct *work) drvdata->handle = qmi_handle_create(wcn_etm_notify, drvdata); if (!drvdata->handle) { pr_err("%s: QMI client handle alloc failed\n", __func__); dev_err(drvdata->dev, "%s: QMI client handle alloc failed\n", __func__); return; } if (qmi_connect_to_service(drvdata->handle, CORESIGHT_QMI_SVC_ID, CORESIGHT_QMI_VERSION, CORESIGHT_SVC_INST_ID_WCN_V01) < 0) { pr_err("%s: Could not connect handle to service\n", __func__); dev_err(drvdata->dev, "%s: Could not connect handle to service\n", __func__); qmi_handle_destroy(drvdata->handle); drvdata->handle = NULL; } Loading Loading @@ -265,7 +291,6 @@ static int wcn_etm_probe(struct platform_device *pdev) ret = PTR_ERR(drvdata->csdev); goto err1; } dev_info(dev, "Wireless ETM initialized\n"); return 0; err1: Loading @@ -276,7 +301,6 @@ err1: err0: destroy_workqueue(drvdata->wq); return ret; } static int wcn_etm_remove(struct platform_device *pdev) Loading