* [PATCH v2 1/2] platform/chrome: cros_ec: Add host command to keep AP off after EC reset.
@ 2020-12-21 4:12 Pi-Hsun Shih
2020-12-21 4:12 ` [PATCH v2 2/2] platform/chrome: cros_ec_sysfs: Add cold-ap-off to sysfs reboot Pi-Hsun Shih
2021-01-20 15:14 ` [PATCH v2 1/2] platform/chrome: cros_ec: Add host command to keep AP off after EC reset Enric Balletbo i Serra
0 siblings, 2 replies; 4+ messages in thread
From: Pi-Hsun Shih @ 2020-12-21 4:12 UTC (permalink / raw)
Cc: Pi-Hsun Shih, Nicolas Boichat, Benson Leung,
Enric Balletbo i Serra, Guenter Roeck, Mark Brown,
Prashant Malani, Gustavo A. R. Silva, open list
Add command to EC_CMD_REBOOT_EC to reset EC but don't boot AP.
Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org>
---
include/linux/platform_data/cros_ec_commands.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/linux/platform_data/cros_ec_commands.h
index a3a9a878415f..b80a4a7038e4 100644
--- a/include/linux/platform_data/cros_ec_commands.h
+++ b/include/linux/platform_data/cros_ec_commands.h
@@ -4729,6 +4729,7 @@ enum ec_reboot_cmd {
EC_REBOOT_DISABLE_JUMP = 5, /* Disable jump until next reboot */
EC_REBOOT_HIBERNATE = 6, /* Hibernate EC */
EC_REBOOT_HIBERNATE_CLEAR_AP_OFF = 7, /* and clears AP_OFF flag */
+ EC_REBOOT_COLD_AP_OFF = 8, /* Cold-reboot and don't boot AP */
};
/* Flags for ec_params_reboot_ec.reboot_flags */
base-commit: accefff5b547a9a1d959c7e76ad539bf2480e78b
--
2.29.2.684.gfbc64c5ab5-goog
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/2] platform/chrome: cros_ec_sysfs: Add cold-ap-off to sysfs reboot.
2020-12-21 4:12 [PATCH v2 1/2] platform/chrome: cros_ec: Add host command to keep AP off after EC reset Pi-Hsun Shih
@ 2020-12-21 4:12 ` Pi-Hsun Shih
2021-01-11 7:49 ` Pi-Hsun Shih
2021-01-20 15:14 ` [PATCH v2 1/2] platform/chrome: cros_ec: Add host command to keep AP off after EC reset Enric Balletbo i Serra
1 sibling, 1 reply; 4+ messages in thread
From: Pi-Hsun Shih @ 2020-12-21 4:12 UTC (permalink / raw)
Cc: Pi-Hsun Shih, Nicolas Boichat, Benson Leung,
Enric Balletbo i Serra, Guenter Roeck, open list
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>
---
drivers/platform/chrome/cros_ec_sysfs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/platform/chrome/cros_ec_sysfs.c b/drivers/platform/chrome/cros_ec_sysfs.c
index f521a5c65091..8210fb10e839 100644
--- a/drivers/platform/chrome/cros_ec_sysfs.c
+++ b/drivers/platform/chrome/cros_ec_sysfs.c
@@ -28,7 +28,7 @@ static ssize_t reboot_show(struct device *dev,
int count = 0;
count += scnprintf(buf + count, PAGE_SIZE - count,
- "ro|rw|cancel|cold|disable-jump|hibernate");
+ "ro|rw|cancel|cold|disable-jump|hibernate|cold-ap-off");
count += scnprintf(buf + count, PAGE_SIZE - count,
" [at-shutdown]\n");
return count;
@@ -46,6 +46,7 @@ static ssize_t reboot_store(struct device *dev,
{"cancel", EC_REBOOT_CANCEL, 0},
{"ro", EC_REBOOT_JUMP_RO, 0},
{"rw", EC_REBOOT_JUMP_RW, 0},
+ {"cold-ap-off", EC_REBOOT_COLD_AP_OFF, 0},
{"cold", EC_REBOOT_COLD, 0},
{"disable-jump", EC_REBOOT_DISABLE_JUMP, 0},
{"hibernate", EC_REBOOT_HIBERNATE, 0},
--
2.29.2.684.gfbc64c5ab5-goog
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 2/2] platform/chrome: cros_ec_sysfs: Add cold-ap-off to sysfs reboot.
2020-12-21 4:12 ` [PATCH v2 2/2] platform/chrome: cros_ec_sysfs: Add cold-ap-off to sysfs reboot Pi-Hsun Shih
@ 2021-01-11 7:49 ` Pi-Hsun Shih
0 siblings, 0 replies; 4+ messages in thread
From: Pi-Hsun Shih @ 2021-01-11 7:49 UTC (permalink / raw)
Cc: Nicolas Boichat, Benson Leung, Enric Balletbo i Serra,
Guenter Roeck, open list
gentle ping on these two patches for EC_REBOOT_COLD_AP_OFF.
On Mon, Dec 21, 2020 at 12:12 PM Pi-Hsun Shih <pihsun@chromium.org> wrote:
>
> 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>
> ---
> drivers/platform/chrome/cros_ec_sysfs.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/platform/chrome/cros_ec_sysfs.c b/drivers/platform/chrome/cros_ec_sysfs.c
> index f521a5c65091..8210fb10e839 100644
> --- a/drivers/platform/chrome/cros_ec_sysfs.c
> +++ b/drivers/platform/chrome/cros_ec_sysfs.c
> @@ -28,7 +28,7 @@ static ssize_t reboot_show(struct device *dev,
> int count = 0;
>
> count += scnprintf(buf + count, PAGE_SIZE - count,
> - "ro|rw|cancel|cold|disable-jump|hibernate");
> + "ro|rw|cancel|cold|disable-jump|hibernate|cold-ap-off");
> count += scnprintf(buf + count, PAGE_SIZE - count,
> " [at-shutdown]\n");
> return count;
> @@ -46,6 +46,7 @@ static ssize_t reboot_store(struct device *dev,
> {"cancel", EC_REBOOT_CANCEL, 0},
> {"ro", EC_REBOOT_JUMP_RO, 0},
> {"rw", EC_REBOOT_JUMP_RW, 0},
> + {"cold-ap-off", EC_REBOOT_COLD_AP_OFF, 0},
> {"cold", EC_REBOOT_COLD, 0},
> {"disable-jump", EC_REBOOT_DISABLE_JUMP, 0},
> {"hibernate", EC_REBOOT_HIBERNATE, 0},
> --
> 2.29.2.684.gfbc64c5ab5-goog
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/2] platform/chrome: cros_ec: Add host command to keep AP off after EC reset.
2020-12-21 4:12 [PATCH v2 1/2] platform/chrome: cros_ec: Add host command to keep AP off after EC reset Pi-Hsun Shih
2020-12-21 4:12 ` [PATCH v2 2/2] platform/chrome: cros_ec_sysfs: Add cold-ap-off to sysfs reboot Pi-Hsun Shih
@ 2021-01-20 15:14 ` Enric Balletbo i Serra
1 sibling, 0 replies; 4+ messages in thread
From: Enric Balletbo i Serra @ 2021-01-20 15:14 UTC (permalink / raw)
To: Pi-Hsun Shih
Cc: Mark Brown, Nicolas Boichat, Gustavo A. R. Silva,
Prashant Malani, Guenter Roeck, open list, Benson Leung
On Mon, 21 Dec 2020 12:12:23 +0800, Pi-Hsun Shih wrote:
> Add command to EC_CMD_REBOOT_EC to reset EC but don't boot AP.
Applied, thanks!
[1/2] platform/chrome: cros_ec: Add host command to keep AP off after EC reset.
commit: 8e7a76ad8f51fd9aaabf8feeea54b22f4e4873d8
[2/2] platform/chrome: cros_ec_sysfs: Add cold-ap-off to sysfs reboot.
commit: 91b9694542179f2f2325a5c4f86c4e7f9be277d3
Best regards,
--
Enric Balletbo i Serra <enric.balletbo@collabora.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-01-20 15:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21 4:12 [PATCH v2 1/2] platform/chrome: cros_ec: Add host command to keep AP off after EC reset Pi-Hsun Shih
2020-12-21 4:12 ` [PATCH v2 2/2] platform/chrome: cros_ec_sysfs: Add cold-ap-off to sysfs reboot Pi-Hsun Shih
2021-01-11 7:49 ` Pi-Hsun Shih
2021-01-20 15:14 ` [PATCH v2 1/2] platform/chrome: cros_ec: Add host command to keep AP off after EC reset Enric Balletbo i Serra
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.