LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Nick Crews <ncrews@chromium.org>
To: Enric Balletbo i Serra <enric.balletbo@collabora.com>,
Dmitry Torokhov <dtor@google.com>
Cc: Benson Leung <bleung@chromium.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
Duncan Laurie <dlaurie@chromium.org>,
Daniel Kurtz <djkurtz@chromium.org>,
Simon Glass <sjg@chromium.org>,
bartfab@chromium.org, Oleh Lamzin <lamzin@google.com>,
Jason Wong <jchwong@google.com>
Subject: Re: [PATCH v5] platform/chrome: wilco_ec: Add telemetry char device interface
Date: Fri, 24 May 2019 08:47:51 -0600 [thread overview]
Message-ID: <CAHX4x86QbUybRoMScsJ+vwzic6TfECzBnccEe89M8HojMDgH8Q@mail.gmail.com> (raw)
In-Reply-To: <2b8eccfa-0117-37c3-44cb-b1220b9678f9@collabora.com>
Hey Enric, thanks for the review!
On Fri, May 24, 2019 at 3:51 AM Enric Balletbo i Serra
<enric.balletbo@collabora.com> wrote:
>
> Hi Nick,
>
> I'm mostly fine with it but ...
>
> On 21/5/19 21:20, Nick Crews wrote:
> > The Wilco Embedded Controller is able to send telemetry data
> > which is useful for enterprise applications. A daemon running on
> > the OS sends a command to the EC via a write() to a char device,
> > and can read the response with a read(). The write() request is
> > verified by the driver to ensure that it is performing only one
> > of the whitelisted commands, and that no extraneous data is
> > being transmitted to the EC. The response is passed directly
> > back to the reader with no modification.
> >
> > The character device will appear as /dev/wilco_telemN, where N
> > is some small non-negative integer, starting with 0. Only one
>
> Still remains my question in the previous version.
>
> We will really have more than one /dev/wilco_telemN devices handled by this
> driver? Why not use a Miscellaneous Character Device Driver that will simplify
> the code?
We probably will not have more than one device handled by the driver,
but I did this
at the request of Dmitry. He wanted to just do it right the first time so no one
would have to fix it if in the future a second device was needed. FYI,
I did the same
thing for the events driver at https://lore.kernel.org/patchwork/patch/1078461/.
I just tried to find the email thread and/or the review on the
Chromium Gerrit that
documents this, but I couldn't find it. It must have been a private
message, so sorry I
can't link you to it.
Dmitry, am I interpreting your reasoning correctly?
Thanks,
Nick
next prev parent reply other threads:[~2019-05-24 14:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-21 19:20 Nick Crews
2019-05-24 9:51 ` Enric Balletbo i Serra
2019-05-24 14:47 ` Nick Crews [this message]
2019-06-06 10:22 ` Enric Balletbo i Serra
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=CAHX4x86QbUybRoMScsJ+vwzic6TfECzBnccEe89M8HojMDgH8Q@mail.gmail.com \
--to=ncrews@chromium.org \
--cc=bartfab@chromium.org \
--cc=bleung@chromium.org \
--cc=djkurtz@chromium.org \
--cc=dlaurie@chromium.org \
--cc=dtor@google.com \
--cc=enric.balletbo@collabora.com \
--cc=jchwong@google.com \
--cc=lamzin@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sjg@chromium.org \
--subject='Re: [PATCH v5] platform/chrome: wilco_ec: Add telemetry char device interface' \
/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
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).