Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6681565ybe; Wed, 18 Sep 2019 07:25:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDwi4sJLGG8/6RlzShu7StAO6AJjPBQSpFO4THBMVYZQ26wZ/spUYywrJJw14I4C4azC9I X-Received: by 2002:a50:9384:: with SMTP id o4mr10653479eda.8.1568816729752; Wed, 18 Sep 2019 07:25:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568816729; cv=none; d=google.com; s=arc-20160816; b=JFXxHWET3UBMVR/dQxqn8Ijv2iiVwoPWExtFsVkSitHmsggFncLZh3FpCmQt+NbKuf ZyrXxMLs3/J6gkzfdY2MovOeZu5eA2b1OsNjcLLB88UGqkdahcNOSgkenw0ClSukj4AR mrEQlMAALUjUPzaCYtaqs0kbMsQ0d0VNacDq49svelTJm5hWLeJTUZuyEQ+ht+v6UiF2 lwXeobDipAo8w8xd2jmPErdkZkMxkgrit5v+go3d9j5G0/ziPGJUxaKUmnzQE463OULz 7um9op4H/eL6wX2+RMZXFOb5SFY7Tvdz4mtOgfykOyNy1CZb7qv9elqQu8chALUGAFfE Q16A== 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=8hOkftNxCx/aWELaDJaTVsr1hHwRKS/6DkQyi3nkXNo=; b=e/HkxweYkBvmG6cJkPz7MQ8hqpVOxmCmkQD6+QCyjylCoBO/qPTlEQDwHG32CZ3NGH igwZwOXJD+t/oBFNUu9AbpnFiL3KvNY8jmZeU5ZzH5vTuuzQOl0t/Tsvq/nUzdmj1a1S FUp+yVuQpOmpkNuJoNjCT5pBho3K47GTaRYLhe3be+6HaPo9Iik8lPi1wmdrvsVL2ipR 8ix+FcAYTOqjzXcrqNxqGu1xeoKbkS+4i21+XgqRiB/V3Qf/npBTckB1g/nUeMYrGRTi Gv21FsMTTZe86aF9l4jeP3d8/wOkk1UB2nu5HOtsj+JrvxVs+D7u7P0f9Z9q524MIX3q Y7Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tiaefsAe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d10si3593570edk.115.2019.09.18.07.25.04; Wed, 18 Sep 2019 07:25:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tiaefsAe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728872AbfIROXG (ORCPT + 99 others); Wed, 18 Sep 2019 10:23:06 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:33938 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726330AbfIROXG (ORCPT ); Wed, 18 Sep 2019 10:23:06 -0400 Received: by mail-io1-f67.google.com with SMTP id q1so16638767ion.1; Wed, 18 Sep 2019 07:23:05 -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=8hOkftNxCx/aWELaDJaTVsr1hHwRKS/6DkQyi3nkXNo=; b=tiaefsAejMqIgoXecf2HVZ6uIEzJD89WgVfxPiUxd2wHa6nLzUze9o9GVpjummntml 7WwLZ0MXTA59q4jDtNtRrYrkAdCLRVZ7nfYDR58y4svtOoPHkCSLbXxcbMkyCtErkmIM 9gCBiErpQ8rA/lOYi6jn6wu0tl86UdRkk8Fjaxyw97vvX2IbE/bIqTs+43mniCCVwgd+ QDgVKIeAchxQSDqjl8U6m2m7i4mRywfVhQtu6dcanIX09OKAWLNWNlIdwhJ1n/DJ9fmM MlLOjQwo40B4150GKMdJgMsYej5F+af/4uNUWja8Nd9FAsf9r+cuTOBrXeABpjfrgzue LKqA== 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=8hOkftNxCx/aWELaDJaTVsr1hHwRKS/6DkQyi3nkXNo=; b=GMCLneJzFp1hfcWNHqqTBDymWpfJdq7O9FQ/RbBNJSt69Q/ZFhLVDs56SxwWNJQdtQ g2HE9FB81/ONwdOtuvC/tK6DZ+v7lzW4UY0kGleTFQ5KjXlreSj1/w45nVb5rDJQlJsq hB7b0SpzD40g14wkz0oh0DxSeVohk6AMZbhCwrTLzRipWpDqagjnzbizfLbSp9DSno5o cnZ5OMHF8ckUZUoV4TWMRguHvbsRcMOelDL9A02xXv0Vi8qW1uF3PEoOTBeWLY3acUiA EXSeZt+K9D2Vt+9TB2eeD/nBbUlSsMhRJCT/aNdFYgE3qFxwIdv2flhWJTY73RcplbfK HWfQ== X-Gm-Message-State: APjAAAW3J9l3xcNJAbfe1sL2wqOQeu27K64IH27RUszcfMFq9JRWlhbg RL99qPHdYiI037v9SCiOtUw5RcABgeGd2/+hV1V74sxq X-Received: by 2002:a5d:8a0f:: with SMTP id w15mr5572006iod.239.1568816585433; Wed, 18 Sep 2019 07:23:05 -0700 (PDT) MIME-Version: 1.0 References: <1568626884-5189-1-git-send-email-peng.fan@nxp.com> <1568626884-5189-3-git-send-email-peng.fan@nxp.com> <20190917183856.2342beed@donnerap.cambridge.arm.com> <20190918110037.4edefb2f@donnerap.cambridge.arm.com> <20190918145832.0bb72e16@donnerap.cambridge.arm.com> In-Reply-To: <20190918145832.0bb72e16@donnerap.cambridge.arm.com> From: Jassi Brar Date: Wed, 18 Sep 2019 09:22:54 -0500 Message-ID: Subject: Re: [PATCH V6 2/2] mailbox: introduce ARM SMC based mailbox To: Andre Przywara Cc: Peng Fan , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "sudeep.holla@arm.com" , "f.fainelli@gmail.com" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , dl-linux-imx 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 Wed, Sep 18, 2019 at 8:58 AM Andre Przywara wrote: > > > > Also there is mbox_chan_txdone() with which a controller driver can signal TX completion explicitly. > > > > > No. Controller can use that only if it has specified txdone_irq, which > > is not the case here. > > I see. So does the framework handle the case where both txdone_poll and txdone_irq are false? > Of course. If there is no IRQ or POLL mechanism for controller to detect tx-done, the only way left is for client driver to know by some 'ack' response (if any). The client should call mbox_client_txdone() Thanks