<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-obmc-linux/drivers/platform/chrome, branch dev-4.13</title>
<subtitle>Talos™ II Linux sources for OpenBMC</subtitle>
<id>https://git.raptorcs.com/git/talos-obmc-linux/atom?h=dev-4.13</id>
<link rel='self' href='https://git.raptorcs.com/git/talos-obmc-linux/atom?h=dev-4.13'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/'/>
<updated>2017-06-27T16:27:43+00:00</updated>
<entry>
<title>platform/chrome: cros_ec_lightbar - hide unused PM functions</title>
<updated>2017-06-27T16:27:43+00:00</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2017-06-27T15:36:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=5d6a312e8f99f0a0bf793256c203fa17c97a15e1'/>
<id>urn:sha1:5d6a312e8f99f0a0bf793256c203fa17c97a15e1</id>
<content type='text'>
The only reference to the new functions is inside of an #ifdef,
which now causes a harmless warning when CONFIG_PM_SLEEP is not set:

chrome/cros_ec_dev.c:478:12: error: 'ec_device_resume' defined but not used [-Werror=unused-function]
chrome/cros_ec_dev.c:469:12: error: 'ec_device_suspend' defined but not used [-Werror=unused-function]

This marks the two functions as __maybe_unused so they can get
silently dropped by the compiler.

Fixes: 405c84308c43 ("platform/chrome: cros_ec_lightbar - Control of suspend/resume lightbar sequence")
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Reviewed-by: Guenter Roeck &lt;groeck@chromium.org&gt;
Signed-off-by: Benson Leung &lt;bleung@chromium.org&gt;
</content>
</entry>
<entry>
<title>cros_ec: Don't signal wake event for non-wake host events</title>
<updated>2017-06-27T16:19:15+00:00</updated>
<author>
<name>Shawn Nematbakhsh</name>
<email>shawnn@chromium.org</email>
</author>
<published>2017-02-14T19:58:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=29d99b966d60029a11d08b9b004cd84b21ce0d67'/>
<id>urn:sha1:29d99b966d60029a11d08b9b004cd84b21ce0d67</id>
<content type='text'>
The subset of wake-enabled host events is defined by the EC, but the EC
may still send non-wake host events if we're in the process of
suspending. Get the mask of wake-enabled host events from the EC and
filter out non-wake events to prevent spurious aborted suspend
attempts.

Signed-off-by: Shawn Nematbakhsh &lt;shawnn@chromium.org&gt;
Signed-off-by: Thierry Escande &lt;thierry.escande@collabora.com&gt;
Acked-for-MFD-by: Lee Jones &lt;lee.jones@linaro.org&gt;
Signed-off-by: Benson Leung &lt;bleung@chromium.org&gt;
</content>
</entry>
<entry>
<title>cros_ec: Fix deadlock when EC is not responsive at probe</title>
<updated>2017-06-27T15:22:39+00:00</updated>
<author>
<name>Gwendal Grignou</name>
<email>gwendal@chromium.org</email>
</author>
<published>2017-02-14T19:58:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=d4da97e59e1004aa1a15dd75469def20cd84ab99'/>
<id>urn:sha1:d4da97e59e1004aa1a15dd75469def20cd84ab99</id>
<content type='text'>
When the EC is not responsive at probe, we try to get basic information
(protocol to use) later on through cros_xfer_cmd() call.
This patch makes sure there is no deadlock when re-probing the EC by
replacing call to cros_xfer_cmd() with send_command() in the function
cros_ec_get_host_command_version_mask(). Also, this patch adds the
function header indicating it must be called protected.

Signed-off-by: Gwendal Grignou &lt;gwendal@chromium.org&gt;
Signed-off-by: Thierry Escande &lt;thierry.escande@collabora.com&gt;
Signed-off-by: Benson Leung &lt;bleung@chromium.org&gt;
</content>
</entry>
<entry>
<title>cros_ec: Don't return error when checking command version</title>
<updated>2017-06-27T15:22:28+00:00</updated>
<author>
<name>Thierry Escande</name>
<email>thierry.escande@collabora.com</email>
</author>
<published>2017-02-14T19:58:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=a27b8f31cb7929bfb8dc6ca3e6b7a0a39609d7f3'/>
<id>urn:sha1:a27b8f31cb7929bfb8dc6ca3e6b7a0a39609d7f3</id>
<content type='text'>
With this patch, cros_ec_query_all() does not return an error if it
fails to check for MKBP events support. Instead, the EC device structure
indicates that it does not support MKBP events (mkbp_event_supported
field) and cros_ec_query_all() returns 0.

Signed-off-by: Thierry Escande &lt;thierry.escande@collabora.com&gt;
Signed-off-by: Benson Leung &lt;bleung@chromium.org&gt;
</content>
</entry>
<entry>
<title>platform/chrome: cros_ec_lightbar - Avoid I2C xfer to EC during suspend</title>
<updated>2017-06-23T23:12:19+00:00</updated>
<author>
<name>Jeffery Yu</name>
<email>jefferyy@nvidia.com</email>
</author>
<published>2017-05-16T15:46:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=995c0ec9a81f9e4e75f280f095534f4ed1a9ea9d'/>
<id>urn:sha1:995c0ec9a81f9e4e75f280f095534f4ed1a9ea9d</id>
<content type='text'>
A Mutex lock in cros_ec_cmd_xfer which may be held by frozen
Userspace thread during system suspending. So should not
call this routine in suspend thread.

