From: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
To: <jikos@kernel.org>, <bentiss@kernel.org>
Cc: <linux-input@vger.kernel.org>,
Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Subject: [PATCH -next 0/3] HID: amd_sfh: operating-mode telemetry sysfs and accel report fix
Date: Sun, 4 Oct 2026 21:29:16 +0530 [thread overview]
Message-ID: <20261004155919.726226-1-Basavaraj.Natikar@amd.com> (raw)
This series extends the amd-sfh sysfs interface with operating-mode
telemetry and fixes an accelerometer report-descriptor mismatch.
Patch 1 moves the existing sysfs attribute handling into a dedicated file
in preparation for adding more attributes (no functional change).
Patch 2 exposes the operating-mode telemetry reported by the SRA sensor
(in-bag, out-of-bag, on-table, hinge angle, lid status and device mode)
as read-only sysfs attributes.
Patch 3 removes an unsupported motion-state field from the accelerometer
HID report descriptor that the hardware never populates, which caused
hid-core to drop every accelerometer input report.
Basavaraj Natikar (3):
HID: amd_sfh: Move sysfs attributes to a separate file
HID: amd_sfh: Add operating-mode telemetry sysfs attributes
HID: amd_sfh: Remove unsupported motion-state field from accelerometer
report
.../ABI/testing/sysfs-driver-amd-sfh | 60 ++++++++
MAINTAINERS | 1 +
drivers/hid/amd-sfh-hid/Makefile | 1 +
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c | 55 +------
drivers/hid/amd-sfh-hid/amd_sfh_sysfs.c | 134 ++++++++++++++++++
drivers/hid/amd-sfh-hid/amd_sfh_sysfs.h | 19 +++
.../hid_descriptor/amd_sfh_hid_desc.h | 2 -
.../hid_descriptor/amd_sfh_hid_report_desc.h | 7 -
8 files changed, 217 insertions(+), 62 deletions(-)
create mode 100644 drivers/hid/amd-sfh-hid/amd_sfh_sysfs.c
create mode 100644 drivers/hid/amd-sfh-hid/amd_sfh_sysfs.h
--
2.34.1
next reply other threads:[~2026-10-04 16:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-04 15:59 Basavaraj Natikar [this message]
2026-10-04 15:59 ` [PATCH -next 1/3] HID: amd_sfh: Move sysfs attributes to a separate file Basavaraj Natikar
2026-10-04 15:59 ` [PATCH -next 2/3] HID: amd_sfh: Add operating-mode telemetry sysfs attributes Basavaraj Natikar
2026-10-04 16:11 ` sashiko-bot
2026-10-04 15:59 ` [PATCH -next 3/3] HID: amd_sfh: Remove unsupported motion-state field from accelerometer report Basavaraj Natikar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261004155919.726226-1-Basavaraj.Natikar@amd.com \
--to=basavaraj.natikar@amd.com \
--cc=bentiss@kernel.org \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox