Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp15651729ybl; Tue, 31 Dec 2019 12:11:52 -0800 (PST) X-Google-Smtp-Source: APXvYqz43Us3E87Y0ss8OrfjU3l/5sEpmHMK9rOpNLIk/J4MY2hVPjBlCn6GxFkXZW46oE4FRFvu X-Received: by 2002:a17:906:3084:: with SMTP id 4mr73100118ejv.140.1577823112123; Tue, 31 Dec 2019 12:11:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577823112; cv=none; d=google.com; s=arc-20160816; b=U+5+qPS3zAndHTXeSvKaO2BTb/nyuMawZjISwEQLRwdfS4DN091Q2zf8Pll+kCf3G4 YCXmX4MPl6CwXwIHgvzRRnldUQ0Dzqz/adyERTTLrX3UX72UchsEU+tKOeyyFM32upGg xx9lBtlevoWNluJXSeR946RvpNxu2w4xeoJbhdPsM3cG3rYmiA7gz5SNWrxKC9zCueXK FUJVStjTHgptdZ0hLIgEI82uW6O+7fFDXttMjp0w6utq486uhzG2n52XSWQIjHhY7dbD vlsRbCT9xMea93B99aoflzPi0MvOZu/oZufQLDqn83qLJ0ub3ZDEhLcvA00hLIkrXT1x 82Pw== 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=iMq021Q6rh63I8HW48j7kZEsvOhOgIZ1P3FZVqzZ6gs=; b=qACTxq3fmMvfj4caOaCkIGz45Ia1J2cHORwnSJr0IFIL5RR83/x5foUEecmu5g5PqE b6VZ9DNiQx+FXItlOIKM3JD+wMCuHIe9i+QYKBWwQ+n47FevcEfi02Qa8c1kS6YumMxA YjsjA36tfIf33dg/rORfI8+DG08m4Hz1gYdWnSXKYSzxoo0abYQz6ZVDsFh2BgzPnb+O 2nSPWe0gXcf4sho4HuMfx8/vkRWIkfbdBgbomLKaR6LIVMeHYNqRvX/zCy1h6pgsP6sI UgdOxggWf3yWoBlhiWAopWiSSWtPwi+g7Nb9LC3YI+CKJQE9mr83rZk0k8N0UScUCqpm MJIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NL9WDD4e; 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 g11si31621037edm.366.2019.12.31.12.11.27; Tue, 31 Dec 2019 12:11:52 -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=@gmail.com header.s=20161025 header.b=NL9WDD4e; 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 S1727116AbfLaUJj (ORCPT + 99 others); Tue, 31 Dec 2019 15:09:39 -0500 Received: from mail-il1-f193.google.com ([209.85.166.193]:34644 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727075AbfLaUJj (ORCPT ); Tue, 31 Dec 2019 15:09:39 -0500 Received: by mail-il1-f193.google.com with SMTP id s15so30912549iln.1 for ; Tue, 31 Dec 2019 12:09:38 -0800 (PST) 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=iMq021Q6rh63I8HW48j7kZEsvOhOgIZ1P3FZVqzZ6gs=; b=NL9WDD4etkkaMu8o4/dZyhklcox08jitUCc6ApGajt0g1CT75OqTdEm20laAlLM+2W DYN98su9dPkX9FoAB6DyR69f2A3wDWuevmMDq0kSkkXKrRze6i3nxiLTMUOobg8Jwjb0 n0mezUNSThxFYUzfxRb+LpPFsPOrZ/62BZC8R1lfursTX7eoU8PkF7w5uR6wtLQ8cyS5 H+rlblyYk3NBI89zMrTgJ9IpZmHszxW2mdLsSorWcaIDo/HzCfWSNaAt3C8HQroIYxVe /QDzOQZgHgXqSUzUJafbn/P1tPn1E2uB6dXxjSn8Svn+aqUb4LDQHmTw6Y5ToynJ3BHY q23w== 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=iMq021Q6rh63I8HW48j7kZEsvOhOgIZ1P3FZVqzZ6gs=; b=PHYZHnkubVEsF8wrmbB97yfkGZndgeVIyO4gqalOPeK5jj7pj0PsnbYPEZqPjhhyj7 X25ORL/qMG/Ohd4y9wSxAnulUXy20AgYSiy9cAVu8RYxa0fZqHb2SYGyqfHFJn4xfTfY ULZLUBHcJJPDihSmbtjaZAiBQsWJea0pxwjWbvOXhlzeMNgDRhnX+tqxQ/KOhRCm3DAq gKzZJMTViOMOVm5XIVSQFH+eQpwXyaxOJkecs34NPvinaAeKME6A7Rb+Fe3jfppuHmoQ NWSagH2C4FFyN6gzIVB49HnR/ti6QmgEnamqivIbiRyjFRl6AVjjkIQO01ttVOoRnCw+ B6pw== X-Gm-Message-State: APjAAAUzQhW8G7vBxEQ6X7u/sbkqPjk5NePR3fUCFnC/1FXwwmV9939E SttwlH8fLrG5oJGBb7XaOxKd/sorYEbx3Ym6SNQWTMwJ X-Received: by 2002:a92:4891:: with SMTP id j17mr59752468ilg.33.1577822978611; Tue, 31 Dec 2019 12:09:38 -0800 (PST) MIME-Version: 1.0 References: <5c545c2866ba075ddb44907940a1dae1d823b8a1.1575019719.git.viresh.kumar@linaro.org> In-Reply-To: <5c545c2866ba075ddb44907940a1dae1d823b8a1.1575019719.git.viresh.kumar@linaro.org> From: Jassi Brar Date: Tue, 31 Dec 2019 14:09:27 -0600 Message-ID: Subject: Re: [PATCH] firmware: arm_scmi: Make scmi core independent of transport type To: Viresh Kumar Cc: Sudeep Holla , Vincent Guittot , Arnd Bergmann , Linux Kernel Mailing List , linux-arm-kernel 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 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? Cheers!