Skip to contentSkip to conversation

Introduce EC-based watchdog

PATCH Applied Lukasz Majczak 5 participants 16 messages Jan 19, 2024 – Mar 25, 2024

Subsystems (4)

v3 of 4 Applied 2/3 Latest is v4 →

lore
Share & tools
lore

Lukasz Majczak

author maintainer
#0 lore raw

v3 cover Introduce EC-based watchdog

Chromeos devices are equipped with the embedded controller (EC) that can be used as a watchdog. The following patches updates the structures and definitions required to communicate with EC-based watchdog and implements the driver itself.

The previous version of this patch was sent here:
https://patchwork.kernel.org/project/linux-watchdog/list/?series=817925

Changelog
V2->V3:
* drop "-drv" from driver name
* use format #define<space>NAME<tab>value

Best regards,
Lukasz

Lukasz Majczak (3):
platform/chrome: Update binary interface for EC-based watchdog
watchdog: Add ChromeOS EC-based watchdog driver
mfd: cros_ec: Register EC-based watchdog subdevice

 MAINTAINERS                                   |   6 +
 drivers/mfd/cros_ec_dev.c                     |   9 +
 drivers/watchdog/Kconfig                      |  11 +
 drivers/watchdog/Makefile                     |   1 +
 drivers/watchdog/cros_ec_wdt.c                | 202 ++++++++++++++++++
 .../linux/platform_data/cros_ec_commands.h    |  78 +++----
 6 files changed, 264 insertions(+), 43 deletions(-)
 create mode 100644 drivers/watchdog/cros_ec_wdt.c
Signature · 1 line
2.43.0.429.g432eaa2c6b-goog
author maintainer
#1 lore raw

PATCH v3 1/3 platform/chrome: Update binary interface for EC-based watchdog

Update structures and defines related to EC_CMD_HANG_DETECT to allow usage of new EC-based watchdog.

---
 .../linux/platform_data/cros_ec_commands.h    | 78 +++++++++----------
 1 file changed, 35 insertions(+), 43 deletions(-)
include/linux/platform_data/cros_ec_commands.h +35 -43
index 7dae17b62a4d..ecc47d5fe239 100644
@@ -3961,60 +3961,52 @@ struct ec_response_i2c_passthru {
 } __ec_align1;
 
 /*****************************************************************************/
-/* Power button hang detect */
-
+/* AP hang detect */
 #define EC_CMD_HANG_DETECT 0x009F
 
-/* Reasons to start hang detection timer */
-/* Power button pressed */
-#define EC_HANG_START_ON_POWER_PRESS  BIT(0)
-
-/* Lid closed */
-#define EC_HANG_START_ON_LID_CLOSE    BIT(1)
-
- /* Lid opened */
-#define EC_HANG_START_ON_LID_OPEN     BIT(2)
-
-/* Start of AP S3->S0 transition (booting or resuming from suspend) */
-#define EC_HANG_START_ON_RESUME       BIT(3)
-
-/* Reasons to cancel hang detection */
+#define EC_HANG_DETECT_MIN_TIMEOUT 5
+#define EC_HANG_DETECT_MAX_TIMEOUT 65535
 
