Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6749533imu; Wed, 30 Jan 2019 22:13:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN7DPkrbntOfKOd/VHP+xRCo2+IWeWWbe2eQDmI7NMCj/2gk9QeQvAKb3meUvIy6e/LaleIa X-Received: by 2002:a62:7c47:: with SMTP id x68mr33849007pfc.209.1548915192160; Wed, 30 Jan 2019 22:13:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548915192; cv=none; d=google.com; s=arc-20160816; b=z8EUZbvaqfazYfWI+7SgQH+gHeHjrE7gHI+zwp+5G3zwpmaZlXH0SELemfeewqDPLD hYuMpbsRNHboglZOBPYQImCC69xrGeNPfj2B9lgaCH2VUl5aPGxZPFHUJNCw1gw4sHV4 1hA8ayXT0bV95R6WBFk4fFer3lGzjC9/B+PCKVz1S+/vVfQ1sLczKTU9RlqjXmxDsjvW Nixxg8UHi4sXdUgHcIzhrdleu5KBp7+lpbo8QoW4jYmTEa3X9/mfVYhKTM4bJT06HQ+x 9gu/guBBHdfvYy2TexmHOfTErP3dytOD36s2XGNNqcWFaS86OarZwQS/KsCNNyNq5ClK Kf/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=a2Dt2LYuEBuB7f9md+YiZOR34ueBE9xvYC6GBTDIs/c=; b=tzV2JHTFygvPEu8DDczebvVAJc/RRRvFNJ/JGVZPXaY6W8k51MycMxGMBcxaYBfs34 dAhG3byF6WAc2FG83KaIuMqTYu9sel8ejYBV9HIfLmqD+oR315GElMKziMqHdqowPZJH ybZc+tzN17RdH/oiJ2/Ry/gPzXQjo62cAUZ1lFQly0BkxhpKzLYNzfOEwUU+mzXgAZf9 /ZfxqTMiou1TpL6DLuwFbRQ98rsMD5+Mk5RW5arAiWuGD6eJUmGB09MR3ODXiF4C1x/R 6/11grqrNRL5tjxYLQEaE3BfhYNuou0IDRQldkeNhQFT6YX8lSw7Rg2y0KT9qlfW9xD5 Cufw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NE6cufbq; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si3563190plp.85.2019.01.30.22.12.55; Wed, 30 Jan 2019 22:13:12 -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=@chromium.org header.s=google header.b=NE6cufbq; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726462AbfAaGMc (ORCPT + 99 others); Thu, 31 Jan 2019 01:12:32 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:37484 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725875AbfAaGMb (ORCPT ); Thu, 31 Jan 2019 01:12:31 -0500 Received: by mail-ed1-f66.google.com with SMTP id h15so1625696edb.4 for ; Wed, 30 Jan 2019 22:12:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=a2Dt2LYuEBuB7f9md+YiZOR34ueBE9xvYC6GBTDIs/c=; b=NE6cufbqKwQVX+V4pO1FelbUy1lZbGFxN6UZ/VA+oby+FiU67LePC52wygBrXgdkr2 auI6tl2HkDkFEXU/1zlqnZ3fkXVR/bAMQRY30ZUrdNUH9SDg+YLnmpbDdl6EKnAvcP22 m3TMGoT5olI/xaE56PajpERirO0VqF2CTcfu8= 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:content-transfer-encoding; bh=a2Dt2LYuEBuB7f9md+YiZOR34ueBE9xvYC6GBTDIs/c=; b=tSDn2xxH+Y0rqmjBA2Trc2xKea9aZbahWqALArdw8+MSulkTPvEYw3plSsSuUfilfu dq7UwcxTBwOByMNOdhZUngZhdjpvCo9z/bhKUTEJ98AN35ouBDK9C+T90cg4A94orBYv VMfhzsQh0GAMAItxzaJCF0FPEuCT09lK0fF8qgxyzOLyhFDH0g8SwsaPQXGQW2tUSDcV KusQzjrEr6IreWDRi/8rCdBh88Au6OMyFdSohalM1MttjLvQNdERXROc3tH5j7/U/wOw JwDUIIFOdwO8JTFx7zgOicNxxbAHSO19LILj/gdP6jEuq18XllyqKW8QXYFV66HKfGvX 8DnQ== X-Gm-Message-State: AHQUAua02jFRCmdwlX8v7bXGVdDRnwuOiuCOB+VDO/7RRaE82/pNzJ9Z 18Pg0etOJ6iWIMuWE5GtObbzSOhJCE6VnZF4qlHuJg== X-Received: by 2002:a17:906:cb2:: with SMTP id k18-v6mr3862894ejh.129.1548915149858; Wed, 30 Jan 2019 22:12:29 -0800 (PST) MIME-Version: 1.0 References: <20190121071833.43443-1-pihsun@chromium.org> <20190121071833.43443-6-pihsun@chromium.org> <20190130130738.GC4701@dell> In-Reply-To: From: Pi-Hsun Shih Date: Thu, 31 Jan 2019 14:12:19 +0800 Message-ID: Subject: Re: [RFC v3 5/5] cros_ec: differentiate SCP from EC by feature bit. To: Enric Balletbo Serra Cc: Lee Jones , Nicolas Boichat , Guenter Roeck , Benson Leung , Enric Balletbo i Serra , open list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Enric, On Wed, Jan 30, 2019 at 11:06 PM Enric Balletbo Serra wrote: > > Hi Lee, Pi-Hsun, > > Missatge de Lee Jones del dia dc., 30 de gen. > 2019 a les 14:07: > > > > On Mon, 21 Jan 2019, Pi-Hsun Shih wrote: > > > > > Since a SCP and EC would both exist on a system, and use the cros_ec_= dev > > > driver, we need to differentiate between them for the userspace, or t= hey > > > would both be registered at /dev/cros_ec, causing a conflict. > > > > > > Cc: Enric Balletbo Serra > > > Cc: Guenter Roeck > > > Signed-off-by: Pi-Hsun Shih > > > --- > > > Changes from v2: > > > - No change. > > > > > > Changes from v1: > > > - New patch extracted from Patch 5. > > > --- > > > drivers/mfd/cros_ec_dev.c | 9 +++++++++ > > > include/linux/mfd/cros_ec.h | 1 + > > > include/linux/mfd/cros_ec_commands.h | 2 ++ > > > 3 files changed, 12 insertions(+) > > > > Just to clarify to the new Cc'ed list, I'm waiting on one of the > > Chromium guys to review before I put my mucky paws over it. > > > > Pi-Hsun, is this patchset still an RFC or you really want to see this > merged ASAP? If I am not mistaken there is still some work in progress > trying to push all the SCP stuff? > > Lee, personally I have some concerns. Looks like the cros_* family is > increasing quickly lately (cros_ec, cros_pd, cros_scp, cros_ish, > cros_fp ...) and I am wondering if we are really doing well all this. > To be honest, I'd like to take a deeper look before merge this, btw I > thought there was no hurry because of the RFC and I guess there are > still some scp things that are missing. I might be wrong, and if > that's not the case I can take a look deeper and the end of the week. > > Best regards, > Enric I don't think we need this to be merged ASAP. I feel that most of the todos are done though, so I'll drop the RFC tag and resend a v4 (which also contains some bug fixes found when testing). > > > > -- > > Lee Jones [=E6=9D=8E=E7=90=BC=E6=96=AF] > > Linaro Services Technical Lead > > Linaro.org =E2=94=82 Open source software for ARM SoCs > > Follow Linaro: Facebook | Twitter | Blog