Signed-off-by: Jeffery Yu &lt;jefferyy@nvidia.com&gt;
Signed-off-by: Guenter Roeck &lt;groeck@chromium.org&gt;
Signed-off-by: Enric Balletbo i Serra &lt;enric.balletbo@collabora.com&gt;
Signed-off-by: Benson Leung &lt;bleung@chromium.org&gt;
</content>
</entry>
<entry>
<title>platform/chrome: cros_ec_lightbar - Add userspace lightbar control bit to EC</title>
<updated>2017-06-23T23:12:19+00:00</updated>
<author>
<name>Eric Caruso</name>
<email>ejcaruso@chromium.org</email>
</author>
<published>2017-05-16T15:46:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=abbb054d53266bfbd45ca9f2ba6522e3fd5b7f86'/>
<id>urn:sha1:abbb054d53266bfbd45ca9f2ba6522e3fd5b7f86</id>
<content type='text'>
Some devices might want to turn off the lightbar if e.g. the
system turns the screen off due to idleness. This prevents the
kernel from going through its normal suspend/resume pathways.

Signed-off-by: Eric Caruso &lt;ejcaruso@chromium.org&gt;
Signed-off-by: Guenter Roeck &lt;groeck@chromium.org&gt;
Signed-off-by: Enric Balletbo i Serra &lt;enric.balletbo@collabora.com&gt;
Signed-off-by: Benson Leung &lt;bleung@chromium.org&gt;
</content>
</entry>
<entry>
<title>platform/chrome: cros_ec_lightbar - Control of suspend/resume lightbar sequence</title>
<updated>2017-06-23T23:12:18+00:00</updated>
<author>
<name>Eric Caruso</name>
<email>ejcaruso@chromium.org</email>
</author>
<published>2017-05-16T15:46:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=405c84308c4335ee7cb58b9304b77b85e61f7129'/>
<id>urn:sha1:405c84308c4335ee7cb58b9304b77b85e61f7129</id>
<content type='text'>
Don't let EC control suspend/resume sequence. If the EC controls the
lightbar and sets the sequence when it notices the chipset transitioning
between states, we can't make exceptions for cases where we don't want
to activate the lightbar. Instead, let's move the suspend/resume
notifications into the kernel so we can selectively play the sequences.

Signed-off-by: Eric Caruso &lt;ejcaruso@chromium.org&gt;
Signed-off-by: Guenter Roeck &lt;groeck@chromium.org&gt;
Signed-off-by: Enric Balletbo i Serra &lt;enric.balletbo@collabora.com&gt;
Acked-by: Lee Jones &lt;lee.jones@linaro.org&gt;
Signed-off-by: Benson Leung &lt;bleung@chromium.org&gt;
</content>
</entry>
<entry>
<title>platform/chrome: cros_ec_lightbar - Add lightbar program feature to sysfs</title>
<updated>2017-06-23T23:12:17+00:00</updated>
<author>
<name>Eric Caruso</name>
<email>ejcaruso@chromium.org</email>
</author>
<published>2017-05-16T15:46:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=be3ebebf4377fe924f0419f78fc82cf01a31e692'/>
<id>urn:sha1:be3ebebf4377fe924f0419f78fc82cf01a31e692</id>
<content type='text'>
Add a program feature so we can upload and run programs for lightbar
sequences. We should be able to use this to shift sequences out of the
EC and save space there.

  $ cat &lt;suitable program bin&gt; &gt; /sys/devices/.../cros_ec/program
  $ echo program &gt; /sys/devices/.../cros_ec/sequence

Signed-off-by: Eric Caruso &lt;ejcaruso@chromium.org&gt;
Signed-off-by: Guenter Roeck &lt;groeck@chromium.org&gt;
Signed-off-by: Enric Balletbo i Serra &lt;enric.balletbo@collabora.com&gt;
Acked-by: Lee Jones &lt;lee.jones@linaro.org&gt;
Signed-off-by: Benson Leung &lt;bleung@chromium.org&gt;
</content>
</entry>
<entry>
<title>platform/chrome: cros_ec_lpc: Add MKBP events support over ACPI</title>
<updated>2017-06-23T23:12:17+00:00</updated>
<author>
<name>Gwendal Grignou</name>
<email>gwendal@chromium.org</email>
</author>
<published>2017-05-16T15:46:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=a6df7798d03b29095723c5fe9174ee2b53135ed0'/>
<id>urn:sha1:a6df7798d03b29095723c5fe9174ee2b53135ed0</id>
<content type='text'>
This patch installs a notify handler to process MKBP events for EC
firmware directing them over ACPI.

Signed-off-by: Gwendal Grignou &lt;gwendal@chromium.org&gt;
Signed-off-by: Thierry Escande &lt;thierry.escande@collabora.com&gt;
Signed-off-by: Benson Leung &lt;bleung@chromium.org&gt;
</content>
</entry>
<entry>
<title>platform/chrome: cros_ec_lpc: Add power management ops</title>
<updated>2017-06-23T23:12:16+00:00</updated>
<author>
<name>Archana Patni</name>
<email>archana.patni@intel.com</email>
</author>
<published>2017-05-16T15:46:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-obmc-linux/commit/?id=450de8f43fa665189b8663ae54985152781fb6a4'/>
<id>urn:sha1:450de8f43fa665189b8663ae54985152781fb6a4</id>
<content type='text'>
This patch adds suspend and resume pm ops to the LPC ChromeOS EC driver.
These LPC handlers call the croc_ec generic handlers.

Signed-off-by: Archana Patni &lt;archana.patni@intel.com&gt;
Signed-off-by: Thierry Escande &lt;thierry.escande@collabora.com&gt;
Signed-off-by: Benson Leung &lt;bleung@chromium.org&gt;
</content>
</entry>
</feed>
