Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1600836ybk; Sun, 10 May 2020 22:53:21 -0700 (PDT) X-Google-Smtp-Source: APiQypIAlM2J+k9LzWsmuIE+uYVDVgC7QlRaEMTQNp09wCK8RvYk8K4f/TjbaN9jDcsaeLXjgVLt X-Received: by 2002:a17:906:9a1:: with SMTP id q1mr11734109eje.296.1589176401490; Sun, 10 May 2020 22:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589176401; cv=none; d=google.com; s=arc-20160816; b=sXo6Ot0CHVW/JECAS42qQcA4no4upA2vLaQbojphpyF4IZjhcJ+DczmMtcjpr4KXFK +G1HO52GvZKVyLvw2IRpG59EXaSVTjTi4Q5+lGsuKrdKRXLbLn+Wpu94E225qfFCi77x /KZmhHVyLTPF+RxBslyEhT+ZNqu4xlnzfcUrb7OEMPT1AQZ4l2Kq0J0e7XPOKLLG0xo4 OBc4mG66fSKaWFG61+uOyxjvUFTFYrkVWXdAPxBqUUVwUkoRUQ62Q25IYVYS3D1hRX5Z oU/3MLLMucI3Y7UFJkAVirSPtHiAE56UVmQjy/R+Oh6PS6Ap81q8VstYZxt3/lM/kK/P eTrA== 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=VVIDTnJayPp7ynQcTvyLSNpQVf+58l1JIpEMGTe0U6A=; b=lFq1LnET+kA60RVm9NyxaVY/aJtwfFuYLINiKmwz5JuF8fnmSpHlWA3E0nttVU8um1 hP0D5+WrnwUZObr4M4XfN9zABPJF/BUH3nU8N5wFRqCowZANn01nW31y1qOMa41wmDdE QLHKdEH6vw25VMac+3yFAqWvvNx/sdMJ1aaPQ2+VCOSUvaEnCZFHbJjywaxqw+pG880w KtARmHywcKljmqNXf3uzkrVEojqD6PRFC6DpE0iI2JhmcdQlj6QNGxK5lQgOc9tHW56S diz4rsTFW71InAiQhwbC0Iol27hfzB6H11T1mB5WdQvZO/BcvlS/DSRorANLTp7Y0D5m gQLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=pBVmzxw5; 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 bd4si5200945edb.607.2020.05.10.22.52.53; Sun, 10 May 2020 22:53:21 -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=pBVmzxw5; 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 S1728209AbgEKFvH (ORCPT + 99 others); Mon, 11 May 2020 01:51:07 -0400 Received: from m15-113.126.com ([220.181.15.113]:57757 "EHLO m15-113.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726319AbgEKFvH (ORCPT ); Mon, 11 May 2020 01:51:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=VVIDTnJayPp7ynQcTv yLSNpQVf+58l1JIpEMGTe0U6A=; b=pBVmzxw5PZjs8M63LInyMBbBgsuBfkDNbt /E2zdKrRxR+po7J2SPUPFurINsuve6rXrmVGlVdmRc0Xg0cWpQbYxfrCQz0s+DE2 2JufKe26XvooJ27jQ2rPfgVv5JYA7gX4VXxcFrJ1L3VU7DqZx3Q6FSc29UpNR/T7 RP5ImzdvY= Received: from coding1221.verisilicon.com (unknown [222.65.245.108]) by smtp3 (Coremail) with SMTP id DcmowAAHTgW_57heZMonFA--.29754S2; Mon, 11 May 2020 13:50:56 +0800 (CST) From: joe_zhuchg@126.com To: jassisinghbrar@gmail.com Cc: linux-kernel@vger.kernel.org, Joe Zhu Subject: [PATCH] mailbox: no error log in mbox_client_txdone() for tx done by irq Date: Mon, 11 May 2020 13:50:52 +0800 Message-Id: <20200511055052.23868-1-joe_zhuchg@126.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: DcmowAAHTgW_57heZMonFA--.29754S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Xw48GFW7Xr1DtrWftr4Dtwb_yoWftrb_Cr n5uFy7ur1UCFyFywnrAw4fJ34ayr45Xa1q9asrtF9xt34jvFyjqr1Dtrs3Aw18CF4Dur12 y390vws7twn3AjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUePCztUUUUU== X-Originating-IP: [222.65.245.108] X-CM-SenderInfo: pmrhs6xkxfxwa6rslhhfrp/1tbiVwghN1pEALSDZwAAsH Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joe Zhu client does not know and not care about how controller implement tx done. mbox_client_txdone() may be called when controller uses irq method. Signed-off-by: Joe Zhu --- drivers/mailbox/mailbox.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c index 0b821a5b2db8..116124adf188 100644 --- a/drivers/mailbox/mailbox.c +++ b/drivers/mailbox/mailbox.c @@ -189,7 +189,9 @@ EXPORT_SYMBOL_GPL(mbox_chan_txdone); void mbox_client_txdone(struct mbox_chan *chan, int r) { if (unlikely(!(chan->txdone_method & TXDONE_BY_ACK))) { - dev_err(chan->mbox->dev, "Client can't run the TX ticker\n"); + if (unlikely(!(chan->txdone_method & TXDONE_BY_IRQ))) + dev_err(chan->mbox->dev, + "Client can't run the TX ticker\n"); return; } -- 2.17.1