mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
d40befed9a
Introduce a list of generic reset sources and use them to export the power on reason through sysfs. Update the ABI documentation to describe this new interface. Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> [Miquel Raynal: Follow-up on Kamel's work, 4 years later] Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
13 lines
468 B
Plaintext
13 lines
468 B
Plaintext
What: /sys/devices/platform/.../power_on_reason
|
|
Date: June 2023
|
|
KernelVersion: 6.5
|
|
Contact: Kamel Bouhara <kamel.bouhara@bootlin.com>
|
|
Description: Shows system power on reason. The following strings/reasons can
|
|
be read (the list can be extended):
|
|
"regular power-up", "RTC wakeup", "watchdog timeout",
|
|
"software reset", "reset button action", "CPU clock failure",
|
|
"crystal oscillator failure", "brown-out reset",
|
|
"unknown reason".
|
|
|
|
The file is read only.
|