-/* Power button released */
-#define EC_HANG_STOP_ON_POWER_RELEASE BIT(8)
+/* EC hang detect commands */
+enum ec_hang_detect_cmds {
+	/* Reload AP hang detect timer. */
+	EC_HANG_DETECT_CMD_RELOAD = 0x0,
 
-/* Any host command from AP received */
-#define EC_HANG_STOP_ON_HOST_COMMAND  BIT(9)
+	/* Stop AP hang detect timer. */
+	EC_HANG_DETECT_CMD_CANCEL = 0x1,
 
-/* Stop on end of AP S0->S3 transition (suspending or shutting down) */
-#define EC_HANG_STOP_ON_SUSPEND       BIT(10)
+	/* Configure watchdog with given reboot timeout and
+	 * cancel currently running AP hang detect timer.
+	 */
+	EC_HANG_DETECT_CMD_SET_TIMEOUT = 0x2,
 
-/*
- * If this flag is set, all the other fields are ignored, and the hang detect
- * timer is started.  This provides the AP a way to start the hang timer
- * without reconfiguring any of the other hang detect settings.  Note that
- * you must previously have configured the timeouts.
- */
-#define EC_HANG_START_NOW             BIT(30)
+	/* Get last hang status - whether the AP boot was clear or not */
+	EC_HANG_DETECT_CMD_GET_STATUS = 0x3,
 
-/*
- * If this flag is set, all the other fields are ignored (including
- * EC_HANG_START_NOW).  This provides the AP a way to stop the hang timer
- * without reconfiguring any of the other hang detect settings.
- */
-#define EC_HANG_STOP_NOW              BIT(31)
+	/* Clear last hang status. Called when AP is rebooting/shutting down
+	 * gracefully.
+	 */
+	EC_HANG_DETECT_CMD_CLEAR_STATUS = 0x4
+};
 
 struct ec_params_hang_detect {
-	/* Flags; see EC_HANG_* */
-	uint32_t flags;
-
-	/* Timeout in msec before generating host event, if enabled */
-	uint16_t host_event_timeout_msec;
+	uint16_t command; /* enum ec_hang_detect_cmds */
+	/* Timeout in seconds before generating reboot */
+	uint16_t reboot_timeout_sec;
+} __ec_align2;
 
-	/* Timeout in msec before generating warm reboot, if enabled */
-	uint16_t warm_reboot_timeout_msec;
-} __ec_align4;
+/* Status codes that describe whether AP has boot normally or the hang has been
+ * detected and EC has reset AP
+ */
+enum ec_hang_detect_status {
+	EC_HANG_DETECT_AP_BOOT_NORMAL = 0x0,
+	EC_HANG_DETECT_AP_BOOT_EC_WDT = 0x1,
+	EC_HANG_DETECT_AP_BOOT_COUNT,
+};
 
+struct ec_response_hang_detect {
+	uint8_t status; /* enum ec_hang_detect_status */
+} __ec_align1;
 /*****************************************************************************/
 /* Commands for battery charging */
 
Signature · 1 line
2.43.0.429.g432eaa2c6b-goog
author maintainer
#2 lore raw

PATCH v3 2/3 watchdog: Add ChromeOS EC-based watchdog driver

In reply to Lukasz Majczak

Embedded Controller (EC) present on Chromebook devices can be used as a watchdog.
Implement a driver to support it.

---
 MAINTAINERS                    |   6 +
 drivers/watchdog/Kconfig       |  11 ++
 drivers/watchdog/Makefile      |   1 +
 drivers/watchdog/cros_ec_wdt.c | 202 +++++++++++++++++++++++++++++++++
 4 files changed, 220 insertions(+)
 create mode 100644 drivers/watchdog/cros_ec_wdt.c
MAINTAINERS +6 -0
index ef90ddc0fda6..aaae581aae70 100644
@@ -4981,6 +4981,12 @@ R:	Sami Kyöstilä <[email protected]>
 S:	Maintained
 F:	drivers/platform/chrome/cros_hps_i2c.c
 
+CHROMEOS EC WATCHDOG
+M:	Lukasz Majczak <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	drivers/watchdog/cros_ec_wdt.c
+
 CHRONTEL CH7322 CEC DRIVER
 M:	Joe Tessler <[email protected]>
 L:	[email protected]
drivers/watchdog/Kconfig +11 -0
index 7d22051b15a2..4700b218340f 100644
@@ -181,6 +181,17 @@ config BD957XMUF_WATCHDOG
 	  watchdog. Alternatively say M to compile the driver as a module,
 	  which will be called bd9576_wdt.
 
+config CROS_EC_WATCHDOG
+	tristate "ChromeOS EC-based watchdog"
+	select WATCHDOG_CORE
+	depends on CROS_EC
+	help
+	  Watchdog driver for Chromebook devices equipped with embedded controller.
+	  Trigger event is recorded in EC and checked on the subsequent boot.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called cros_ec_wdt.
+
 config DA9052_WATCHDOG
 	tristate "Dialog DA9052 Watchdog"
 	depends on PMIC_DA9052 || COMPILE_TEST
