From: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
To: Lee Jones <lee.jones@linaro.org>
Cc: Samuel Ortiz <sameo@linux.intel.com>,
Olof Johansson <olof@lixom.net>,
Doug Anderson <dianders@chromium.org>,
Bill Richardson <wfrichar@chromium.org>,
Simon Glass <sjg@google.com>,
Gwendal Grignou <gwendal@google.com>,
Stephen Barber <smbarber@chromium.org>,
Filipe Brandenburger <filbranden@google.com>,
Todd Broch <tbroch@chromium.org>,
Alexandru M Stan <amstan@chromium.org>,
Heiko Stuebner <heiko@sntech.de>,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org,
Gwendal Grignou <gwendal@chromium.org>
Subject: Re: [PATCH v6 6/8] mfd: cros_ec: Support multiple EC in a system
Date: Fri, 05 Jun 2015 12:20:00 +0200 [thread overview]
Message-ID: <557177D0.7000908@collabora.co.uk> (raw)
In-Reply-To: <20150605101730.GE7058@x1>
Hello Lee,
On 06/05/2015 12:17 PM, Lee Jones wrote:
> On Thu, 04 Jun 2015, Javier Martinez Canillas wrote:
>
>> From: Gwendal Grignou <gwendal@chromium.org>
>>
>> Chromebooks can have more than one Embedded Controller so the
>> cros_ec device id has to be incremented for each EC registered.
>>
>> Add a new structure to represent multiple EC as different char
>> devices (e.g: /dev/cros_ec, /dev/cros_pd). It connects to
>> cros_ec_device and allows sysfs inferface for cros_pd.
>>
>> Also reduce number of allocated objects, make chromeos sysfs
>> class object a static and add refcounting to prevent object
>> deletion while command is in progress.
>>
>> Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
>> Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
>> Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
>> Tested-by: Heiko Stuebner <heiko@sntech.de>
>> ---
>>
>> Changes since v5:
>> - Don't allow to change the device name from DT. Suggested by Lee Jones.
>> - Expand error messages in case of mfd_add_devices() failure.
>> Suggested by Lee Jones.
>>
>> Changes since v4:
>> - Use cros-ec-name DT property instead of devname. Suggested by Lee Jones.
>> - Pass PLATFORM_DEVID_AUTO directly to mfd_add_devices().
>> Suggested by Lee Jones.
>> - Add Heiko Stuebner tested-by tag.
>> - Fix get_version by passing the cmd_offset to EC_CMD_GET_VERSION.
>>
>> Changes since v3:
>> - Add defines for the EC and PD index constants.
>> - Remove cros_ec_dev_register() and declare the mfd_cells as static structs.
>> Suggested by Lee Jones.
>> - Add a new line before the return statement in cros_ec_dev_register().
>> Suggested by Lee Jones.
>>
>> Changes since v2: None
>>
>> Changes since v1:
>> - Squash patch that adds support to represent EC's as different
>> char devices (e.g: /dev/cros_ec, /dev/cros_pd):
>> https://chromium-review.googlesource.com/#/c/217297/
>> Suggested by Gwendal Grignou
>> - Use cros_ec instead of cros-ec in the subject line to be consistent.
>> Suggested by Gwendal Grignou
>> ---
>> drivers/input/keyboard/cros_ec_keyb.c | 2 +-
>> drivers/mfd/cros_ec.c | 52 ++++++++++--
>> drivers/mfd/cros_ec_i2c.c | 1 -
>> drivers/mfd/cros_ec_spi.c | 1 -
>> drivers/platform/chrome/cros_ec_dev.c | 130 ++++++++++++++++++++---------
>> drivers/platform/chrome/cros_ec_dev.h | 7 --
>> drivers/platform/chrome/cros_ec_lightbar.c | 75 +++++++++--------
>> drivers/platform/chrome/cros_ec_lpc.c | 1 -
>> drivers/platform/chrome/cros_ec_sysfs.c | 48 +++++------
>> include/linux/mfd/cros_ec.h | 44 ++++++++--
>> 10 files changed, 234 insertions(+), 127 deletions(-)
>
> For my own reference:
> Acked-by: Lee Jones <lee.jones@linaro.org>
>
> Let me know when you have all the appropriate Acks and I'll apply the
> set.
>
I will, thanks a lot for your help and all the feedback.
Best regards,
Javier
next prev parent reply other threads:[~2015-06-05 10:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-04 8:05 [PATCH v6 0/8] mfd: cros_ec: Add multi EC and proto v3 support Javier Martinez Canillas
2015-06-04 8:05 ` [PATCH v6 1/8] mfd: cros_ec: Use a zero-length array for command data Javier Martinez Canillas
2015-06-04 8:05 ` [PATCH v6 2/8] mfd: cros_ec: rev cros_ec_commands.h Javier Martinez Canillas
2015-06-04 8:05 ` [PATCH v6 3/8] mfd: cros_ec: Move protocol helpers out of the MFD driver Javier Martinez Canillas
[not found] ` <1433405154-16273-1-git-send-email-javier.martinez-ZGY8ohtN/8pPYcu2f3hruQ@public.gmane.org>
2015-06-04 8:05 ` [PATCH v6 4/8] mfd: cros_ec: add proto v3 skeleton Javier Martinez Canillas
2015-06-04 8:05 ` [PATCH v6 5/8] mfd: cros_ec: add bus-specific proto v3 code Javier Martinez Canillas
2015-06-04 8:05 ` [PATCH v6 6/8] mfd: cros_ec: Support multiple EC in a system Javier Martinez Canillas
2015-06-05 10:17 ` Lee Jones
2015-06-05 10:20 ` Javier Martinez Canillas [this message]
2015-06-08 20:46 ` Olof Johansson
2015-06-09 11:07 ` Javier Martinez Canillas
[not found] ` <1433405154-16273-7-git-send-email-javier.martinez-ZGY8ohtN/8pPYcu2f3hruQ@public.gmane.org>
2015-06-05 10:38 ` Lee Jones
2015-06-05 10:40 ` Javier Martinez Canillas
2015-06-04 8:05 ` [PATCH v6 7/8] mfd: cros_ec: spi: Add a DT property to delay asserting the CS Javier Martinez Canillas
2015-06-04 8:05 ` [PATCH v6 8/8] mfd: cros_ec: spi: Add delay for asserting CS Javier Martinez Canillas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=557177D0.7000908@collabora.co.uk \
--to=javier.martinez@collabora.co.uk \
--cc=amstan@chromium.org \
--cc=devicetree@vger.kernel.org \
--cc=dianders@chromium.org \
--cc=filbranden@google.com \
--cc=gwendal@chromium.org \
--cc=gwendal@google.com \
--cc=heiko@sntech.de \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=olof@lixom.net \
--cc=sameo@linux.intel.com \
--cc=sjg@google.com \
--cc=smbarber@chromium.org \
--cc=tbroch@chromium.org \
--cc=wfrichar@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).