linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Nick Crews <ncrews@chromium.org>
Cc: linux-kernel@vger.kernel.org, sjg@chromium.org, sre@kernel.org,
	linux-input@vger.kernel.org, groeck@chromium.org,
	dlaurie@chromium.org, Nick Crews <ncrews@google.com>,
	Duncan Laurie <dlaurie@google.com>,
	Enric Balletbo i Serra <enric.balletbo@collabora.com>,
	Benson Leung <bleung@chromium.org>
Subject: Re: [PATCH v4 7/9] platform/chrome: Add EC properties
Date: Wed, 23 Jan 2019 10:52:18 -0800	[thread overview]
Message-ID: <20190123185218.GB179701@dtor-ws> (raw)
In-Reply-To: <20190123183325.92946-8-ncrews@chromium.org>

On Wed, Jan 23, 2019 at 11:33:23AM -0700, Nick Crews wrote:
> From: Nick Crews <ncrews@google.com>
> 
> A Property is typically a data item that is stored to NVRAM.
> Each of these data items has an index associated with it
> known as the Property ID (PID). The Property ID is
> used by the system BIOS (and EC) to refer to the Property.
> Properties may have variable lengths. Many features are
> implemented primarily by EC Firmware with system BIOS
> just supporting user configuration via BIOS SETUP and/or
> SMBIOS changes. In order to implement many of these types of
> features the user configuration information is saved to and
> retrieved from the EC. The EC stores this configuration
> information to NVRAM and then can use it while the system
> BIOS is not running or during early boot. Although this
> is a typical scenario there may be other reasons to store
> information in the EC NVRAM instead of the System NVRAM.
> Most of the property services do not have a valid failure
> condition, so this field can be ignored. For items that
> are write once, a failure is returned when a second
> write is attempted.
> 
> Add a get and set interface for EC properties.
> properties live within the "properties" directory.
> Most of the added properties are boolean, but this also
> provides the interface for non-boolean properties,
> which will be used late for scheduling power routines.

We have proper interfaces for many of the options below (i.e. mic mute
led can be expressed via LED subsystem and controlled via
/sys/class/led/...), wlan is should be controlled by rfkil if we decide
to go that road, etc.

Thanks.

-- 
Dmitry

  reply	other threads:[~2019-01-23 18:52 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-23 18:33 [PATCH v4 0/9] platform/chrome: rtc: Add support for Wilco EC Nick Crews
2019-01-23 18:33 ` [PATCH v4 1/9] cros_ec: Remove cros_ec dependency in lpc_mec Nick Crews
2019-01-23 18:33 ` [PATCH v4 2/9] platform/chrome: Add new driver for Wilco EC Nick Crews
2019-01-23 18:33 ` [PATCH v4 3/9] platform/chrome: Add support for raw commands in debugfs Nick Crews
2019-01-23 22:42   ` Enric Balletbo Serra
2019-01-23 18:33 ` [PATCH v4 4/9] platform/chrome: rtc: Add RTC driver Nick Crews
2019-02-07 19:50   ` Alexandre Belloni
2019-01-23 18:33 ` [PATCH v4 5/9] platform/chrome: Add sysfs attributes Nick Crews
2019-02-19 16:04   ` Enric Balletbo Serra
2019-01-23 18:33 ` [PATCH v4 6/9] platform/chrome: Add event handling Nick Crews
2019-01-23 18:45   ` Dmitry Torokhov
2019-01-23 18:33 ` [PATCH v4 7/9] platform/chrome: Add EC properties Nick Crews
2019-01-23 18:52   ` Dmitry Torokhov [this message]
2019-01-23 18:33 ` [PATCH v4 8/9] platform/chrome: Add peakshift and adv_batt_charging Nick Crews
2019-01-23 18:33 ` [PATCH v4 9/9] platform/chrome: Add binary telemetry attributes Nick Crews

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=20190123185218.GB179701@dtor-ws \
    --to=dmitry.torokhov@gmail.com \
    --cc=bleung@chromium.org \
    --cc=dlaurie@chromium.org \
    --cc=dlaurie@google.com \
    --cc=enric.balletbo@collabora.com \
    --cc=groeck@chromium.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ncrews@chromium.org \
    --cc=ncrews@google.com \
    --cc=sjg@chromium.org \
    --cc=sre@kernel.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).