[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e716716e-87fe-46f5-8ea9-5f649f1da11b@t-8ch.de>
Date: Mon, 6 May 2024 19:43:30 +0200
From: Thomas Weißschuh <linux@...ssschuh.net>
To: "Limonciello, Mario" <mario.limonciello@....com>
Cc: Lee Jones <lee@...nel.org>, Benson Leung <bleung@...omium.org>,
Guenter Roeck <groeck@...omium.org>, Tzung-Bi Shih <tzungbi@...nel.org>, linux-kernel@...r.kernel.org,
chrome-platform@...ts.linux.dev, "Dustin L. Howett" <dustin@...ett.net>,
Sebastian Reichel <sre@...nel.org>, linux-pm@...r.kernel.org
Subject: Re: [PATCH 0/2] platform/chrome: cros_ec_framework_laptop: new driver
On 2024-05-06 08:09:07+0000, Limonciello, Mario wrote:
>
>
> On 5/6/2024 1:09 AM, Thomas Weißschuh wrote:
> > On 2024-05-05 22:56:33+0000, Thomas Weißschuh wrote:
> > > Framework Laptops are using embedded controller firmware based on the
> > > ChromeOS EC project.
> > > In addition to the standard upstream commands some vendor-specific
> > > commands are implemented.
> > >
> > > Add a driver that implements battery charge thresholds using these
> > > custom commands.
> >
> > It turns out that standard ChromesOS EC defines EC_CMD_CHARGE_CONTROL.
> > The kernel headers however only define v1 of the protocol, which is very
> > limited.
> >
> > But in the upstream firmware repo there is a v3 which is much better.
> >
> > The Framework laptop only implements v2 which is also fine.
> > Given that v3 was only introduced late last year, it seems better to
> > stick to v2 anyways for now.
> >
> > So please disregard Patch 2, I'll see on how to use this via a normal
> > cros_ec driver.
> >
> > There are some other Framework-only features that will use Patch 1,
> > so feedback for that would still be good.
>
> What other kinds of features do you have in mind?
There are at least fan and privacy switch reporting in which im interested.
But fan reporting also has a standard command which I'll try to use first.
And then there are many others I'm personally not interested in:
Fingerprint LED configuration, Intrusion Detection, "Standalone mode",
some diagnostics, etc.
Especially as they can also be handled from userspace.
> Considering your above finding I think it's better to put patch 1 into the
> series of "other framework only features" that will use it so it's clearer
> if it's the best way or not.
Agreed, that is what I tried to express.
> [..]
Thomas
Powered by blists - more mailing lists