Skip to content

Commit

Permalink
drivers: wdat: Report when WDAT is disabled by firmware
Browse files Browse the repository at this point in the history
May help with debugging systems.

Suggested-by: Christopher Obbard <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
jan-kiszka committed Jun 24, 2024
1 parent 1231d05 commit 25092c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/watchdog/wdat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 25092c8

Please sign in to comment.