platform/chrome: mfd/cros_ec_debugfs: Add debugfs entry to retrieve EC uptime.
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v6 1/1 platform/chrome: mfd/cros_ec_debugfs: Add debugfs entry to retrieve EC uptime.
From: Tim Wawrzynczak <[email protected]>
The new debugfs entry 'uptime' is being made available to userspace so that a userspace daemon can synchronize EC logs with host time.
---
Sorry about that Enric, I was confused that you meant Lee's tree. Also I got myself confused with all the patchsets :)
Changelist from v5:
1) Rebase on lee's for-mfd-next
Changelist from v4:
1) Add EC_CMD_GET_UPTIME_INFO
2) Rebase on top of 5.3
3) Get rid of cros_ec_create_uptime
Changelist from v3:
1) Don't check return values of debugfs_* functions.
2) Only expose 'uptime' file if EC supports it.
--- Documentation/ABI/testing/debugfs-cros-ec | 10 ++++ drivers/platform/chrome/cros_ec_debugfs.c | 56 +++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 Documentation/ABI/testing/debugfs-cros-ec
Documentation/ABI/testing/debugfs-cros-ec new file +10 -0
@@ -0,0 +1,10 @@ +What: /sys/kernel/debug/<cros-ec-device>/uptime +Date: June 2019 +KernelVersion: 5.3 +Description: + Read-only. + Reads the EC's current uptime information + (using EC_CMD_GET_UPTIME_INFO) and prints + time_since_ec_boot_ms into the file. + This is used for synchronizing AP host time + with the cros_ec log.
drivers/platform/chrome/cros_ec_debugfs.c +56 -0
74 lines not on this page · raw message
Signature · 1 line
2.22.0.rc2.383.gf4fbbf30c2-goog