linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Expose reset reason through sysfs
@ 2023-06-16 13:52 Miquel Raynal
  2023-06-16 13:52 ` [PATCH v3 1/2] power: reset: at91-reset: change the power on reason prototype Miquel Raynal
  2023-06-16 13:52 ` [PATCH v3 2/2] power: reset: at91-reset: add sysfs interface to the power on reason Miquel Raynal
  0 siblings, 2 replies; 6+ messages in thread
From: Miquel Raynal @ 2023-06-16 13:52 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: Nicolas Ferre, Alexandre Belloni, Claudiu Beznea, linux-pm,
	linux-arm-kernel, Thomas Petazzoni, Miquel Raynal

Hello,

Back in 2019, my colleague Kamel did try to upstream a small change in
the at91 reset driver, in order to expose the reset reason through sysfs
instead of expecting userland to grep through dmesg to get it. There was
basically no strong reason opposed to it, besides minor changes which
needed fixing. 4 years ago I am seeing again the need for such exposure,
so here is Kamel's patch with the minor comments addressed, as well as a
small cleanup just before.

Link: https://lore.kernel.org/lkml/00f4e9a2-f6bd-9242-cafd-9c0c4f4dc619@microchip.com/T/

Cheers,
Miquèl

Changes in v3:
* Made the series bisectable.
* Updated the date and kernel version for this new feature.
* Changed a few definitions as discussed with Sebastian.

Changes in v2:
* Collected Nicolas' Acked-by
* Dropped the Xtal frequency information (as this may change between
  platforms of course).

Kamel Bouhara (1):
  power: reset: at91-reset: add sysfs interface to the power on reason

Miquel Raynal (1):
  power: reset: at91-reset: change the power on reason prototype

 .../testing/sysfs-platform-power-on-reason    | 12 +++++
 drivers/power/reset/at91-reset.c              | 44 +++++++++++++------
 include/linux/power/power_on_reason.h         | 19 ++++++++
 3 files changed, 61 insertions(+), 14 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-platform-power-on-reason
 create mode 100644 include/linux/power/power_on_reason.h

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-06-19 21:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-16 13:52 [PATCH v3 0/2] Expose reset reason through sysfs Miquel Raynal
2023-06-16 13:52 ` [PATCH v3 1/2] power: reset: at91-reset: change the power on reason prototype Miquel Raynal
2023-06-19  8:10   ` Nicolas Ferre
2023-06-19 21:46     ` Sebastian Reichel
2023-06-16 13:52 ` [PATCH v3 2/2] power: reset: at91-reset: add sysfs interface to the power on reason Miquel Raynal
2023-06-19 21:44   ` Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).