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

platform/chrome: cros_ec_sysfs: Add cold-ap-off to sysfs reboot.

Add cold-ap-off to ChromeOS EC sysfs reboot file option, corresponds to
the EC_REBOOT_COLD_AP_OFF flag, that will reset EC and keep AP off.

Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20201221041231.14516-2-pihsun@chromium.org

authored by

Pi-Hsun Shih and committed by
Enric Balletbo i Serra
4c2e9b3e 9f77c58d

+2 -1
+2 -1
drivers/platform/chrome/cros_ec_sysfs.c
··· 28 28 int count = 0; 29 29 30 30 count += scnprintf(buf + count, PAGE_SIZE - count, 31 - "ro|rw|cancel|cold|disable-jump|hibernate"); 31 + "ro|rw|cancel|cold|disable-jump|hibernate|cold-ap-off"); 32 32 count += scnprintf(buf + count, PAGE_SIZE - count, 33 33 " [at-shutdown]\n"); 34 34 return count; ··· 46 46 {"cancel", EC_REBOOT_CANCEL, 0}, 47 47 {"ro", EC_REBOOT_JUMP_RO, 0}, 48 48 {"rw", EC_REBOOT_JUMP_RW, 0}, 49 + {"cold-ap-off", EC_REBOOT_COLD_AP_OFF, 0}, 49 50 {"cold", EC_REBOOT_COLD, 0}, 50 51 {"disable-jump", EC_REBOOT_DISABLE_JUMP, 0}, 51 52 {"hibernate", EC_REBOOT_HIBERNATE, 0},