Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp485869pxx; Wed, 28 Oct 2020 09:24:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZvNJd1o3uxJCUrUQ0Lhpxyt7VzsCluIa7oTBwGyPGG6xFbKsr77hcQn8KceKx1VdGDWcq X-Received: by 2002:aa7:d783:: with SMTP id s3mr8727954edq.214.1603902240061; Wed, 28 Oct 2020 09:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603902240; cv=none; d=google.com; s=arc-20160816; b=p+af+i7RH6rnGgJANXF5C/LzXNyxOO4SCwHNHM4iALu8akqulEjh7fb191YTjH8T5s ub+yq9FgsZdaNb7VFJw1Wr3ZimEvI+8LeXAByMktAv64ucgKbIDN9+bIwLzPtT2Rro/7 VyG8cQpvdgp3xHUJ3rsQTtKm1aIQQqnCzxO/k8yv49zjHJ2JjPALerbdYEE3/uMzf99V oFvR+BQeGHVHCW+YsbVinb9tnMNfyFWQpRUcq7TZ7DDYE8zbB9qhwUAYbPbCRWNCxgLQ YGrogJbPXH42kFOnBEi0K7eEKLi+ESdtHkSUhWCHdqYTGBDYVgfP+LfyKugJfRwI28LT 1elg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kI9mbHYwsdwYwB2zF+ivAY9KL3DAg9f0HqFmHHSy8I4=; b=Dv0wL9nCWwOiE+xvs219PPfzXhQiDRd1wm2nIiHVKlf/rbMWa19cFERo0GTdY09HWt vnB9yooCJAN905ksZ/K6bPz5q3/HugT2ODDMLDllVywHIjALIA7mkWhyeURz885QFJuX qt0iSKmVVqAFZgo5yzGd6IM2yQ6kv6c1zDtIKOqlQRCu1wGLSUON16WdyE7u+Xb9lm0U a6duhpEn0ov5RL62DM9ojGWdinhTXYcfdUJ9nwl6o/hdSMpv84nR5cbAwURlLu8gFPqA ypfgWS/iTtFtpq7s/2JfXQ86gSpJd/iRCdlZGB5pDyTGc23CHTZZ5Frx70waYScUC346 tQeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Dfy3DNB0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g27si3882348ejd.639.2020.10.28.09.23.37; Wed, 28 Oct 2020 09:24:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Dfy3DNB0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1816601AbgJ0RH4 (ORCPT + 99 others); Tue, 27 Oct 2020 13:07:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:33540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1787599AbgJ0PAO (ORCPT ); Tue, 27 Oct 2020 11:00:14 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CF8B520714; Tue, 27 Oct 2020 15:00:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810813; bh=09BtgDStkjmQQSw+UuaeyxieHWs44qv+TUAKa6HcKmM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dfy3DNB0b3NXTSbM/GoHyfc7iOSXAJ1VevhhdRk0+CUPY3r0brLunp5Faw7fXWv/x 0j2EtgGUW82cDr6VsfQTtJ7umTc17s0jrsFdWqkOy3gTohZpikd5yZXZ29hK2yPNWd BEboXt4oIyCkMigS5Dxsr8JKHFNnRpDdgboVN0+s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Srinivas Kandagatla , Sasha Levin Subject: [PATCH 5.8 272/633] slimbus: qcom-ngd-ctrl: disable ngd in qmi server down callback Date: Tue, 27 Oct 2020 14:50:15 +0100 Message-Id: <20201027135535.427361599@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Srinivas Kandagatla [ Upstream commit 709ec3f7fc5773ac4aa6fb22c3f0ac8103c674db ] 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: 917809e2280b ("slimbus: ngd: Add qcom SLIMBus NGD driver") Signed-off-by: Srinivas Kandagatla Link: https://lore.kernel.org/r/20200925095520.27316-4-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/slimbus/qcom-ngd-ctrl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/slimbus/qcom-ngd-ctrl.c b/drivers/slimbus/qcom-ngd-ctrl.c index 743ee7b4e63f2..218aefc3531cd 100644 --- a/drivers/slimbus/qcom-ngd-ctrl.c +++ b/drivers/slimbus/qcom-ngd-ctrl.c @@ -1277,9 +1277,13 @@ static void qcom_slim_ngd_qmi_del_server(struct qmi_handle *hdl, { struct qcom_slim_ngd_qmi *qmi = 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_port = 0; + + qcom_slim_ngd_enable(ctrl, false); } static struct qmi_ops qcom_slim_ngd_qmi_svc_event_ops = { -- 2.25.1