mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 02:16:45 +07:00
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: 917809e228
("slimbus: ngd: Add qcom SLIMBus NGD driver")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200925095520.27316-4-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
df2c471c4a
commit
709ec3f7fc
@ -1277,9 +1277,13 @@ static void qcom_slim_ngd_qmi_del_server(struct qmi_handle *hdl,
|
|||||||
{
|
{
|
||||||
struct qcom_slim_ngd_qmi *qmi =
|
struct qcom_slim_ngd_qmi *qmi =
|
||||||
container_of(hdl, struct qcom_slim_ngd_qmi, svc_event_hdl);
|
container_of(hdl, struct qcom_slim_ngd_qmi, svc_event_hdl);
|
||||||
|
struct qcom_slim_ngd_ctrl *ctrl =
|
||||||
|
container_of(qmi, struct qcom_slim_ngd_ctrl, qmi);
|
||||||
|
|
||||||
qmi->svc_info.sq_node = 0;
|
qmi->svc_info.sq_node = 0;
|
||||||
qmi->svc_info.sq_port = 0;
|
qmi->svc_info.sq_port = 0;
|
||||||
|
|
||||||
|
qcom_slim_ngd_enable(ctrl, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct qmi_ops qcom_slim_ngd_qmi_svc_event_ops = {
|
static struct qmi_ops qcom_slim_ngd_qmi_svc_event_ops = {
|
||||||
|
Loading…
Reference in New Issue
Block a user