drivers/watchdog/Makefile +1 -0
index 7cbc34514ec1..3710c218f05e 100644
@@ -217,6 +217,7 @@ obj-$(CONFIG_XEN_WDT) += xen_wdt.o
 
 # Architecture Independent
 obj-$(CONFIG_BD957XMUF_WATCHDOG) += bd9576_wdt.o
+obj-$(CONFIG_CROS_EC_WATCHDOG) += cros_ec_wdt.o
 obj-$(CONFIG_DA9052_WATCHDOG) += da9052_wdt.o
 obj-$(CONFIG_DA9055_WATCHDOG) += da9055_wdt.o
 obj-$(CONFIG_DA9062_WATCHDOG) += da9062_wdt.o
drivers/watchdog/cros_ec_wdt.c new file +202 -0

202 lines not on this page · raw message

Signature · 1 line
2.43.0.429.g432eaa2c6b-goog
#3 lore raw

Re: [PATCH v3 2/3] watchdog: Add ChromeOS EC-based watchdog driver

Quoted 4 lines · Lukasz Majczak

Embedded Controller (EC) present on Chromebook devices can be used as a watchdog.
Implement a driver to support it.

...

drivers/watchdog/cros_ec_wdt.c line 132

Quoted 10 lines
drivers/watchdog/cros_ec_wdt.c new file +10 -0
+static int cros_ec_wdt_probe(struct platform_device *pdev)
+{
+	struct device *dev = &pdev->dev;
+	struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent);
+	struct cros_ec_device *cros_ec = ec_dev->ec_dev;
+	struct watchdog_device *wdd;
+	union cros_ec_wdt_data arg;
+	int ret = 0;
+
+	wdd = devm_kzalloc(&pdev->dev, sizeof(struct watchdog_device), GFP_KERNEL);

sizeof(*)

Quoted 58 lines
drivers/watchdog/cros_ec_wdt.c new file +58 -0
+	if (!wdd)
+		return -ENOMEM;
+
+	arg.req.command = EC_HANG_DETECT_CMD_GET_STATUS;
+	ret = cros_ec_wdt_send_cmd(cros_ec, &arg);
+	if (ret < 0)
+		return dev_err_probe(dev, ret, "Failed to get watchdog bootstatus");
+
+	wdd->parent = &pdev->dev;
+	wdd->info = &cros_ec_wdt_ident;
+	wdd->ops = &cros_ec_wdt_ops;
+	wdd->timeout = CROS_EC_WATCHDOG_DEFAULT_TIME;
+	wdd->min_timeout = EC_HANG_DETECT_MIN_TIMEOUT;
+	wdd->max_timeout = EC_HANG_DETECT_MAX_TIMEOUT;
+	if (arg.resp.status == EC_HANG_DETECT_AP_BOOT_EC_WDT)
+		wdd->bootstatus = WDIOF_CARDRESET;
+
+	arg.req.command = EC_HANG_DETECT_CMD_CLEAR_STATUS;
+	ret = cros_ec_wdt_send_cmd(cros_ec, &arg);
+	if (ret < 0)
+		return dev_err_probe(dev, ret, "Failed to clear watchdog bootstatus");
+
+	watchdog_stop_on_reboot(wdd);
+	watchdog_stop_on_unregister(wdd);
+	watchdog_set_drvdata(wdd, cros_ec);
+	platform_set_drvdata(pdev, wdd);
+
+	return devm_watchdog_register_device(dev, wdd);
+}
+
+static int __maybe_unused cros_ec_wdt_suspend(struct platform_device *pdev, pm_message_t state)
+{
+	struct watchdog_device *wdd = platform_get_drvdata(pdev);
+	int ret = 0;
+
+	if (watchdog_active(wdd))
+		ret = cros_ec_wdt_stop(wdd);
+
+	return ret;
+}
+
+static int __maybe_unused cros_ec_wdt_resume(struct platform_device *pdev)
+{
+	struct watchdog_device *wdd = platform_get_drvdata(pdev);
+	int ret = 0;
+
+	if (watchdog_active(wdd))
+		ret = cros_ec_wdt_start(wdd);
+
+	return ret;
+}
+
+static struct platform_driver cros_ec_wdt_driver = {
+	.probe		= cros_ec_wdt_probe,
+	.suspend	= pm_ptr(cros_ec_wdt_suspend),
+	.resume		= pm_ptr(cros_ec_wdt_resume),
+	.driver		= {
+		.name	= DRV_NAME,

drivers/watchdog/cros_ec_wdt.c line 200

Quoted 10 lines
drivers/watchdog/cros_ec_wdt.c new file +10 -0
+	},
+};
+
+module_platform_driver(cros_ec_wdt_driver);
+
+static const struct platform_device_id cros_ec_wdt_id[] = {
+	{ DRV_NAME, 0 },
+	{}
+};
+MODULE_DEVICE_TABLE(platform, cros_ec_wdt_id);

