Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp221726pxx; Wed, 28 Oct 2020 03:15:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdozFg8/FSeXJVPU65HC0PPQ8LWKj7qj64+ljXYnP3tIjG9UcuIYWR9uS8rn2chuGekems X-Received: by 2002:a17:906:3bd7:: with SMTP id v23mr7094106ejf.100.1603880123295; Wed, 28 Oct 2020 03:15:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603880123; cv=none; d=google.com; s=arc-20160816; b=kvG7u4JakK/+Rkur/ZKsv3cWO9VLfwjRAgAWjfi6ukYO+djbRWWEC8rYmwOtqGCnai Dzi4H9LwVpdxjlSzIoT2i4uga2cx7xYRlpHmC1y2BaIwQEKRkH8qfsRxgnOotiIL86oi 11PvBtQxaGK2uzEA+tlqeu3XygVEK2puH4VVVuW9gl5tzhA0+odvwmwQtAdxClUGAMbQ idbe40B2ccJpaOlPXuMwvWa2sVVrSMFPXkWuUOT/o8hlqxMI4bkHM+rQDzYBlrkae2Y8 edymn4Vt/GuRAV9u9ruS+4n+NIhxDSjt5IMc7wTbLf+WbuweyYKfbcwTDYxL53NrkE7m A23w== 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=HQUZ6tvItlzS7Mqqeas/7qjQ+7pfjazqTgjegZi8Gfc=; b=hW8FBBmgxN7OK3V2iHH8v3FzN07ONuhqmaNhThMwSVXvye/Kk+exx0Hh4vP+zcxh3T h8cJiP9xayB9957klilFmbhRoEf95khd4hgQX+OzT41bBfbgmXsTx3ihgH1KYTsrfAjG R7/jWZCFlQKM2rY+NE0EQX5nYFTdRGpUl0vIOS7rkUU3a7lXVBhQHc5y6lU6TMHRtKPT RGQQh1LntlZtqvxCUZ3zwANWUPbSjmwhk2Xz0gqux2IFUVL01gfb1gsx1GqbVxL0HKY2 7wOg1Symhndt0DnEaYUTh3+PfJ0eW6pY6KtjFj3bbavkUmSGLzsio82+XVbXppIUqmvO KzxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zStpM1Dz; 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 p17si2879649ejg.48.2020.10.28.03.15.00; Wed, 28 Oct 2020 03:15:23 -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=zStpM1Dz; 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 S1760800AbgJ0Ogb (ORCPT + 99 others); Tue, 27 Oct 2020 10:36:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:34796 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760701AbgJ0Of7 (ORCPT ); Tue, 27 Oct 2020 10:35:59 -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 2972B207BB; Tue, 27 Oct 2020 14:35:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809358; bh=9WdmU2y5Hb50+xVyzWBOdpjFa04cJL6qQFdPOBX6EUg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zStpM1Dz6TvMB5n2bx4ihK9JVmIjiCmGyfFXQ03qXqEUwM+SN6NR6uCGGUEY28It/ PyumhMyROpjjPMIvjEEdf2dw4ruiji9M45ARFUABeYgrbc25RtJK3FvAaG8KlDlchp a6foMU27oLL66Exx7ztXv8U2M014ktd3rYpCTABs= 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.4 167/408] slimbus: qcom-ngd-ctrl: disable ngd in qmi server down callback Date: Tue, 27 Oct 2020 14:51:45 +0100 Message-Id: <20201027135502.846496729@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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 01a17d84b6064..ce265bf7de868 100644 --- a/drivers/slimbus/qcom-ngd-ctrl.c +++ b/drivers/slimbus/qcom-ngd-ctrl.c @@ -1273,9 +1273,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