[PATCH] drivers: wdat: Report when WDAT is disabled by firmware

4 views
Skip to first unread message

Jan Kiszka

unread,
Jun 24, 2024, 7:07:46 AM6/24/24
to efibootguard-dev, Christopher Obbard
From: Jan Kiszka <jan.k...@siemens.com>

May help with debugging systems.

Suggested-by: Christopher Obbard <chris....@collabora.com>
Signed-off-by: Jan Kiszka <jan.k...@siemens.com>
---
drivers/watchdog/wdat.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/watchdog/wdat.c b/drivers/watchdog/wdat.c
index 0875a50..4d77c35 100644
--- a/drivers/watchdog/wdat.c
+++ b/drivers/watchdog/wdat.c
@@ -439,10 +439,13 @@ static EFI_STATUS init(EFI_PCI_IO __attribute__((unused)) * pci_io,
if (EFI_ERROR(status)) {
return status;
}
+
+ INFO(L"Detected WDAT watchdog\n");
+
if (!(wdat_table->flags & ACPI_WDAT_ENABLED)) {
+ INFO(L"WDAT disabled by firmware\n");
return EFI_UNSUPPORTED;
}
- INFO(L"Detected WDAT watchdog\n");

/* Check if the boot was caused by the watchdog */
status = run_action(wdat_table, ACPI_WDAT_GET_STATUS, 0, &boot_status);
--
2.43.0
Reply all
Reply to author
Forward
0 new messages