device_id is not placed here, please open existing drivers for reference. Why this isn't referenced in driver structure?

drivers/watchdog/cros_ec_wdt.c line 202

Quoted 2 lines
drivers/watchdog/cros_ec_wdt.c new file +2 -0
+MODULE_DESCRIPTION("Cros EC Watchdog Device Driver");
+MODULE_LICENSE("GPL");

Best regards,
Krzysztof

author maintainer
#4 lore raw

Re: [PATCH v3 2/3] watchdog: Add ChromeOS EC-based watchdog driver

Quoted 4 lines · Krzysztof Kozlowski
Quoted 1 line

+ wdd = devm_kzalloc(&pdev->dev, sizeof(struct watchdog_device), GFP_KERNEL);

sizeof(*)

ACK.

Quoted 5 lines
Quoted 1 line

+MODULE_DEVICE_TABLE(platform, cros_ec_wdt_id);

device_id is not placed here, please open existing drivers for reference. Why this isn't referenced in driver structure?

ACK, I will take s3c2410_wdt.c as an example, thank you.

Best regards,
Lukasz

author maintainer
#5 lore raw

PATCH v3 3/3 mfd: cros_ec: Register EC-based watchdog subdevice

In reply to Lukasz Majczak

Add ChromeOS EC-based watchdog as EC subdevice.

---
 drivers/mfd/cros_ec_dev.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/mfd/cros_ec_dev.c +9 -0
index 603b1cd52785..4996220ce64b 100644
@@ -91,6 +91,10 @@ static const struct mfd_cell cros_usbpd_notify_cells[] = {
 	{ .name = "cros-usbpd-notify", },
 };
 
