Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1577266ybm; Sat, 30 May 2020 13:27:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeCj0rHVg14GA/yQcbl/O07pld2RT7e2P2QQtv6wT+qOX0U8j1/U1VXbajBG7xyxf/H+sx X-Received: by 2002:a17:906:409:: with SMTP id d9mr12757189eja.445.1590870438392; Sat, 30 May 2020 13:27:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590870438; cv=none; d=google.com; s=arc-20160816; b=PURA1sDtjE5AIUn4DB3LPOAfYaz2MaexxhZQ2mkaXYinFGRdB8dlpvf1Ex0KmGejrX bYi6/kcConpAa4Z0S4fCFCwdq/CTkYn01uHfOwdLqPdNupTKTPkR9Xb9Px8dnOFI4OoD nKyTneZXVajl8A5CjmKF0VvOBo/Njh2VYZ4tTfs4fz/6nNwUrCsS1iofgTD4jeJNxI4v ITufitMkVDY8W2CHCEn47REZ/3UV0G3YJ22JfY1oKUxjp1vCul3C4sVHQe/g5hmbd6sS k+x5oIQCNJOAyo/iypj8MIoJB6Ljgex/hHb7lRCAeBol7RxUqqV3/2kcRXu3fXOvTEPy NSXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bVDEQbxJRqHCD6C3XLRhpTACNyer8e0/jr8G0oUIeZk=; b=gNeH1g8lqOG4dzUwWJdQe/FhaasFanL60E3gip3VzAL15MdHnbgtdvTRgSdIN7Uu/7 z7+djnQVvNZQHCfeQxrBmnzvQoEGM8zVIXx3zJ223dQi6AXliPwinKFUcSg/uaYwwz9b fRstNhQ7+4hUXNfeaDAb9qieMfBTRjxAIJjjdCvJg35FC1j+mI7fNFm1jW6/4Gkl6hR1 Jl4uIa2pbsj8e1fU+dgbnEtLgegGqonkOLIxBtpkDmRjNvJPyQmNbRH3+JQfuEOWeWCk z9DYH6fY+oLV2jgtKr3hPFl8cz4Izg034wYxBIQQwkoOPaeu/Gcd3yY68IDDTA5U7yyK GSug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fyYeaN+e; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g4si7982622ejb.192.2020.05.30.13.26.55; Sat, 30 May 2020 13:27:18 -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=@gmail.com header.s=20161025 header.b=fyYeaN+e; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729006AbgE3UZQ (ORCPT + 99 others); Sat, 30 May 2020 16:25:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbgE3UZP (ORCPT ); Sat, 30 May 2020 16:25:15 -0400 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B84DDC03E969 for ; Sat, 30 May 2020 13:25:15 -0700 (PDT) Received: by mail-il1-x141.google.com with SMTP id p5so4707284ile.6 for ; Sat, 30 May 2020 13:25:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bVDEQbxJRqHCD6C3XLRhpTACNyer8e0/jr8G0oUIeZk=; b=fyYeaN+eWlQGPYfpfbnHxFirFwfQD0kFI453m18Vcfetpoxgx5C/h5ljTsnWjc/06I BlAhjxArEV8sGNCtU0d0WGhDW/Rs6lVqvHDXDqXX/A2Qs8hDXd/VuG4ZfrE+aUsVA/Uo mnTIDpKkKy6ickZT/wPfdlhB2wSQ3+QzluzE/JTc6RrtilgrWVZIrKfuFjG+bS+vII+F SfRa2rxZOB7LZtcjVXeTbY7+t/YFbhTV13vbOcsE9PkphFHkOj/O/Q4tsF8bApun9sEI 7X9Cw62iOTxhph1HII3upgsgEWvXg1duRfGtjfiRSgJLBFaVP+mTv+leD3dr0rrfISSt zo0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bVDEQbxJRqHCD6C3XLRhpTACNyer8e0/jr8G0oUIeZk=; b=Dkp/tXtyj9rdUpoWouHWNdcNPkQeZSRQLCLl+9y86tWr749qunhx6Uyep7k5CqFvsX NnFCoei3wLk+7OD1SOGfyaqtyTa9oY2fAi0/1ChrIH6lvB+2WYJWkYGq86UPRleFci/J IB85u8di0aywYOqfG0cEU/9bqJ3eWhb15R088Akiia6bsHyUHjJuJw7zMb9E2U7puX5f OGWGB/1Hw8Pu96KGNhcc/ZNrKfFH0+hfa1lQB9AEuYyQbFTPoMQyZRyLs3gZLVjoOiLc UnSGMR7ickuqvSZzwMcZcTOft5On1fsndoXMeM7hmr3p6gL2xSxgXYuMbwCUisM3+2o0 GMtw== X-Gm-Message-State: AOAM533JiTrYIDH3BAflp5A2FcDt3SSgJtG57Zr8svuRBpTmgReHNa5d OrFkiAK0PPVomUhJMDtVpPYll41wkzazcaQa9WM= X-Received: by 2002:a05:6e02:1242:: with SMTP id j2mr13486290ilq.303.1590870314863; Sat, 30 May 2020 13:25:14 -0700 (PDT) MIME-Version: 1.0 References: <20200511055052.23868-1-joe_zhuchg@126.com> In-Reply-To: <20200511055052.23868-1-joe_zhuchg@126.com> From: Jassi Brar Date: Sat, 30 May 2020 15:25:03 -0500 Message-ID: Subject: Re: [PATCH] mailbox: no error log in mbox_client_txdone() for tx done by irq To: joe_zhuchg@126.com Cc: Linux Kernel Mailing List , Joe Zhu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 11, 2020 at 12:52 AM wrote: > > 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; > } If it is not by ACK, client should not call txdone() so we shout immediately. Otherwise something is wrong. thanks.