Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3460155ybl; Mon, 12 Aug 2019 00:26:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFySPLUh6Ut8qfN7hQF/AOgVRFwWw/u3QyMZUG9G64cXjfho3PNSnLVmfaV9Jv3sRKWGra X-Received: by 2002:a17:902:44c:: with SMTP id 70mr19742929ple.225.1565594773663; Mon, 12 Aug 2019 00:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565594773; cv=none; d=google.com; s=arc-20160816; b=n3hxFG49rvoaG/HNgrJNZWNIBIxYjNDr283e/z/ERuB06DHerMbX3k0Lke9RTBMa21 7GW+tROZbaMOiG+44VTziXcu00Ie+TdLVz/537rsoIb+mbJEui6JVilT/4wqJZaGdffm 4SrFvkP6KK6x+vaVqhSOsJcPn11I5gNq4TY/p1lUhO3DfTTnadrsymnZn6IvJnjP/XOS dtSYWg5KWwWP4MSMDEufpzyxHuYKnNLi22euHYzALdaqMTByGGYbZOhPss45mEfgKGyE xXaxsHgikZO11r+nIXKUxqf5cOGAyrbDz7K7U8HUD81j7eQOhbTl+wnZn+1VruhhSe+M TSaw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EzL5oPwPWP+i1Dl8GnEH4sLFKHKvgm53zQpW/LeZKN8=; b=zcOmiHG7vvG0beU2l+neo8ZAGYbnwT8nyAQk/EVD+J03gz50KKYuIyPkby1kTNKRHy Ps0KCSbF68vmxpbtHm86TfLLISatRWHzEHTigrnAAw4WQVZbO0SqQ3v9QxEljCJc6wDo B6iz50/lOWZndvwjS9F2vDVGcKRs0CpNZu72b/t4AjO8bBmvMkLmltepcmhGJultZgTJ Op9ZpSWkrcpTZPOizsS4Yn63j2AYThKCeTufBzGTMSt9OYYR/9a9N9EgF7d5X3dXqOhP Ek5GVNQwwcBQbjjwr6s1oQ5SHc2dlDB6ihtVVBp0I+Gxbf0gvLRP6GL4Zh6LnUueYelS XzGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PykGLLrM; 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 n5si6307081pjp.90.2019.08.12.00.25.58; Mon, 12 Aug 2019 00:26:13 -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=@linaro.org header.s=google header.b=PykGLLrM; 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 S1727017AbfHLHY6 (ORCPT + 99 others); Mon, 12 Aug 2019 03:24:58 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34486 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726869AbfHLHY6 (ORCPT ); Mon, 12 Aug 2019 03:24:58 -0400 Received: by mail-wr1-f68.google.com with SMTP id 31so103695243wrm.1 for ; Mon, 12 Aug 2019 00:24:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=EzL5oPwPWP+i1Dl8GnEH4sLFKHKvgm53zQpW/LeZKN8=; b=PykGLLrMqapgzqImD33lH3WqU8EsjsQyR62y8ey8BqQqsULXtn31CMZxb2FxKrZHJg dcHyPbcCZzYG3x9gfly97a73ggE4cg6kNztifzFGzxqUkUfS38N8vZk5/CwYHFJsDv+C U82Ncu/sqmGlIOwqTibxSmtR1idwD2AsKAbtsmq493DMw1hNQ/htWBvWQXsnY4bNfjMt JBfsedyfZHr5mH9rwmdyKZtG3vQvxF1XqN1ciey/VvSjhlZhOwxl+jjql/Yiaf/7n4mg fFhw4TotMfpvFmERsO0coxyjzCLPZVQFwGSSDlsK+q5u400mvGfVqu2qXT0WqOCntvEz Iswg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=EzL5oPwPWP+i1Dl8GnEH4sLFKHKvgm53zQpW/LeZKN8=; b=Gn6KL/6fTVBH+VWN7OAcB7rk3qxtWz71ZgUXOgbrcR6SJs+1BhKEok1yQIyNb7hpNR A1seB1Fcz1+nHfsrhEMFwO3DVlhZXxCzrW4aa7huolxdj9W/TKdXpvQtff9SIapl+X4T N7OBJ6Zrepd5y902wFi/N+INZejcfQH+ngt+aeQ05gqM+eBJdQXlICWzWQIDs8dYzC4Z F8dJYPTrgZZFVo9f/R9cGzGmCW3jFt2WONKMyRDgT4m+eHi6p/TaV3yOvfNBhye2mRhq /1K5KXbHXx7m4z/nzCcAM2ghdDASuCssDPuOtb3xzgG7fXv0mRyMVxHQleNZjBwQWBVW PsnQ== X-Gm-Message-State: APjAAAUmumAF5MQxIWN8CIIKhPrt0cUdUQbAoeSDXaticfynJ1NC/J3C 0L5LWqLK/i4+hinIBTHSD8taKg== X-Received: by 2002:adf:e8c3:: with SMTP id k3mr28304515wrn.8.1565594696080; Mon, 12 Aug 2019 00:24:56 -0700 (PDT) Received: from dell ([2.27.35.255]) by smtp.gmail.com with ESMTPSA id l3sm23743226wrb.41.2019.08.12.00.24.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Aug 2019 00:24:55 -0700 (PDT) Date: Mon, 12 Aug 2019 08:24:53 +0100 From: Lee Jones To: Enric Balletbo i Serra Cc: linux-kernel@vger.kernel.org, Jonathan Corbet , Krzysztof Kozlowski , Will Deacon , MyungJoo Ham , Chanwoo Choi , Benson Leung , Guenter Roeck , Jonathan Cameron , Dmitry Torokhov , Mauro Carvalho Chehab , Sebastian Reichel , Thierry Reding , Alexandre Belloni , Liam Girdwood , Mark Brown , Neil Armstrong , Greg Kroah-Hartman , Collabora kernel ML , Andy Shevchenko , Gwendal Grignou Subject: Re: [PATCH v5 03/11] mfd / platform: cros_ec: Miscellaneous character device to talk with the EC Message-ID: <20190812072453.GG4594@dell> References: <20190722133257.9336-1-enric.balletbo@collabora.com> <20190722133257.9336-4-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190722133257.9336-4-enric.balletbo@collabora.com> 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 Mon, 22 Jul 2019, Enric Balletbo i Serra wrote: > That's a driver to talk with the ChromeOS Embedded Controller via a > miscellaneous character device, it creates an entry in /dev for every > instance and implements basic file operations for communicating with the > Embedded Controller with an userspace application. The API is moved to > the uapi folder, which is supposed to contain the user space API of the > kernel. > > Note that this will replace current character device interface > implemented in the cros-ec-dev driver in the MFD subsystem. The idea is > to move all the functionality that extends the bounds of what MFD was > designed to platform/chrome subsystem. > > Signed-off-by: Enric Balletbo i Serra > Acked-by: Andy Shevchenko > Reviewed-by: Gwendal Grignou > Tested-by: Gwendal Grignou > --- > > Changes in v5: > - Prefix the versions strings with CROS_EC_DEV_VERSION (Gwendal) > > Changes in v4: None > Changes in v3: > - Fix 'linux/mfd/cros_ec.h' is not exported (reported by lkp) > > Changes in v2: > - Remove the list, and the lock, as are not needed (Greg Kroah-Hartman) > - Remove dev_info in probe, anyway we will see the chardev or not if the > probe fails (Greg Kroah-Hartman) > > drivers/mfd/cros_ec_dev.c | 4 +- > drivers/platform/chrome/Kconfig | 11 + > drivers/platform/chrome/Makefile | 1 + > drivers/platform/chrome/cros_ec_chardev.c | 252 ++++++++++++++++++ > .../uapi/linux/cros_ec_chardev.h | 9 +- > 5 files changed, 271 insertions(+), 6 deletions(-) > create mode 100644 drivers/platform/chrome/cros_ec_chardev.c > rename drivers/mfd/cros_ec_dev.h => include/uapi/linux/cros_ec_chardev.h (80%) For my own reference: Acked-for-MFD-by: Lee Jones -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog