[PATCH V5] platform/chrome: mfd/cros_ec_dev: Add sysfile to force

2019-03-08 Thread RaviChandra Sadineni
for an userland daemon to suggest EC if it has to do a battery cutoff instead of hibernating when the system enters S5 next time. This attribute is present only if EC supports EC_FEATURE_BATTERY. Signed-off-by: RaviChandra Sadineni --- V5: Expose flag only when EC_FEATURE_BATTERY is supported. V4

[PATCH V4] cros_ec: Expose sysfile to force battery cutoff on shutdown.

2019-03-07 Thread RaviChandra Sadineni
From: RaviChandra Sadineni On chromebooks, power_manager daemon normally shuts down(S5) the device when the battery charge falls below 4% threshold. ChromeOS EC then normally spends an hour in S5 before hibernating. If the battery charge falls below critical threshold in the mean time, EC does

[PATCH V3] cros_ec: Expose sysfile to force battery cut-off on shutdown.

2019-03-04 Thread RaviChandra Sadineni
for an userland daemon to suggest EC if it has to do a battery cut-off instead of hibernating when the system enters S5 next time. Signed-off-by: RaviChandra Sadineni --- V3: Make battery-cutoff generic and expose 'at-shutdown' flag. V2: Use kstrtobool() instead of kstrtou8() and add

[PATCH V3] cros_ec: Expose sysfile to force battery cut-off on shutdown.

2019-03-04 Thread RaviChandra Sadineni
for an userland daemon to suggest EC if it has to do a battery cut-off instead of hibernating when the system enters S5 next time. Signed-off-by: RaviChandra Sadineni --- V3: Make battery-cutoff generic and expose 'at-shutdown' flag. V2: Use kstrtobool() instead of kstrtou8() and add

[PATCH V2] cros_ec: Expose sysfile to force battery cut-off on shutdown.

2019-03-03 Thread RaviChandra Sadineni
for an userland daemon to suggest EC if it has to do a battery cut-off instead of hibernating when the system enters S5 next time. Signed-off-by: RaviChandra Sadineni --- V2: Use kstrtobool() instead of kstrtou8() and add documentation. .../ABI/testing/sysfs-class-chromeos | 8

[PATCH] cros_ec: Expose sysfile to force battery cut-off on shutdown.

2019-03-01 Thread RaviChandra Sadineni
for an userland daemon to suggest EC if it has to do a battery cut-off instead of hibernating when the system enters S5 next time. Signed-off-by: RaviChandra Sadineni --- drivers/platform/chrome/cros_ec_sysfs.c | 34 + 1 file changed, 34 insertions(+) diff --git a/drivers

mfd: cros_ec: Check for mkbp events on resume only if supported.

2018-08-20 Thread RaviChandra Sadineni
is supported. Signed-off-by: RaviChandra Sadineni --- Note: This patch fixes the suspend/resume issue on Snow and Peach-Pit Chromebooks, both on vanilla v4.18 as well as linux-next from 20 August 2018. Further info at: https://lkml.org/lkml/2018/6/5/1076 drivers/mfd/cros_ec.c | 3 ++- 1 file

mfd: cros_ec: Check for mkbp events on resume only if supported.

2018-08-20 Thread RaviChandra Sadineni
is supported. Signed-off-by: RaviChandra Sadineni --- Note: This patch fixes the suspend/resume issue on Snow and Peach-Pit Chromebooks, both on vanilla v4.18 as well as linux-next from 20 August 2018. Further info at: https://lkml.org/lkml/2018/6/5/1076 drivers/mfd/cros_ec.c | 3 ++- 1 file

Input: cros_ec_keyb: Remove check before calling pm_wakeup_event.

2018-08-17 Thread RaviChandra Sadineni
From: RaviChandra Sadineni hi Merek, Unfortunately I could not get the device to boot even after using the exynos_defconfig. Can you please try this patch and see if this fixes the issue. If not can you enable the debug logs and send me the logs. Currently on every resume we check for mkbp

Input: cros_ec_keyb: Remove check before calling pm_wakeup_event.

2018-08-17 Thread RaviChandra Sadineni
From: RaviChandra Sadineni hi Merek, Unfortunately I could not get the device to boot even after using the exynos_defconfig. Can you please try this patch and see if this fixes the issue. If not can you enable the debug logs and send me the logs. Currently on every resume we check for mkbp