Skip to content

Commit 4c2e9b3

Browse files
peter50216Enric Balletbo i Serra
authored andcommitted
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
1 parent 9f77c58 commit 4c2e9b3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/platform/chrome/cros_ec_sysfs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static ssize_t reboot_show(struct device *dev,
2828
int count = 0;
2929

3030
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");
3232
count += scnprintf(buf + count, PAGE_SIZE - count,
3333
" [at-shutdown]\n");
3434
return count;
@@ -46,6 +46,7 @@ static ssize_t reboot_store(struct device *dev,
4646
{"cancel", EC_REBOOT_CANCEL, 0},
4747
{"ro", EC_REBOOT_JUMP_RO, 0},
4848
{"rw", EC_REBOOT_JUMP_RW, 0},
49+
{"cold-ap-off", EC_REBOOT_COLD_AP_OFF, 0},
4950
{"cold", EC_REBOOT_COLD, 0},
5051
{"disable-jump", EC_REBOOT_DISABLE_JUMP, 0},
5152
{"hibernate", EC_REBOOT_HIBERNATE, 0},

0 commit comments

Comments
 (0)