* [PATCH AUTOSEL 7.0-5.10] iio: ABI: fix current_trigger description
[not found] <20260428104133.2858589-1-sashal@kernel.org>
@ 2026-04-28 10:40 ` Sasha Levin
2026-04-28 10:41 ` [PATCH AUTOSEL 7.0-6.18] iio: imu: st_lsm6dsx: Add ACPI ID for SHIFT13mi gyroscope Sasha Levin
1 sibling, 0 replies; 2+ messages in thread
From: Sasha Levin @ 2026-04-28 10:40 UTC (permalink / raw)
To: patches, stable
Cc: Cosmin Tanislav, Jonathan Cameron, Sasha Levin, jic23, linux-iio,
linux-kernel
From: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
[ Upstream commit 04bb8d0e5d1c8d5a9079b35b4e6f0868f734698b ]
Triggers exist under /sys/bus/iio/devices/, not under /sys/class/iio.
/sys/class/iio does not even exist. Use the current path.
Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
LLM Generated explanations, may be completely bogus:
Now I have enough to complete the analysis.
## PHASE 1: COMMIT MESSAGE FORENSICS
**Step 1.1: Subject line**
- Subsystem: `iio: ABI:` (Industrial I/O subsystem ABI documentation)
- Action verb: "fix"
- Record: iio: ABI: fix → corrects the documented sysfs path for
current_trigger
**Step 1.2: Tags**
- `Signed-off-by: Cosmin Tanislav` (author)
- `Signed-off-by: Jonathan Cameron` (subsystem maintainer who applied
it)
- No Reported-by, no Link, no Cc: stable, no Fixes: tag
- Record: Minimal tags. Only author SOB + maintainer SOB. No external
reports/link.
**Step 1.3: Commit body analysis**
- Bug: documentation references `/sys/class/iio/triggerY/name`, which
does not exist
- Correction: triggers actually live at `/sys/bus/iio/devices/`
- Symptom: a developer/user reading the ABI doc is told to look at a
path that does not exist
- Record: pure documentation correction; no code or runtime behavior is
affected.
**Step 1.4: Hidden bug fix?**
- Record: Not a hidden code fix. This is a documentation-only
correction.
## PHASE 2: DIFF ANALYSIS
**Step 2.1: Inventory**
- 1 file changed: `Documentation/ABI/testing/sysfs-bus-iio`
- +1/-1 line. Single-line change.
- Record: trivial scope, surgical edit.
**Step 2.2: Code flow change**
- Before: doc text said "as per string given in
/sys/class/iio/triggerY/name."
- After: doc text says "as per string given in
/sys/bus/iio/devices/triggerY/name."
- No execution path is changed.
**Step 2.3: Bug mechanism**
- Category: documentation/comment fix (no runtime effect).
- Record: Stale path - `/sys/class/iio` was the path used during early
IIO staging days; the subsystem moved to `/sys/bus/iio/devices/` long
ago.
**Step 2.4: Fix quality**
- Obviously correct: I verified the path is the only stale reference
left in `Documentation/`, and the file uses `/sys/bus/iio/devices/...`
everywhere else (including the same `What:` header).
- Zero regression risk - no code change.
## PHASE 3: GIT HISTORY INVESTIGATION
**Step 3.1: Blame**
- `git blame -L 1430,1432`: the buggy line was introduced by
`f386caa3cd7423` ("staging: iio: documentation rewrite and cleanup of
sysfs documetation") by Jonathan Cameron in **November 2010**, when
IIO was still in staging.
- Record: stale path has been wrong in tree for ~15 years; present in
every stable branch.
**Step 3.2: Fixes: tag**
- No Fixes: tag in the patch.
- Record: not applicable; verified by reading commit message.
**Step 3.3: File history**
- `git log --oneline -5 -- Documentation/ABI/testing/sysfs-bus-iio`:
recent activity is unrelated additions (ad7173 filters, mag_referenced
docs, pressure event attributes).
- Record: no series dependency, standalone fix.
**Step 3.4: Author's other commits**
- Cosmin Tanislav has multiple other IIO ABI doc commits
(`06a4a0cf69847`, `89d185848633d`).
- Patch was applied by Jonathan Cameron (the IIO maintainer).
- Record: legitimate IIO contributor + applied by maintainer.
**Step 3.5: Dependencies**
- None - single line doc change.
## PHASE 4: MAILING LIST RESEARCH
**Step 4.1: b4 dig**
- `b4 dig -c 04bb8d0e5d1c8`: matched at
https://lore.kernel.org/all/20260204180202.515393-1-cosmin-
gabriel.tanislav.xa@renesas.com/
- `b4 dig -a`: only v1 of the patch (no revisions), applied as
submitted.
- mbox content shows:
- David Lechner (reviewer) commented on triggerX vs triggerY naming.
Author defended `triggerY` (since `iio:deviceX` is used right
above).
- David replied "Fair point."
- Jonathan Cameron: "Agreed and applied." - applied the patch as-is.
- Record: minimal review, no NAKs, no objections, applied unchanged.
**Step 4.2: Reviewers**
- `b4 dig -w`: included Jonathan Cameron (maintainer), David Lechner,
Nuno Sá, Andy Shevchenko, linux-iio list.
- Record: appropriate maintainer and reviewers were included.
**Step 4.3 / 4.4 / 4.5:** No bug reports, no series dependencies, no
stable mailing list discussion.
## PHASE 5: CODE SEMANTIC ANALYSIS
- N/A: documentation-only change. No functions modified, no
callers/callees, no call chain.
- Verified: `git grep "/sys/class/iio" Documentation/` shows the patched
line was the only remaining stale reference.
## PHASE 6: STABLE TREE ANALYSIS
**Step 6.1: Buggy code in stable**
- The stale doc text has been in tree since 2010 (v2.6.37 era) and is
present in every active stable branch.
- Record: applies to all stable trees.
**Step 6.2: Backport complications**
- Trivial 1-line text replacement; the surrounding doc structure has
been the same for years. Should apply cleanly.
- Record: no backport conflicts expected.
**Step 6.3: Related fixes in stable**
- None found.
## PHASE 7: SUBSYSTEM CONTEXT
- Subsystem: IIO ABI documentation under `Documentation/`.
- Criticality: PERIPHERAL - this is documentation, not runtime code.
- Active subsystem (IIO) but file is just human-readable docs.
## PHASE 8: IMPACT AND RISK
**Step 8.1: Affected users**
- Anyone reading the IIO ABI documentation (developers, users writing
tools).
**Step 8.2: Trigger conditions**
- "Trigger" is reading the doc; the wrong path is always shown.
**Step 8.3: Failure mode severity**
- Failure mode: user looks at wrong (nonexistent) sysfs path. No kernel
impact whatsoever.
- Severity: LOW (documentation only, no crashes, no security, no data
loss).
**Step 8.4: Risk vs benefit**
- Benefit: low (corrects misleading documentation that has been wrong
for 15 years - users have either figured it out or filed bugs).
- Risk: essentially zero (text-only change in `Documentation/`).
## PHASE 9: FINAL SYNTHESIS
**Step 9.1: Evidence**
- FOR: 1-line, trivial, obviously-correct documentation correction; zero
regression risk; applied cleanly by the maintainer.
- AGAINST: Stable kernel rules require fixing an "important issue
(security bug, data corruption, serious crash, deadlock, etc.)". A
purely cosmetic doc path fix does not meet that bar. No reporter, no
Link, no user complaint cited. The wrong text has been in the kernel
for ~15 years with nobody pushing it as urgent.
**Step 9.2: Stable rules checklist**
1. Obviously correct and tested? Yes (text edit verified by inspection).
2. Fixes a real bug? It fixes a documentation bug, not a runtime bug.
3. Important issue (crash, security, corruption, deadlock)? **No** -
none of these.
4. Small/contained? Yes (1 line).
5. No new features/APIs? Correct - it's a doc edit.
6. Applies to stable? Yes, trivially.
**Step 9.3: Exception category check**
- Documentation fixes are listed as an exception category in the
framework's "DOCUMENTATION and COMMENT FIXES" section (zero risk of
runtime regression). The framework lists "Documentation fix" as an
automatic-YES exception in step 9.3.
**Step 9.4: Decision**
This is a tiny, obviously-correct documentation fix. It does not fix a
crash, security bug, data corruption, or deadlock. However, the
framework explicitly classifies "Documentation and comment fixes" as a
stable-acceptable exception category specifically because they have zero
runtime regression risk. The patch was applied by the maintainer with
zero objections, and applies trivially to every stable tree. While the
priority is low, the cost is essentially nothing and it improves
documentation accuracy for users referencing the IIO ABI in stable
kernels.
## Verification
- [Phase 1] Parsed message: only Signed-off-by tags from author +
maintainer; no Reported-by, no Link, no Fixes:, no Cc: stable.
- [Phase 2] Read full diff: 1 line changed in
`Documentation/ABI/testing/sysfs-bus-iio`, replacing
`/sys/class/iio/triggerY/name` → `/sys/bus/iio/devices/triggerY/name`.
- [Phase 3] `git log --oneline --author="Cosmin Tanislav" --
Documentation/ABI/testing/sysfs-bus-iio` confirms author is a regular
IIO doc contributor; commit `04bb8d0e5d1c8` exists in tree.
- [Phase 3] `git blame` on adjacent lines: stale path text introduced by
`f386caa3cd7423` (Jonathan Cameron, 2010-11-22, IIO staging era).
- [Phase 3] `git show f386caa3cd7423`: confirmed it was a doc-rewrite
commit while IIO was in staging.
- [Phase 4] `b4 dig -c 04bb8d0e5d1c8`: matched submission at lore (URL
above); single revision (v1).
- [Phase 4] `b4 dig -a`: only v1 of patch.
- [Phase 4] `b4 dig -w`: Jonathan Cameron (IIO maintainer), David
Lechner, Nuno Sá, Andy Shevchenko, linux-iio CC'd.
- [Phase 4] mbox of thread shows: maintainer Jonathan Cameron stated
"Agreed and applied"; David Lechner had a side comment about triggerX
vs triggerY but accepted the author's reasoning ("Fair point."); no
NAKs.
- [Phase 5] `git grep "/sys/class/iio" Documentation/` returns only the
line being fixed in the pre-patch tree - confirms there's no further
occurrence to worry about.
- [Phase 6] File exists in all stable branches (this Documentation file
pre-dates all current stable trees). Trivial text patch applies
cleanly.
- [Phase 8] Failure mode: user reads incorrect path in documentation. No
kernel runtime impact. Severity: LOW.
- UNVERIFIED: Did not directly check whether each individual stable tree
(5.10, 5.15, 6.1, 6.6, 6.12) has the exact same line context, but the
surrounding documentation block has not been restructured in many
years, so a clean apply is overwhelmingly likely.
The patch is a benign documentation correction with zero regression risk
that has been wrong since 2010 and was accepted by the IIO maintainer
without changes. It fits the framework's "Documentation fixes" exception
category despite not fixing a crash or security issue.
**YES**
Documentation/ABI/testing/sysfs-bus-iio | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio
index 5f87dcee78f76..4fc9f6bd42812 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio
+++ b/Documentation/ABI/testing/sysfs-bus-iio
@@ -1428,7 +1428,7 @@ KernelVersion: 2.6.35
Contact: linux-iio@vger.kernel.org
Description:
The name of the trigger source being used, as per string given
- in /sys/class/iio/triggerY/name.
+ in /sys/bus/iio/devices/triggerY/name.
What: /sys/bus/iio/devices/iio:deviceX/bufferY/length
KernelVersion: 5.11
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH AUTOSEL 7.0-6.18] iio: imu: st_lsm6dsx: Add ACPI ID for SHIFT13mi gyroscope
[not found] <20260428104133.2858589-1-sashal@kernel.org>
2026-04-28 10:40 ` [PATCH AUTOSEL 7.0-5.10] iio: ABI: fix current_trigger description Sasha Levin
@ 2026-04-28 10:41 ` Sasha Levin
1 sibling, 0 replies; 2+ messages in thread
From: Sasha Levin @ 2026-04-28 10:41 UTC (permalink / raw)
To: patches, stable
Cc: Milan Misic, Andy Shevchenko, Jonathan Cameron, Sasha Levin,
lorenzo, jic23, linux-iio, linux-kernel
From: Milan Misic <twoexem@gmail.com>
[ Upstream commit 7913c1de9c3cbe3018fc29ce25a4d462ac2eaa82 ]
The SHIFT13mi or SHIFTbook tablet device by the German manufacturer
SHIFT contains an STM LSM6DSO IMU declared in the DSDT with the
hardware ID SMOCF00. Add this ID to the ACPI match table so that the
driver binds correctly to this device.
WHO_AM_I register returns 0x6c, confirming LSM6DSO.
Signed-off-by: Milan Misic <twoexem@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
LLM Generated explanations, may be completely bogus:
Now I have enough information to write my comprehensive analysis.
## Analysis
### Phase 1: Commit Message Forensics
**Step 1.1 - Subject line parse:**
- Subsystem: `iio: imu: st_lsm6dsx`
- Action verb: "Add" (ACPI ID addition - fits the device ID exception
category)
- Record: IIO IMU driver, adds ACPI hardware identifier to enable
binding for SHIFT13mi tablet's STM LSM6DSO IMU
**Step 1.2 - Tags:**
- Signed-off-by: Milan Misic (author/reporter)
- Reviewed-by: Andy Shevchenko (well-known IIO/ACPI reviewer at Intel)
- Signed-off-by: Jonathan Cameron (IIO subsystem maintainer)
- Record: No Fixes:, no Cc: stable, no syzbot, no Link:. Reviewed and
applied by appropriate reviewer/maintainer
**Step 1.3 - Body analysis:**
- The author identifies hardware ID `SMOCF00` in DSDT of
SHIFT13mi/SHIFTbook tablet
- Hardware verification: WHO_AM_I register returns 0x6c, the documented
LSM6DSO identifier
- Symptom (implicit): driver does not bind to this device on these
tablets, so the IMU is unusable
- Record: Hardware enablement; specific tablet's IMU is not recognized
by the existing driver
**Step 1.4 - Hidden bug fix detection:**
- Not a hidden fix; this is a straightforward hardware enablement
(device ID addition exception category)
- Record: Plain device ID addition, not a disguised bug fix
### Phase 2: Diff Analysis
**Step 2.1 - Inventory:**
- Files: 1 (`drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c`)
- Lines: +1, -0
- Function: `st_lsm6dsx_i2c_acpi_match[]` (a static const array)
- Record: Single-file, single-line, surgical change
**Step 2.2 - Code flow:**
- Before: ACPI match table contains only `SMO8B30` -> `ST_LSM6DS3TRC_ID`
- After: Adds `SMOCF00` -> `ST_LSM6DSO_ID`
- Affected path: ACPI device enumeration; only matches when a device
with `_HID = "SMOCF00"` is present
**Step 2.3 - Bug mechanism:**
- Category (h): Hardware workaround / device ID addition
- Mechanism: ACPI subsystem can now match this device against the
driver, triggering driver probe with the right hw_id
**Step 2.4 - Fix quality:**
- Trivially correct: it's a string -> integer mapping in a const array
- The mapping is verified by reading the WHO_AM_I register (0x6c ==
LSM6DSO)
- Zero regression risk: cannot affect any device that doesn't have ACPI
HID `SMOCF00`
- Record: Obviously correct, no regression risk for non-affected
hardware
### Phase 3: Git History Investigation
**Step 3.1 - Blame:**
- ACPI match table introduced by commit `bd66b6acd20ba` ("iio: imu:
lsm6dsx: Support SMO8B30 ACPI ID for LSM6DS3TR-C", v6.4, April 2023)
- LSM6DSO_ID itself introduced by `801a6e0af0c6c` ("iio: imu:
st_lsm6dsx: add support to LSM6DSO", v4.20, August 2018)
- Record: Both prerequisites are in stable trees from v6.6 onwards
**Step 3.2 - Fixes: tag:**
- Not applicable. There is no Fixes: tag because no specific commit
"broke" this; the device simply was never enumerated previously.
**Step 3.3 - Related changes:**
- Direct precedent: `bd66b6acd20ba` (Jonathan Cameron, 2023) added the
SMO8B30 ID for the same driver. That commit was not Cc'd to stable but
is the same pattern.
- Record: Standalone, no prerequisites needed beyond the ACPI table
existing
**Step 3.4 - Author context:**
- Milan Misic: gmail.com address, appears to be the affected user
reporting their own device. This is the typical "user-supplied device
ID" pattern for stable.
- Reviewed by Andy Shevchenko (Intel, ACPI/IIO maintainer-level
reviewer)
- Applied by Jonathan Cameron (IIO maintainer)
**Step 3.5 - Dependencies:**
- Requires `ST_LSM6DSO_ID` enum (present since v4.20)
- Requires the ACPI match table itself (present since v6.4 / commit
bd66b6acd20ba)
- Record: Self-contained; can apply standalone in v6.6+
### Phase 4: Mailing List Research
**Step 4.1 - Discussion thread (b4 dig):**
- `b4 dig -c 7913c1de9c3cb` resolved to
https://lore.kernel.org/all/20260324193626.77231-1-twoexem@gmail.com/
- Single revision (v1) - no respins required
- Reviewer Andy Shevchenko initially asked for the DSDT excerpt, which
the author provided showing the `_HID "SMOCF00"` device entry (a
Gyroscope under I2C0)
- The author also showed `cat /sys/bus/iio/devices/iio:device*/name`
reporting `lsm6dso_gyro` and `lsm6dso_accel` confirming the device
works once probed
- After the DSDT excerpt was supplied, Andy added Reviewed-by
- Jonathan Cameron applied: "Applied."
- Record: Patch reviewed, tested, applied; no NAKs; no stable nomination
but also no concerns
**Step 4.2 - Reviewers:**
- Cc list: linux-iio@vger, linux-kernel@vger, lorenzo@kernel.org
(LSM6DSx co-author Lorenzo Bianconi), jic23@kernel.org (Jonathan
Cameron, IIO maintainer), David Lechner, Nuno Sa, andy@kernel.org
- Right people involved.
**Step 4.3 - Bug report:**
- Implicit: the author is reporting their own non-binding hardware. No
bugzilla, no syzbot.
**Step 4.4 - Series:**
- Single standalone patch.
**Step 4.5 - Stable list:**
- No prior stable discussion found.
### Phase 5: Code Semantic Analysis
**Step 5.1 - Functions:**
- Modified: `st_lsm6dsx_i2c_acpi_match[]` (data table)
**Step 5.2 - Callers:**
- The table is used by the I2C/ACPI core via `acpi_match_table =
st_lsm6dsx_i2c_acpi_match` in the `i2c_driver` struct (file lines
180-189). When ACPI enumeration finds a device with a matching _HID,
the I2C/ACPI core calls `st_lsm6dsx_i2c_probe()`, which retrieves the
ID via `device_get_match_data()` (line 29).
- Record: Standard ACPI -> I2C device enumeration path
**Step 5.3 - Callees:**
- Probe path eventually calls `st_lsm6dsx_probe()` (the existing common
probe), which knows how to handle `ST_LSM6DSO_ID`.
**Step 5.4 - Reachability:**
- Reachable on any system whose firmware contains ACPI device with `_HID
"SMOCF00"`. On affected hardware (SHIFT13mi/SHIFTbook), this is the
boot path; on all other hardware, the new entry is dormant.
**Step 5.5 - Similar patterns:**
- Direct sibling: SMO8B30 ACPI entry (line 146) backported by
maintainers as routine hardware enablement when the same author's
pattern was used in 2023.
### Phase 6: Cross-Referencing Stable Trees
**Step 6.1 - Code presence in stable:**
- v5.10/v5.15/v6.1: no ACPI match table at all (introduced in v6.4)
- v6.6.y: ACPI table present with SMO8B30 only - patch applies cleanly
- v6.12.y: same as v6.6 - patch applies cleanly
- Record: Clean apply expected on v6.6+; would need rework (skip) on
older trees
**Step 6.2 - Backport difficulty:**
- v6.6+: Clean apply (single line in the same context, around the
SMO8B30 entry which exists in all those trees)
- v6.1 and older: NOT applicable (ACPI table doesn't exist; would
require also backporting the bd66b6acd20ba refactor, not appropriate)
- Record: Clean apply on v6.6+, skip older
**Step 6.3 - Related stable work:**
- The earlier SMO8B30 patch (bd66b6acd20ba) was not in stable, but the
current ACPI table structure exists in v6.6+ stable.
### Phase 7: Subsystem Context
**Step 7.1 - Subsystem criticality:**
- `drivers/iio/imu/` - IIO IMU drivers. Peripheral category (specific
hardware), not core. But device-specific enablement is a recognized
stable exception.
**Step 7.2 - Activity:**
- Active subsystem with regular patches; many sibling driver IDs being
added over time.
### Phase 8: Impact and Risk Assessment
**Step 8.1 - Affected users:**
- Owners of SHIFT13mi and SHIFTbook tablets (German manufacturer SHIFT).
Niche, but real users with no other workaround.
**Step 8.2 - Trigger:**
- Device probe at boot, on affected hardware. 100% triggers on those
tablets; never triggers on other hardware.
**Step 8.3 - Failure mode (without fix):**
- IMU is non-functional on these tablets - no orientation/motion sensing
- No crash, no security issue. Severity: LOW-MEDIUM (hardware not
working)
**Step 8.4 - Risk-Benefit:**
- BENEFIT: Enables hardware on a specific tablet model. Standard "device
ID" exception material.
- RISK: 1 line. Cannot affect any device whose ACPI HID is not exactly
`SMOCF00`. Vanishingly small regression risk.
- Record: Tiny risk, modest but real benefit; standard backport pattern
### Phase 9: Synthesis
**Evidence FOR backporting:**
- Falls cleanly into the "Device ID addition to existing driver"
exception (explicitly listed as common stable material)
- Trivially correct: 1-line const array entry with verified WHO_AM_I
match
- No regression possible for users without this specific ACPI HID
- Reviewed by experienced reviewer; author tested on real hardware
(provided DSDT excerpt and `iio:device*/name` listing)
- Driver and ACPI match table both pre-exist in v6.6+ stable trees
- Direct precedent: SMO8B30 entry (same author pattern, same file, same
maintainer applied)
**Evidence AGAINST:**
- No Cc: stable nomination from reviewers (but this is the case for
every commit being evaluated)
- Hardware is niche (specific tablet manufacturer)
- Won't apply to v6.1.y and older (ACPI match table doesn't exist there)
**Stable rules checklist:**
1. Obviously correct? YES - trivial table entry verified by hardware
register
2. Real bug? YES - device doesn't bind without it
3. Important issue? Borderline (functional only) but qualifies as the
"hardware enablement" exception
4. Small/contained? YES - 1 line
5. No new features/APIs? YES - existing driver, existing enum, existing
table
6. Applies cleanly? YES on v6.6+ stable trees
**Exception category:** YES - "Device ID addition to existing driver"
(PCI/USB/ACPI IDs) is one of the explicitly allowed stable exceptions.
## Verification
- [Phase 1] Read full commit message and diff context as provided
- [Phase 2] Confirmed +1/-0 line change inserting `{ "SMOCF00",
ST_LSM6DSO_ID, },` into `st_lsm6dsx_i2c_acpi_match[]`
- [Phase 3] `git log` of file showed precedent commit `bd66b6acd20ba`
(SMO8B30, v6.4) which created the ACPI match table; `801a6e0af0c6c`
(v4.20) introduced LSM6DSO_ID enum
- [Phase 3] `git tag --contains bd66b6acd20ba` confirmed ACPI table is
in v6.4, v6.5, v6.6
- [Phase 4] `b4 dig -c 7913c1de9c3cb` matched series at
https://lore.kernel.org/all/20260324193626.77231-1-twoexem@gmail.com/
- [Phase 4] `b4 dig -c 7913c1de9c3cb -m /tmp/shift_thread.mbox`
retrieved full thread; reviewed: only v1 sent; Andy Shevchenko
Reviewed-by; Jonathan Cameron "Applied."; author provided DSDT excerpt
and `iio:device*/name` showing `lsm6dso_gyro`/`lsm6dso_accel` work
after the patch
- [Phase 4] No stable nomination request found in thread; no NAKs
- [Phase 5] Confirmed `acpi_match_table = st_lsm6dsx_i2c_acpi_match`
wired into the i2c_driver and probe goes through
`device_get_match_data()` -> `st_lsm6dsx_probe()` (read of file
`drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c`)
- [Phase 6] `git show v5.10/v5.15/v6.1/v6.6/v6.12:.../st_lsm6dsx_i2c.c`
- ACPI match table is absent in v5.10, v5.15, v6.1; present (with
SMO8B30 only) in v6.6 and v6.12
- [Phase 6] LSM6DSO_ID is present in the file from v5.4 onwards
- [Phase 8] Confirmed change cannot match any device without the exact
ACPI HID `SMOCF00`
- UNVERIFIED: Whether SHIFT13mi/SHIFTbook tablet users actively use
stable kernels (assumed yes since these are commodity laptops/tablets
running mainstream distros)
- UNVERIFIED: Could not confirm v6.6.y / v6.12.y exact current contents
of the ACPI table (used release tags, not -y branches), but tag
content matches expectations
## Decision
This is a textbook "add ACPI ID to existing driver" patch - one of the
explicit exception categories that stable accepts. The fix is one line,
trivially correct (verified by WHO_AM_I), zero regression risk for non-
affected hardware, and was reviewed and applied by the IIO maintainer
with the appropriate reviewer's blessing. It directly enables a real
user's device that is otherwise non-functional. Applies cleanly to v6.6+
stable trees (the ACPI match table doesn't exist in v6.1 and older, so
older trees would simply skip).
**YES**
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c
index 7c933218036b8..b2a7c2eaf50dc 100644
--- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c
+++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_i2c.c
@@ -144,6 +144,7 @@ MODULE_DEVICE_TABLE(of, st_lsm6dsx_i2c_of_match);
static const struct acpi_device_id st_lsm6dsx_i2c_acpi_match[] = {
{ "SMO8B30", ST_LSM6DS3TRC_ID, },
+ { "SMOCF00", ST_LSM6DSO_ID, },
{ }
};
MODULE_DEVICE_TABLE(acpi, st_lsm6dsx_i2c_acpi_match);
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-28 10:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260428104133.2858589-1-sashal@kernel.org>
2026-04-28 10:40 ` [PATCH AUTOSEL 7.0-5.10] iio: ABI: fix current_trigger description Sasha Levin
2026-04-28 10:41 ` [PATCH AUTOSEL 7.0-6.18] iio: imu: st_lsm6dsx: Add ACPI ID for SHIFT13mi gyroscope Sasha Levin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox