lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241210-da9052-wdt-v2-0-95a5756e9ac8@gmail.com>
Date: Tue, 10 Dec 2024 16:24:39 +0100
From: Marcus Folkesson <marcus.folkesson@...il.com>
To: Support Opensource <support.opensource@...semi.com>, 
 Lee Jones <lee@...nel.org>, Wim Van Sebroeck <wim@...ux-watchdog.org>, 
 Guenter Roeck <linux@...ck-us.net>
Cc: linux-kernel@...r.kernel.org, linux-watchdog@...r.kernel.org, 
 Marcus Folkesson <marcus.folkesson@...il.com>
Subject: [PATCH v2 0/2] DA9052 boot status

Make it possible to read out the boot status from the da9052-wdt driver.

Function verified with `wdctl`.

root@...c:~# wdctl  /dev/watchdog1
Device:        /dev/watchdog1
Identity:      DA9052 Watchdog [version 0]
Timeout:        4 seconds
Pre-timeout:    0 seconds
FLAG           DESCRIPTION                   STATUS BOOT-STATUS
CARDRESET      Card previously reset the CPU      1           1
KEEPALIVEPING  Keep alive ping reply              1           0
OVERHEAT       Reset due to CPU overheat          0           0
POWERUNDER     Power bad/power fault              0           0
SETTIMEOUT     Set timeout (in seconds)           0           0

Signed-off-by: Marcus Folkesson <marcus.folkesson@...il.com>
---
Changes in v2:
- Simplify assignment of fault_log. Why complicate things...
- Link to v1: https://lore.kernel.org/r/20241210-da9052-wdt-v1-0-d026e0158688@gmail.com

---
Marcus Folkesson (2):
      mfd: da9052: store result from fault_log
      watchdog: da9052_wdt: add support for bootstatus bits

 drivers/mfd/da9052-core.c         |  1 +
 drivers/watchdog/da9052_wdt.c     | 13 ++++++++++++-
 include/linux/mfd/da9052/da9052.h |  2 ++
 3 files changed, 15 insertions(+), 1 deletion(-)
---
base-commit: cdd30ebb1b9f36159d66f088b61aee264e649d7a
change-id: 20241210-da9052-wdt-a7943a745987

Best regards,
-- 
Marcus Folkesson <marcus.folkesson@...il.com>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