+static const struct mfd_cell cros_ec_wdt_cells[] = {
+	{ .name = "cros-ec-wdt", }
+};
+
 static const struct cros_feature_to_cells cros_subdevices[] = {
 	{
 		.id		= EC_FEATURE_CEC,
@@ -107,6 +111,11 @@ static const struct cros_feature_to_cells cros_subdevices[] = {
 		.mfd_cells	= cros_usbpd_charger_cells,
 		.num_cells	= ARRAY_SIZE(cros_usbpd_charger_cells),
 	},
+	{
+		.id		= EC_FEATURE_HANG_DETECT,
+		.mfd_cells	= cros_ec_wdt_cells,
+		.num_cells	= ARRAY_SIZE(cros_ec_wdt_cells),
+	},
 };
 
 static const struct mfd_cell cros_ec_platform_cells[] = {
Signature · 1 line
2.43.0.429.g432eaa2c6b-goog
maintainer Applied
#6 lore raw

Re: (subset) [PATCH v3 3/3] mfd: cros_ec: Register EC-based watchdog subdevice

Quoted 3 lines · Lukasz Majczak

Add ChromeOS EC-based watchdog as EC subdevice.

Applied, thanks!

[3/3] mfd: cros_ec: Register EC-based watchdog subdevice

      commit: a1958f84deb5cdba020af725fc5003a05af4819c

--
Lee Jones [李琼斯]

author maintainer
#7 lore raw

Re: (subset) [PATCH v3 3/3] mfd: cros_ec: Register EC-based watchdog subdevice

Quoted 6 lines · Lee Jones
Quoted 3 lines · Lukasz Majczak

Add ChromeOS EC-based watchdog as EC subdevice.

Quoted 8 lines

Applied, thanks!

[3/3] mfd: cros_ec: Register EC-based watchdog subdevice

      commit: a1958f84deb5cdba020af725fc5003a05af4819c

--
Lee Jones [李琼斯]

Hi Lee,

I will send V4 of the patchset to address Krzysztof suggestions, in that case I should skip adding V4 of this patch and have only patches 1 and 2 in the V4 patchset?

Best regards,
Lukasz

maintainer
#8 lore raw

Re: (subset) [PATCH v3 3/3] mfd: cros_ec: Register EC-based watchdog subdevice

Quoted 12 lines · Łukasz Majczak
Quoted 11 lines · Lee Jones
Quoted 3 lines · Lukasz Majczak

Add ChromeOS EC-based watchdog as EC subdevice.

Applied, thanks!

[3/3] mfd: cros_ec: Register EC-based watchdog subdevice

      commit: a1958f84deb5cdba020af725fc5003a05af4819c
Quoted 8 lines
Quoted 3 lines

--
Lee Jones [李琼斯]

Hi Lee,

I will send V4 of the patchset to address Krzysztof suggestions, in that case I should skip adding V4 of this patch and have only patches 1 and 2 in the V4 patchset?

Yes please. No need to resend patches which have already been merged.

Signature · 1 line
Lee Jones [李琼斯]
maintainer
#9 lore raw
In reply to Lukasz Majczak
Quoted 6 lines · Lukasz Majczak

Chromeos devices are equipped with the embedded controller (EC) that can be used as a watchdog. The following patches updates the structures and definitions required to communicate with EC-based watchdog and implements the driver itself.

Quoted 8 lines

The previous version of this patch was sent here:
https://patchwork.kernel.org/project/linux-watchdog/list/?series=817925

Changelog
V2->V3:
* drop "-drv" from driver name
* use format #define<space>NAME<tab>value

I am a bit lost here. You dropped my Reviewed-by: tags, even though I specifically said that they applied with those changes made. Also, according to the above patch 1/3 was not changed at all.

What else did you change that warrants dropping the tags ?

Guenter

author maintainer
#10 lore raw
Quoted 17 lines · Guenter Roeck
Quoted 6 lines · Lukasz Majczak

Chromeos devices are equipped with the embedded controller (EC) that can be used as a watchdog. The following patches updates the structures and definitions required to communicate with EC-based watchdog and implements the driver itself.

Quoted 8 lines

The previous version of this patch was sent here:
https://patchwork.kernel.org/project/linux-watchdog/list/?series=817925

Changelog
V2->V3:
* drop "-drv" from driver name
* use format #define<space>NAME<tab>value

Quoted 8 lines

I am a bit lost here. You dropped my Reviewed-by: tags, even though I specifically said that they applied with those changes made. Also, according to the above patch 1/3 was not changed at all.

What else did you change that warrants dropping the tags ?

Guenter

The "-drv" change was related to patch 2 and 3, and I have used "format #define<space>NAME<tab>value" only in patch 3 (as ec_commands.h is mixing those)
Sorry for dropping your "Reviewed-by" tag :( I've assumed (wrong) that I cannot take it for granted sending V3.
Alos in such a case if there are changes in patch 2 and 3 and 1 remains untouched shall I send only 2 and 3 in the next version ?

Best regards,
Lukasz

maintainer
#11 lore raw
Quoted 24 lines · Łukasz Majczak
Quoted 23 lines · Guenter Roeck
Quoted 6 lines · Lukasz Majczak

Chromeos devices are equipped with the embedded controller (EC) that can be used as a watchdog. The following patches updates the structures and definitions required to communicate with EC-based watchdog and implements the driver itself.

Quoted 8 lines

The previous version of this patch was sent here:
https://patchwork.kernel.org/project/linux-watchdog/list/?series=817925

Changelog
V2->V3:
* drop "-drv" from driver name
* use format #define<space>NAME<tab>value

I am a bit lost here. You dropped my Reviewed-by: tags, even though I specifically said that they applied with those changes made. Also, according to the above patch 1/3 was not changed at all.

What else did you change that warrants dropping the tags ?

Quoted 7 lines
Quoted 2 lines

Guenter

The "-drv" change was related to patch 2 and 3, and I have used "format #define<space>NAME<tab>value" only in patch 3 (as ec_commands.h is mixing those)
Sorry for dropping your "Reviewed-by" tag :( I've assumed (wrong) that I cannot take it for granted sending V3.

From Documentation/process/submitting-patches.rst:

Both Tested-by and Reviewed-by tags, once received on mailing list from tester or reviewer, should be added by author to the applicable patches when sending next versions. However if the patch has changed substantially in following version, these tags might not be applicable anymore and thus should be removed. Usually removal of someone's Tested-by or Reviewed-by tags should be mentioned in the patch changelog (after the '---' separator).

Quoted 3 lines

Alos in such a case if there are changes in patch 2 and 3 and 1 remains untouched shall I send only 2 and 3 in the next version ?

Again, from Documentation/process/submitting-patches.rst:

... the patch (series) and its description should be self-contained. This benefits both the maintainers and reviewers. Some reviewers probably didn't even receive earlier versions of the patch.

Note that the same document also says:

Wait for a minimum of one week before resubmitting or pinging reviewers
- possibly longer during busy times like merge windows.

I could just send another series of Reviewed-by: tags, but quite frankly by now I am wary that you might drop those again, so I guess I'll wait a while to see if there is another version of the series.

Guenter

author maintainer
#12 lore raw

Gunter,

I'm sorry for the confusion, I've just forgotten to add "received-by" and there are no other changes besides mentioned in the cover letter changelog.
Thank you for mentioning the process, now I understand why it is so important.

I will send V4 for the sake of following the process.

Best regards,
Lukasz

Quoted 64 lines · Guenter Roeck
Quoted 24 lines · Łukasz Majczak
Quoted 23 lines · Guenter Roeck
Quoted 6 lines · Lukasz Majczak

Chromeos devices are equipped with the embedded controller (EC) that can be used as a watchdog. The following patches updates the structures and definitions required to communicate with EC-based watchdog and implements the driver itself.

Quoted 8 lines

The previous version of this patch was sent here:
https://patchwork.kernel.org/project/linux-watchdog/list/?series=817925

Changelog
V2->V3:
* drop "-drv" from driver name
* use format #define<space>NAME<tab>value

I am a bit lost here. You dropped my Reviewed-by: tags, even though I specifically said that they applied with those changes made. Also, according to the above patch 1/3 was not changed at all.

What else did you change that warrants dropping the tags ?

Quoted 7 lines
Quoted 2 lines

Guenter

The "-drv" change was related to patch 2 and 3, and I have used "format #define<space>NAME<tab>value" only in patch 3 (as ec_commands.h is mixing those)
Sorry for dropping your "Reviewed-by" tag :( I've assumed (wrong) that I cannot take it for granted sending V3.

From Documentation/process/submitting-patches.rst:

Both Tested-by and Reviewed-by tags, once received on mailing list from tester or reviewer, should be added by author to the applicable patches when sending next versions. However if the patch has changed substantially in following version, these tags might not be applicable anymore and thus should be removed. Usually removal of someone's Tested-by or Reviewed-by tags should be mentioned in the patch changelog (after the '---' separator).

Quoted 3 lines

Alos in such a case if there are changes in patch 2 and 3 and 1 remains untouched shall I send only 2 and 3 in the next version ?

Again, from Documentation/process/submitting-patches.rst:

... the patch (series) and its description should be self-contained. This benefits both the maintainers and reviewers. Some reviewers probably didn't even receive earlier versions of the patch.

Note that the same document also says:

Wait for a minimum of one week before resubmitting or pinging reviewers
- possibly longer during busy times like merge windows.

I could just send another series of Reviewed-by: tags, but quite frankly by now I am wary that you might drop those again, so I guess I'll wait a while to see if there is another version of the series.

Guenter

author maintainer
#13 lore raw

Ohhh, I get it now. Gunter please send reviewed-by to V3 whenever you feel appropriate.

Best regards,
Lukasz

Quoted 78 lines · Łukasz Majczak

Gunter,

I'm sorry for the confusion, I've just forgotten to add "received-by" and there are no other changes besides mentioned in the cover letter changelog.
Thank you for mentioning the process, now I understand why it is so important.

I will send V4 for the sake of following the process.

Best regards,
Lukasz

Quoted 64 lines · Guenter Roeck
Quoted 24 lines · Łukasz Majczak
Quoted 23 lines · Guenter Roeck
Quoted 6 lines · Lukasz Majczak

Chromeos devices are equipped with the embedded controller (EC) that can be used as a watchdog. The following patches updates the structures and definitions required to communicate with EC-based watchdog and implements the driver itself.

Quoted 8 lines

The previous version of this patch was sent here:
https://patchwork.kernel.org/project/linux-watchdog/list/?series=817925

Changelog
V2->V3:
* drop "-drv" from driver name
* use format #define<space>NAME<tab>value

I am a bit lost here. You dropped my Reviewed-by: tags, even though I specifically said that they applied with those changes made. Also, according to the above patch 1/3 was not changed at all.

What else did you change that warrants dropping the tags ?

Quoted 7 lines
Quoted 2 lines

Guenter

The "-drv" change was related to patch 2 and 3, and I have used "format #define<space>NAME<tab>value" only in patch 3 (as ec_commands.h is mixing those)
Sorry for dropping your "Reviewed-by" tag :( I've assumed (wrong) that I cannot take it for granted sending V3.

From Documentation/process/submitting-patches.rst:

Both Tested-by and Reviewed-by tags, once received on mailing list from tester or reviewer, should be added by author to the applicable patches when sending next versions. However if the patch has changed substantially in following version, these tags might not be applicable anymore and thus should be removed. Usually removal of someone's Tested-by or Reviewed-by tags should be mentioned in the patch changelog (after the '---' separator).

Quoted 3 lines

Alos in such a case if there are changes in patch 2 and 3 and 1 remains untouched shall I send only 2 and 3 in the next version ?

Again, from Documentation/process/submitting-patches.rst:

... the patch (series) and its description should be self-contained. This benefits both the maintainers and reviewers. Some reviewers probably didn't even receive earlier versions of the patch.

Note that the same document also says:

Wait for a minimum of one week before resubmitting or pinging reviewers
- possibly longer during busy times like merge windows.

I could just send another series of Reviewed-by: tags, but quite frankly by now I am wary that you might drop those again, so I guess I'll wait a while to see if there is another version of the series.

Guenter

#14 lore raw
In reply to Lukasz Majczak
This series was applied to chrome-platform/linux.git (for-kernelci) by Lee Jones <[email protected]>:

Hello:

This series was applied to chrome-platform/linux.git (for-kernelci) by Lee Jones <[email protected]>:

Quoted 10 lines · On Fri, 19 Jan 2024 08:43:24 +0000 you wrote:

Chromeos devices are equipped with the embedded controller (EC) that can be used as a watchdog. The following patches updates the structures and definitions required to communicate with EC-based watchdog and implements the driver itself.

The previous version of this patch was sent here:
https://patchwork.kernel.org/project/linux-watchdog/list/?series=817925

[...]

Here is the summary with links:
- [v3,1/3] platform/chrome: Update binary interface for EC-based watchdog

    https://git.kernel.org/chrome-platform/c/4d2ff655fb85
  - [v3,2/3] watchdog: Add ChromeOS EC-based watchdog driver
    (no matching commit)
  - [v3,3/3] mfd: cros_ec: Register EC-based watchdog subdevice
    https://git.kernel.org/chrome-platform/c/6cea614ba78d

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
#15 lore raw
In reply to Lukasz Majczak
This series was applied to chrome-platform/linux.git (for-next) by Lee Jones <[email protected]>:

Hello:

This series was applied to chrome-platform/linux.git (for-next) by Lee Jones <[email protected]>:

Quoted 10 lines · On Fri, 19 Jan 2024 08:43:24 +0000 you wrote:

Chromeos devices are equipped with the embedded controller (EC) that can be used as a watchdog. The following patches updates the structures and definitions required to communicate with EC-based watchdog and implements the driver itself.

The previous version of this patch was sent here:
https://patchwork.kernel.org/project/linux-watchdog/list/?series=817925

[...]

Here is the summary with links:
- [v3,1/3] platform/chrome: Update binary interface for EC-based watchdog

    https://git.kernel.org/chrome-platform/c/4d2ff655fb85
  - [v3,2/3] watchdog: Add ChromeOS EC-based watchdog driver
    (no matching commit)
  - [v3,3/3] mfd: cros_ec: Register EC-based watchdog subdevice
    https://git.kernel.org/chrome-platform/c/6cea614ba78d

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html