Commit f642cbe0 authored by Chris Zhong's avatar Chris Zhong Committed by ChromeOS Commit Bot
Browse files

veyron: disable the wakeup function of gpio-charger



Plugging or unplugging the charger should not wake up the system, so
disable it in user space.

BUG=chrome-os-partner:35723
TEST=cat /sys/class/power_supply/gpio-charger/device/power/wakeup
disable
powerd_dbus_suspend
then plug or unplug the charger, system didn't wake.

Change-Id: I9c3a026a86e53e914dbb9dd33a7e2859837206d9
Signed-off-by: default avatarChris Zhong <zyw@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/254960

Reviewed-by: default avatarDmitry Torokhov <dtor@chromium.org>
Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Commit-Queue: Douglas Anderson <dianders@chromium.org>
Trybot-Ready: Douglas Anderson <dianders@chromium.org>
Tested-by: default avatarDouglas Anderson <dianders@chromium.org>
parent 0d028cbb
......@@ -37,4 +37,6 @@ src_install() {
# Install platform specific files to enable persist on usb3
udev_dorules "${FILESDIR}/99-rk3288-usb3-persist.rules"
# Install platform specific files to avoid wakeup system by gpio-charger
udev_dorules "${FILESDIR}/99-rk3288-gpio-charger.rules"
}
# Avoid gpio-charger wakeup system
ACTION=="add|change", SUBSYSTEM=="platform", ENV{DRIVER}=="gpio-charger", ATTR{power/wakeup}="disabled"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment