Skip to content

Commit 709ec3f

Browse files
Srinivas-Kandagatlagregkh
authored andcommitted
slimbus: qcom-ngd-ctrl: disable ngd in qmi server down callback
In QMI new server notification we enable the NGD however during delete server notification we do not disable the NGD. This can lead to multiple instances of NGD being enabled, so make sure that we disable NGD in delete server callback to fix this issue! Fixes: 917809e ("slimbus: ngd: Add qcom SLIMBus NGD driver") Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent df2c471 commit 709ec3f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/slimbus/qcom-ngd-ctrl.c

+4
Original file line numberDiff line numberDiff line change
@@ -1277,9 +1277,13 @@ static void qcom_slim_ngd_qmi_del_server(struct qmi_handle *hdl,
12771277
{
12781278
struct qcom_slim_ngd_qmi *qmi =
12791279
container_of(hdl, struct qcom_slim_ngd_qmi, svc_event_hdl);
1280+
struct qcom_slim_ngd_ctrl *ctrl =
1281+
container_of(qmi, struct qcom_slim_ngd_ctrl, qmi);
12801282

12811283
qmi->svc_info.sq_node = 0;
12821284
qmi->svc_info.sq_port = 0;
1285+
1286+
qcom_slim_ngd_enable(ctrl, false);
12831287
}
12841288

12851289
static struct qmi_ops qcom_slim_ngd_qmi_svc_event_ops = {

0 commit comments

Comments
 (0)