Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21353726ybl; Mon, 6 Jan 2020 03:01:20 -0800 (PST) X-Google-Smtp-Source: APXvYqyG3JcUCux1Ro05rOHHnyWB9h53/9NGLMT12kku4xrM0jvBhdRoyKCn/V2IzJV0XjpxW1RG X-Received: by 2002:a05:6830:1689:: with SMTP id k9mr119189911otr.311.1578308480573; Mon, 06 Jan 2020 03:01:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578308480; cv=none; d=google.com; s=arc-20160816; b=x9LzgMWOv5mIkCURZSI9SfTZB4uK4ZbSjtG2qL2gWwO7tA/HvDrvoCn4ZkqtrzC9Bi kABClF13WDZHf0XJMLachG4yclegld65N7jCkjQwSzHyd4Dbm9X6wyINHzaPGD6u1zcr kcvA2WCg3wSeWilGWFf5VlKqE/R7fmEvmBS4SOZTxuPIue3ZZ7FD6VGKIvZ3xQy9sPAa TcasYHIlwRNK1bq3chdqbKfhhFe/T1MVFBrqNkjF7pPpDPxKbpuVdRpYJv4r57RkJ2c3 39W0gRcgRvdqXQiaR425cVIY8k4UDpzqmxQ6afLufBJf9rN4gO5zBWDrE0PIO3szluB9 IRUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=o+Am6OzZpKMUfcDBCdI8fkDgWymfSpRzDHNj1jAhTXQ=; b=FHZ6kTcmRTfTLjbCE1Nw9/WzTMYD/Sw9/8qmM2N6tBLJkfd7e+HniXRdb4+SeF1+zF lCNLktHg1QPCcl5sAbT/8neoffICGp41pF51dfbVLHW07Xdd1stwMJRSKRqC0zRDTp7S 4H3xGPjLhx7EFE7HoYAA4L1Nb1CPzr1kLnfK7TxgAbOT3qLSBe4QQ7BZv+nFFzQKoTYN XDfTOQ+9HG0xxwKFvZB8RmywUl66ITRLQESIWc2f52+zkG+qj/8+OZtC1oN1RLihzdtZ Gtf9075ueakjY1KayDHIrvrQx4mqBkEezgMgjKnieSEvec4M+8Ob/Gu88bwlFIoSyA8e CiNA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si36114995otn.117.2020.01.06.03.01.08; Mon, 06 Jan 2020 03:01:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726292AbgAFLAR (ORCPT + 99 others); Mon, 6 Jan 2020 06:00:17 -0500 Received: from foss.arm.com ([217.140.110.172]:42862 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbgAFLAQ (ORCPT ); Mon, 6 Jan 2020 06:00:16 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DF869328; Mon, 6 Jan 2020 03:00:15 -0800 (PST) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DC7843F534; Mon, 6 Jan 2020 03:00:14 -0800 (PST) Date: Mon, 6 Jan 2020 11:00:07 +0000 From: Sudeep Holla To: Jassi Brar Cc: Viresh Kumar , Vincent Guittot , Arnd Bergmann , Sudeep Holla , Linux Kernel Mailing List , linux-arm-kernel Subject: Re: [PATCH] firmware: arm_scmi: Make scmi core independent of transport type Message-ID: <20200106110007.GA54466@bogus> References: <5c545c2866ba075ddb44907940a1dae1d823b8a1.1575019719.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 31, 2019 at 02:09:27PM -0600, Jassi Brar wrote: > On Fri, Nov 29, 2019 at 3:32 AM Viresh Kumar wrote: > > > > The SCMI specification is fairly independent of the transport protocol, > > which can be a simple mailbox (already implemented) or anything else. > > The current Linux implementation however is very much dependent of the > > mailbox transport layer. > > > > This patch makes the SCMI core code (driver.c) independent of the > > mailbox transport layer and moves all mailbox related code to a new > > file: mailbox.c. > > > > We can now implement more transport protocols to transport SCMI > > messages. > > > > The transport protocols just need to provide struct scmi_transport_ops, > > with its version of the callbacks to enable exchange of SCMI messages. > > > We can either add new transport layer between SCMI and Mailbox layers, > or we can write new transport as a mailbox driver (which I always > thought could be a usecase). Right now I am of no strong opinion > either way. Depends, what other transport do you have in mind? > To be more clear, this patch abstracts the SCMI transport so that mailbox can be one of the transport. The plan is to add SMC/HVC, SMC/HVC over SPCI, vitio based transport as alternative to mailbox. These are neither added as mailbox driver nor transport layer between SCMI and Mailbox. E.g.: we either use Peng's SMC based mailbox driver as is or add a new transport independent of mailbox framework here as SCMI transport. -- Regards, Sudeep