Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp271464ybk; Sat, 9 May 2020 02:23:39 -0700 (PDT) X-Google-Smtp-Source: APiQypICP37i6faw7Np3Fp7Y3GbH9vQWgyTPwultEenGtBLPi8CaWNRcpls+bUJYGVYZPVI86evA X-Received: by 2002:a17:906:3048:: with SMTP id d8mr5421842ejd.97.1589016219316; Sat, 09 May 2020 02:23:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589016219; cv=none; d=google.com; s=arc-20160816; b=R9VjpXWsCChRK1PjygCaQAUltzQFu1X3XSv8Or9qfQPp53hVpBC32t4C6n6tgrWEw+ XcP48bPZvBagynTkUqge3GOQZASyHGSClXYtvS24i8do5N6w4gJlJ97Qa0tWd4BBxHdJ cne3bzDt5IWZjy4+gKbZyUizCG2VTl/KWv1MTOYKZfZwqDzC+ZDPadpt6r5dwvnGAk2B Om4YDdZLOyArqp9MEeS6GLbVMU57ebdMEEUY9anV047dLFE+bg6duWLUELNYEzHA+TZJ LyNa1S2Z1g9IJxj4i5bSjSWcJPdkE6syMXCVnx1ACPf6TrkrQyRuokVifKVeapH3cE+i UExw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=npA6K8XR6m/Q7D+a+Fd/I+FwASzBrx710iIbSXi75Zw=; b=C1Lg94ONF2fhYIxDvw/r6o5zGOceBgoyr77ADGdEPeIbE4nDYra0aO8pxqLSLKd4V0 OYqym2mFVTilCL6wf0EAQXA+nHLG7AHDDVjpWbtvb1/VkEQnuDXoHCp1BZGUXOGuIOnj N7dkJ1zo6qKNC8accpI7ggcoMLY/NQheaFwgy8wLs9ACPzEaTQsbMFPsmWQv7a1wscgC A1D5kkvWGaW+12HEfCHQTsNu70OoW8QY/WMsergN/8c2ThmAKDohuUr4qKsYIZtVnpeJ J7oT9j76Z7qU9qVc+YeO3/EmNILcKD5lByYRnSAndq1RJhMH9xxiBqZonexW4gVXwPxl P3Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=U4w5dbE1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cz5si2293526edb.127.2020.05.09.02.23.15; Sat, 09 May 2020 02:23:39 -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=@126.com header.s=s110527 header.b=U4w5dbE1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727811AbgEIJVg (ORCPT + 99 others); Sat, 9 May 2020 05:21:36 -0400 Received: from m15-112.126.com ([220.181.15.112]:55589 "EHLO m15-112.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725930AbgEIJVg (ORCPT ); Sat, 9 May 2020 05:21:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=npA6K8XR6m/Q7D+a+F d/I+FwASzBrx710iIbSXi75Zw=; b=U4w5dbE1Fuf8bTwppyjMdPTDl0+/3u/6A/ LOhMaJS1/zqiUXGpxzNOYsc0ipgi72lPAoGzIfp7V3CN4HThAuopqaK9W4MCMS9Q 0oid2UDPQ1i4awOzngUhRUjwgC/DUqcX5EFbmqPwlocTk7BDJl363HDmZEvNhtkg vPo6g/jYE= Received: from coding1221.verisilicon.com (unknown [222.65.245.108]) by smtp2 (Coremail) with SMTP id DMmowABXjQHjb7Ze7FwJCw--.5965S2; Sat, 09 May 2020 16:54:59 +0800 (CST) From: joe_zhuchg@126.com To: sudeep.holla@arm.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joe Zhu Subject: [PATCH 1/1] firmware: arm_scmi/mailbox: ignore notification for tx done using irq Date: Sat, 9 May 2020 16:54:57 +0800 Message-Id: <20200509085457.31920-1-joe_zhuchg@126.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: DMmowABXjQHjb7Ze7FwJCw--.5965S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrZr1rKF4kGFy7XryruF43trb_yoWktFX_Cw nFkw4jgr1UAFyFvwnrAwn3G3sIv3y5Wa4vg3Wqvw12qasrX398Wwnrtws5A34UWr4DZryI kas5Grs5Cwn8WjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU5y7K7UUUUU== X-Originating-IP: [222.65.245.108] X-CM-SenderInfo: pmrhs6xkxfxwa6rslhhfrp/1tbifgMfN1pD-wcCJgAAsQ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joe Zhu If mailbox uses IRQ method, it already notified framework with mbox_chan_txdone() in ISR. Signed-off-by: Joe Zhu --- drivers/firmware/arm_scmi/mailbox.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/firmware/arm_scmi/mailbox.c b/drivers/firmware/arm_scmi/mailbox.c index 73077bbc4ad9..303a5dc42429 100644 --- a/drivers/firmware/arm_scmi/mailbox.c +++ b/drivers/firmware/arm_scmi/mailbox.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -147,7 +148,8 @@ static void mailbox_mark_txdone(struct scmi_chan_info *cinfo, int ret) * Unfortunately, we have to kick the mailbox framework after we have * received our message. */ - mbox_client_txdone(smbox->chan, ret); + if (!smbox->chan->mbox->txdone_irq) + mbox_client_txdone(smbox->chan, ret); } static void mailbox_fetch_response(struct scmi_chan_info *cinfo, -- 2.17.1