Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ARM: tegra: Enable cros-ec-spi as wake source

The cros_ec driver currently assumes that cros-ec-spi compatible device
nodes are a wakeup-source even though the wakeup-source property is not
defined.

Some Chromebooks use a separate wake pin, while others overload the
interrupt for wake and IO. With the current assumption, spurious wakes
can occur on systems that use a separate wake pin. It is planned to
update the driver to no longer assume that the EC interrupt pin should
be enabled for wake.

Add the wakeup-source property to all cros-ec-spi compatible device
nodes to signify to the driver that they should still be a valid wakeup
source.

Signed-off-by: Mark Hasemeyer <markhas@chromium.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Mark Hasemeyer and committed by
Thierry Reding
a6e0afc2 6613476e

+2
+1
arch/arm/boot/dts/nvidia/tegra124-nyan.dtsi
··· 338 338 interrupt-parent = <&gpio>; 339 339 interrupts = <TEGRA_GPIO(C, 7) IRQ_TYPE_LEVEL_LOW>; 340 340 reg = <0>; 341 + wakeup-source; 341 342 342 343 google,cros-ec-spi-msg-delay = <2000>; 343 344
+1
arch/arm/boot/dts/nvidia/tegra124-venice2.dts
··· 857 857 interrupt-parent = <&gpio>; 858 858 interrupts = <TEGRA_GPIO(C, 7) IRQ_TYPE_LEVEL_LOW>; 859 859 reg = <0>; 860 + wakeup-source; 860 861 861 862 google,cros-ec-spi-msg-delay = <2000>; 862 863