Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1928151ybl; Thu, 30 Jan 2020 08:26:43 -0800 (PST) X-Google-Smtp-Source: APXvYqy9fm8nQ4TuCI6GrlOv6MFEQRn0PYZpBA8fgQaFwE1F2upxFT2eqrGfbIzH7ci+YIxCZ0Kz X-Received: by 2002:aca:ab53:: with SMTP id u80mr3338192oie.94.1580401603269; Thu, 30 Jan 2020 08:26:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580401603; cv=none; d=google.com; s=arc-20160816; b=Ldf8NhjEso1IqHHmkEdbEWxDsTaALkNbirbFrXyZ9FwmQw5bewS6fPgxzyZbVVuAGE 2ckM/7BlSwtgJvQd8gTu4U3kzYbbXbspRYmqghTs7C0dKARvY3tpGZzv6CwcvBUNMyol VqSzZ4CBstqkHF6bXcZHq47KTPlVDPNiRKTRTt4mfkKPK+PQLdiygxIOQDsBDpppOd4u +p0xgMGsAU+7zH8yMnwJlUcriFuIbcG8LN+U9Z11ZUAr7xmqSywJp/eMyi1nLpKwtqnQ cceR+gmHvTQz/YS+ME63NbwrKPMEUOy2nvi6Uffo5fFADWfV2chYcwVKpg9mmqLM2Imw SyKw== 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=3tJQxQn36anxbwALkCaLbBJq4eUAmsOs9pq3YyQsRhk=; b=MyxTmuIBQE6I0g0zEHEELiRX9xO5mIO6mFOJDemGQQSGh8EbJpMXbCo+/2fnTHgvD5 PeRfkM4N08LSHbSlfDC5Y3LX7AHRg0uSg9YSmDz8BI2wa8a+gM3lyjDkzz7aduKwXst5 pMI5QRoAiSSHJOC3Oz0PO7/9IYBW5bCip2IbPlM2IOLDeM+hNyuL74R9ImdnyKFEqrap qa+3WgT4BX2h+S9mBrtjLOTsjAz2Sd9dPJc0f0daEbOwKLI0sC7RzD6ugqLqZkf19Hum lk0cL+4uKokCuZRA8gMi2q0b/fzfPxR0sUcs6g4v5Zcci8Y4YgPU4C/3S+k0VjfPqXtc C9dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B3BPjaGW; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 12si2840572oiz.131.2020.01.30.08.26.30; Thu, 30 Jan 2020 08:26:43 -0800 (PST) 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=@linaro.org header.s=google header.b=B3BPjaGW; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727299AbgA3QZH (ORCPT + 99 others); Thu, 30 Jan 2020 11:25:07 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:46007 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727241AbgA3QZG (ORCPT ); Thu, 30 Jan 2020 11:25:06 -0500 Received: by mail-lf1-f67.google.com with SMTP id 203so2657566lfa.12 for ; Thu, 30 Jan 2020 08:25:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3tJQxQn36anxbwALkCaLbBJq4eUAmsOs9pq3YyQsRhk=; b=B3BPjaGWPoAABc9xnyRAFTWgCw9wrB1ZeT2myJ4j3qNZfjdLGQbtA6ppzfO89/TBay ttvDuo9U7iCYnbMNOzUfe+B57ZqaO72i2wXXLcvITDPrdYX21Z3GMK0GscSqPhB96zjn iwMR8iz22LA7x1mU+AKtUlodr9TxWhoVUWP2jAV5Ej3ICcabhMyoMktRvb3ijfcIU47D vpPtwqeJAbEt69pvag9vYsry1ggY1srP0u4R/I9XmMy3jwvhumtpJvGN5uyEiBcnkWsY Ui+JAv/BVlEkHI2seHJqjJtqtIz+OLFYZw3BB4kTFzlLgNqV66SfpQ3w28AuUgQs8vzt wD5A== 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=3tJQxQn36anxbwALkCaLbBJq4eUAmsOs9pq3YyQsRhk=; b=Xki/q7oZa7Ph+xMn6yzghC0nUYG/TZQLDua55Cd6FpmgnVKjdHRwvir+90TqzoWPd8 IsOk1fvXbAxQ4EtwUl7MOFRjjC12IO5MFEmSnFYjquKlfFRIDsUhr/vqKXaejHB+T4ZD Bc6mqGaPaYdMWVzOamQYm/u/eAqFJCkiZZTIQzOH84mSMACGniP43JUWWITt94QJaHUn 5lQJKNPjlHjCm+KmQ2irN2Scr0mpWuT2Usuh4NQNWNEXgvR+4zG8ZWMr4HYUvDAcGZLH TgXTmeHlqhbqKafPOIF5KqjU4xcW7qDx3wnrlcNC7aOmtTtRBLa2Hdpy2/ny3B4/6mtH 6k7w== X-Gm-Message-State: APjAAAU2R36N71VWzzcL370cWAbd6eLCvWBCyafrH14c+FZPGNXBwtwb cjr6s6Lmn5loG+kKRydry6s3kD2cNsBlQM0tkTh7zYOpRs9igw== X-Received: by 2002:ac2:5e29:: with SMTP id o9mr2996848lfg.81.1580401502991; Thu, 30 Jan 2020 08:25:02 -0800 (PST) MIME-Version: 1.0 References: <20200130094103.mrz7ween6ukfa4fk@vireshk-i7> In-Reply-To: <20200130094103.mrz7ween6ukfa4fk@vireshk-i7> From: Etienne Carriere Date: Thu, 30 Jan 2020 17:24:51 +0100 Message-ID: Subject: Re: [PATCH V5] firmware: arm_scmi: Make scmi core independent of the transport type To: Viresh Kumar Cc: linux-kernel@vger.kernel.org, Peng Fan , Sudeep Holla 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 Thu, 30 Jan 2020 at 10:41, Viresh Kumar wrote: > > On 30-01-20, 10:25, Etienne Carriere wrote: > > I've made a first port (draft) for adding new transport channels, next > > to existing mailbox channel, on top of your change. > > You can find it here: https://github.com/etienne-lms/linux/pull/1. > > > > I don't have specific comments on your change but the one below. > > I think SMT header should move out of mailbox.c, but that may be a bit > > out of the scope of your change. > > If it is guaranteed that someone will end up using those routines > apart from mailbox.c, then surely it can be done. > > > I would prefer an optional mak_txdone callback: > > > > if (info->desc->ops->mark_txdone) > > info->desc->ops->mark_txdone(cinfo, ret); > > So you are sure that mark_txdone won't be required in your case? I can > make it optional then. I think there is nothing to be done from mark_txdone() in my setup. Making it optional is more flexible. But transport can also register an empty function if needed. etienne > > -- > viresh