AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/09/16 04:48 flow patch-triage
1m Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "KMSANReasoning": "",
  "NeedsKMSAN": false,
  "Reasoning": "The patch modifies the InvenSense ICM-42600 series IMU driver (drivers/iio/imu/inv_icm42600/), which controls physical 6-axis motion tracking chips connected over I2C or SPI buses. The hardware requires an INT1 interrupt line and a physical chip responding to WHOAMI registers, and is not emulated by standard QEMU or GCE virtual environments. As such, the modified code is structurally unreachable for fuzzing.",
  "WorthFuzzing": false
}

1/1 2026/09/16 04:48 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit 6e45468a4ee19f937eb167a6e51175590c74dca6\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Wed Sep 16 04:48:20 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600.h b/drivers/iio/imu/inv_icm42600/inv_icm42600.h\nindex f6c7c84c7e45f..e56943931b6a0 100644\n--- a/drivers/iio/imu/inv_icm42600/inv_icm42600.h\n+++ b/drivers/iio/imu/inv_icm42600/inv_icm42600.h\n@@ -179,6 +179,7 @@ struct inv_icm42600_state {\n \tstruct {\n \t\ts64 gyro;\n \t\ts64 accel;\n+\t\tbool accel_force_odr;\n \t} timestamp;\n \tstruct inv_icm42600_apex apex;\n \tstruct inv_icm42600_fifo fifo;\ndiff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c\nindex 65d29de8ecf9c..cc8c074777c9d 100644\n--- a/drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c\n+++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c\n@@ -1236,9 +1236,11 @@ int inv_icm42600_accel_parse_fifo(struct iio_dev *indio_dev)\n \t\t\treturn size;\n \n \t\t/* update odr */\n-\t\tif (odr \u0026 INV_ICM42600_SENSOR_ACCEL)\n+\t\tif (odr \u0026 INV_ICM42600_SENSOR_ACCEL) {\n \t\t\tinv_sensors_timestamp_apply_odr(ts, st-\u003efifo.period,\n \t\t\t\t\t\t\tst-\u003efifo.nb.total, no);\n+\t\t\tst-\u003etimestamp.accel_force_odr = false;\n+\t\t}\n \n \t\t/* skip packet if no accel data or data is invalid */\n \t\tif (accel == NULL || !inv_icm42600_fifo_is_data_valid(accel))\n@@ -1251,5 +1253,10 @@ int inv_icm42600_accel_parse_fifo(struct iio_dev *indio_dev)\n \t\tiio_push_to_buffers_with_timestamp(indio_dev, \u0026buffer, ts_val);\n \t}\n \n+\tif (st-\u003etimestamp.accel_force_odr) {\n+\t\tinv_sensors_timestamp_apply_odr(ts, 0, 0, 0);\n+\t\tst-\u003etimestamp.accel_force_odr = false;\n+\t}\n+\n \treturn 0;\n }\ndiff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c\nindex ded45dfe46a25..2bf9fc29d7d29 100644\n--- a/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c\n+++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c\n@@ -384,6 +384,8 @@ static int inv_icm42600_buffer_postdisable(struct iio_dev *indio_dev)\n \tmutex_lock(\u0026st-\u003elock);\n \n \tinv_sensors_timestamp_apply_odr(ts, 0, 0, 0);\n+\tif (sensor == INV_ICM42600_SENSOR_ACCEL)\n+\t\tst-\u003etimestamp.accel_force_odr = false;\n \n \tret = inv_icm42600_buffer_set_fifo_en(st, st-\u003efifo.en \u0026 ~sensor);\n \tif (ret)\ndiff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c\nindex be8cbecdd92e4..cd2e53416f5b1 100644\n--- a/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c\n+++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c\n@@ -325,6 +325,15 @@ int inv_icm42600_set_accel_conf(struct inv_icm42600_state *st,\n \t\tbreak;\n \t}\n \n+\t/*\n+\t * If we change mode from low-power to low-noise because of odr,\n+\t * we need to force odr change.\n+\t */\n+\tif (oldconf-\u003emode == INV_ICM42600_SENSOR_MODE_LOW_POWER \u0026\u0026\n+\t    conf-\u003emode == INV_ICM42600_SENSOR_MODE_LOW_NOISE \u0026\u0026\n+\t    conf-\u003eodr != oldconf-\u003eodr)\n+\t\tst-\u003etimestamp.accel_force_odr = true;\n+\n \t/* set ACCEL_CONFIG0 register (accel fullscale \u0026 odr) */\n \tif (conf-\u003efs != oldconf-\u003efs || conf-\u003eodr != oldconf-\u003eodr) {\n \t\tval = INV_ICM42600_ACCEL_CONFIG0_FS(conf-\u003efs) |\n"
}

2/1 2026/09/16 04:48 agent patch-evaluator
1m Model:
core

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch modifies the InvenSense ICM-42600 series IMU driver (drivers/iio/imu/inv_icm42600/), which controls physical 6-axis motion tracking chips connected over I2C or SPI buses. The hardware requires an INT1 interrupt line and a physical chip responding to WHOAMI registers, and is not emulated by standard QEMU or GCE virtual environments. As such, the modified code is structurally unreachable for fuzzing.",
  "WorthFuzzing": false
}

Instruction:
You are an expert Linux kernel maintainer and security engineer.
Your job is to review a provided patch series and evaluate whether it warrants fuzzing with syzkaller.

IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on internal assumptions. You must actively use your code access
tools to inspect the actual source code, callers, and surrounding context.

================================================================================
1. CORE TRIAGE PHILOSOPHY
================================================================================
The goal of patch fuzzing is to discover crashes, regressions, exposed latent bugs,
and newly triggered assertions introduced by the patch series.

- REACHABILITY IS THE PRIMARY GATE:
  Fuzzing can only discover bugs in code that can actually execute in standard virtualized
  environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap).
  If the modified code is structurally unreachable (see Section 2), it MUST NOT be fuzzed,
  regardless of whether it adds assertions or complex logic.

- DO NOT BLINDLY TRUST "NO FUNCTIONAL CHANGE" (NFCI) OR "REFACTORING" CLAIMS:
  Patch authors routinely label changes as "cleanups", "refactorings", or state
  "No functional change intended". Do NOT take these claims at face value.
  Code refactorings that rearrange logic, introduce helper functions, or alter state management
  in core subsystems frequently introduce subtle semantic shifts or uncover latent kernel bugs.
  If reachable executable code is modified or refactored, it MUST be fuzzed.

- NEW OR MODIFIED ASSERTIONS IN REACHABLE CODE MUST BE FUZZED:
  When a patch introduces or modifies runtime checks or assertions (e.g., WARN_ON*, VM_WARN_ON*,
  BUG_ON*, lockdep_assert*) in reachable code paths, it enforces new or stricter invariants.
  Even if the author believes the invariant always holds, fuzzing is essential to verify whether
  an unusual sequence of operations can violate it.

================================================================================
2. WHEN TO RETURN WorthFuzzing=false (NEGATIVE CRITERIA)
================================================================================
Return WorthFuzzing=false ONLY IF all modified code falls strictly into one or more of these categories:

- Non-kernel and non-executable changes:
  * Modifications to Documentation/, comments, or spelling fixes.
  * User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/)
    that do not affect the compiled kernel image (vmlinux) or kernel modules.
  * Purely decorative logging (e.g., message strings in pr_err, printk, dev_info) or tracepoints
    that do not alter control flow or data structures.
  * Build system or Kconfig changes that do not alter compiled C logic.
- Structurally unreachable hardware:
  * Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed,
    ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU.
- Unreachable execution paths:
  * Driver teardown callbacks (.remove, .shutdown, pci_unregister_driver) executed only during
    physical PCI hot-unplug or manual sysfs driver unbinding.
  * Code paths exclusive to architectures other than the target architecture.

================================================================================
3. WHEN TO RETURN WorthFuzzing=true (POSITIVE CRITERIA)
================================================================================
Return WorthFuzzing=true whenever the patch touches reachable executable code, including:
- Core Subsystems:
  * Any logic modifications in memory management (mm/), synchronization/locking (kernel/locking/),
    BPF, scheduler, core networking, VFS, or syscall handling.
- Refactorings and Code Cleanups:
  * Any restructuring of reachable data structures, helper abstractions, or algorithm flows.
- Runtime Assertions and Defensive Checks:
  * Any introduction or alteration of assertions (WARN_ON*, VM_WARN_ON*, BUG_ON*, etc.) in reachable paths.
- Reachable Drivers and Protocols:
  * Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.).

================================================================================
4. EXTRACTING FocusSymbols (PREVENTING DILUTION)
================================================================================
When WorthFuzzing=true, you must extract specific kernel functions into FocusSymbols to guide the fuzzer:

- AVOID UBIQUITOUS LIFECYCLE HOT-PATHS:
  Do NOT list generic, ubiquitous functions called by almost every program in the corpus
  (including, but not limited to: general memory allocators and deallocators, page fault
  and trap handlers, or core synchronization primitives; this is not an exhaustive list).
  Listing ubiquitous functions causes the fuzzer to classify thousands of unrelated tests as "focused",
  which severely dilutes fuzzing effort away from the actual changes.

- TARGET SPECIFIC FEATURE LOGIC AND ENTRYPOINTS:
  List functions that specifically implement the logic being added or altered, or direct API entrypoints
  for the subsystem feature under review.

- HANDLING STATIC INLINE FUNCTIONS IN HEADERS (.h):
  Compiler-inlined static functions (such as static inlines in mm/*.h or include/linux/*.h) lack
  distinct symbol addresses in vmlinux and cannot be targeted directly by symbol coverage filters.
  If the changes are primarily in static inline helpers, identify non-static, feature-specific caller
  functions in .c files that exercise them (avoiding ubiquitous lifecycle wrappers).

================================================================================
5. IDENTIFYING EnableConfigs
================================================================================
Identify any specific CONFIG_ options required to properly compile and reach the modified code:
- Inspect Kconfig files and #ifdef guards; do not make assumptions.
- Check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed.
- Strip any 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
Target architecture: amd64

For your convenience, here is the diff of the changes:
commit 6e45468a4ee19f937eb167a6e51175590c74dca6
Author: syz-cluster <triage@syzkaller.com>
Date:   Wed Sep 16 04:48:20 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600.h b/drivers/iio/imu/inv_icm42600/inv_icm42600.h
index f6c7c84c7e45f..e56943931b6a0 100644
--- a/drivers/iio/imu/inv_icm42600/inv_icm42600.h
+++ b/drivers/iio/imu/inv_icm42600/inv_icm42600.h
@@ -179,6 +179,7 @@ struct inv_icm42600_state {
 	struct {
 		s64 gyro;
 		s64 accel;
+		bool accel_force_odr;
 	} timestamp;
 	struct inv_icm42600_apex apex;
 	struct inv_icm42600_fifo fifo;
diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
index 65d29de8ecf9c..cc8c074777c9d 100644
--- a/drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
+++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
@@ -1236,9 +1236,11 @@ int inv_icm42600_accel_parse_fifo(struct iio_dev *indio_dev)
 			return size;
 
 		/* update odr */
-		if (odr & INV_ICM42600_SENSOR_ACCEL)
+		if (odr & INV_ICM42600_SENSOR_ACCEL) {
 			inv_sensors_timestamp_apply_odr(ts, st->fifo.period,
 							st->fifo.nb.total, no);
+			st->timestamp.accel_force_odr = false;
+		}
 
 		/* skip packet if no accel data or data is invalid */
 		if (accel == NULL || !inv_icm42600_fifo_is_data_valid(accel))
@@ -1251,5 +1253,10 @@ int inv_icm42600_accel_parse_fifo(struct iio_dev *indio_dev)
 		iio_push_to_buffers_with_timestamp(indio_dev, &buffer, ts_val);
 	}
 
+	if (st->timestamp.accel_force_odr) {
+		inv_sensors_timestamp_apply_odr(ts, 0, 0, 0);
+		st->timestamp.accel_force_odr = false;
+	}
+
 	return 0;
 }
diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c
index ded45dfe46a25..2bf9fc29d7d29 100644
--- a/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c
+++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c
@@ -384,6 +384,8 @@ static int inv_icm42600_buffer_postdisable(struct iio_dev *indio_dev)
 	mutex_lock(&st->lock);
 
 	inv_sensors_timestamp_apply_odr(ts, 0, 0, 0);
+	if (sensor == INV_ICM42600_SENSOR_ACCEL)
+		st->timestamp.accel_force_odr = false;
 
 	ret = inv_icm42600_buffer_set_fifo_en(st, st->fifo.en & ~sensor);
 	if (ret)
diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c
index be8cbecdd92e4..cd2e53416f5b1 100644
--- a/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c
+++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c
@@ -325,6 +325,15 @@ int inv_icm42600_set_accel_conf(struct inv_icm42600_state *st,
 		break;
 	}
 
+	/*
+	 * If we change mode from low-power to low-noise because of odr,
+	 * we need to force odr change.
+	 */
+	if (oldconf->mode == INV_ICM42600_SENSOR_MODE_LOW_POWER &&
+	    conf->mode == INV_ICM42600_SENSOR_MODE_LOW_NOISE &&
+	    conf->odr != oldconf->odr)
+		st->timestamp.accel_force_odr = true;
+
 	/* set ACCEL_CONFIG0 register (accel fullscale & odr) */
 	if (conf->fs != oldconf->fs || conf->odr != oldconf->odr) {
 		val = INV_ICM42600_ACCEL_CONFIG0_FS(conf->fs) |

3/2 2026/09/16 04:48 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 4233
							output: 47
							thoughts: 70
						

Thoughts:
**Initial Assessment of the ICM42600 Driver Patch**

Okay, so the patch is nestled within `drivers/iio/imu/inv_icm42600/`. My first step, as always, is to quickly determine the driver's core functionality. I need to get a high-level understanding of what we're dealing with here. Is this a full-fledged driver, or a skeleton? Is it already well-integrated, or are there obvious areas for improvement?

To do that efficiently, I'll leverage my usual toolkit. I'll probably fire up `grepper` and search within that directory to get a lay of the land, see what functions and structures are defined, and understand how the driver interfaces with the rest of the system. Alternatively, I might just browse the files directly using `read-file` if the directory structure seems straightforward. The goal is to quickly grasp the driver's architecture and identify the key modules. No need to get bogged down in detail just yet, I'm just after a general overview.



4/2 2026/09/16 04:48 tool grepper
0m Args:
{
  "Expression": "CONFIG_INV_ICM42600",
  "PathPrefix": "drivers/iio/imu/inv_icm42600"
}

Results:
{
  "Output": "drivers/iio/imu/inv_icm42600/Makefile-2-\ndrivers/iio/imu/inv_icm42600/Makefile:3:obj-$(CONFIG_INV_ICM42600) += inv-icm42600.o\ndrivers/iio/imu/inv_icm42600/Makefile-4-inv-icm42600-y += inv_icm42600_core.o\n--\ndrivers/iio/imu/inv_icm42600/Makefile=8=inv-icm42600-y += inv_icm42600_buffer.o\ndrivers/iio/imu/inv_icm42600/Makefile-9-\ndrivers/iio/imu/inv_icm42600/Makefile:10:obj-$(CONFIG_INV_ICM42600_I2C) += inv-icm42600-i2c.o\ndrivers/iio/imu/inv_icm42600/Makefile-11-inv-icm42600-i2c-y += inv_icm42600_i2c.o\ndrivers/iio/imu/inv_icm42600/Makefile-12-\ndrivers/iio/imu/inv_icm42600/Makefile:13:obj-$(CONFIG_INV_ICM42600_SPI) += inv-icm42600-spi.o\ndrivers/iio/imu/inv_icm42600/Makefile-14-inv-icm42600-spi-y += inv_icm42600_spi.o\n"
}

5/2 2026/09/16 04:48 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 5013
							output: 36
							thoughts: 17
						

Thoughts:
Okay, let's dive into this. Here's my take on those thoughts, as if they're my own:

**Analyzing the Kconfig for INV_ICM42600**

Alright, time to crack open the Kconfig file for the INV_ICM42600. I know this sensor pretty well, so my immediate goal is to understand how it's being configured within this specific context. I'm looking for the dependencies, the default settings, and any configurable options. My expertise allows me to quickly zero in on the key aspects: the driver's enabling condition, any platform-specific defines, potential interrupt configurations, and anything related to power management. I want to quickly grasp the implications of any choices made here, understanding how they influence the overall system behavior and what customizations are possible for different use cases. I'll mentally map this against my existing knowledge of the ICM42600's datasheet and common integration practices. Let's see what we've got.



6/2 2026/09/16 04:48 tool grepper
0m Args:
{
  "Expression": "INV_ICM42600",
  "PathPrefix": "drivers/iio/imu/"
}

Results:
{
  "Output": "\nFull output is too long, showing 500 out of 1390 lines.\nUse more precise expression if possible.\n\ndrivers/iio/imu/inv_icm42600/Kconfig-2-\ndrivers/iio/imu/inv_icm42600/Kconfig:3:config INV_ICM42600\ndrivers/iio/imu/inv_icm42600/Kconfig-4-\ttristate\n--\ndrivers/iio/imu/inv_icm42600/Kconfig-7-\ndrivers/iio/imu/inv_icm42600/Kconfig:8:config INV_ICM42600_I2C\ndrivers/iio/imu/inv_icm42600/Kconfig-9-\ttristate \"InvenSense ICM-426xx I2C driver\"\ndrivers/iio/imu/inv_icm42600/Kconfig-10-\tdepends on I2C\ndrivers/iio/imu/inv_icm42600/Kconfig:11:\tselect INV_ICM42600\ndrivers/iio/imu/inv_icm42600/Kconfig-12-\tselect REGMAP_I2C\n--\ndrivers/iio/imu/inv_icm42600/Kconfig-19-\ndrivers/iio/imu/inv_icm42600/Kconfig:20:config INV_ICM42600_SPI\ndrivers/iio/imu/inv_icm42600/Kconfig-21-\ttristate \"InvenSense ICM-426xx SPI driver\"\ndrivers/iio/imu/inv_icm42600/Kconfig-22-\tdepends on SPI_MASTER\ndrivers/iio/imu/inv_icm42600/Kconfig:23:\tselect INV_ICM42600\ndrivers/iio/imu/inv_icm42600/Kconfig-24-\tselect REGMAP_SPI\n--\ndrivers/iio/imu/inv_icm42600/Makefile-2-\ndrivers/iio/imu/inv_icm42600/Makefile:3:obj-$(CONFIG_INV_ICM42600) += inv-icm42600.o\ndrivers/iio/imu/inv_icm42600/Makefile-4-inv-icm42600-y += inv_icm42600_core.o\n--\ndrivers/iio/imu/inv_icm42600/Makefile=8=inv-icm42600-y += inv_icm42600_buffer.o\ndrivers/iio/imu/inv_icm42600/Makefile-9-\ndrivers/iio/imu/inv_icm42600/Makefile:10:obj-$(CONFIG_INV_ICM42600_I2C) += inv-icm42600-i2c.o\ndrivers/iio/imu/inv_icm42600/Makefile-11-inv-icm42600-i2c-y += inv_icm42600_i2c.o\ndrivers/iio/imu/inv_icm42600/Makefile-12-\ndrivers/iio/imu/inv_icm42600/Makefile:13:obj-$(CONFIG_INV_ICM42600_SPI) += inv-icm42600-spi.o\ndrivers/iio/imu/inv_icm42600/Makefile-14-inv-icm42600-spi-y += inv_icm42600_spi.o\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-5-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:6:#ifndef INV_ICM42600_H_\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:7:#define INV_ICM42600_H_\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-8-\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h=35=enum inv_icm42600_slew_rate {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:36:\tINV_ICM42600_SLEW_RATE_20_60NS,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:37:\tINV_ICM42600_SLEW_RATE_12_36NS,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:38:\tINV_ICM42600_SLEW_RATE_6_18NS,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:39:\tINV_ICM42600_SLEW_RATE_4_12NS,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:40:\tINV_ICM42600_SLEW_RATE_2_6NS,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:41:\tINV_ICM42600_SLEW_RATE_INF_2NS,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-42-};\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h=44=enum inv_icm42600_sensor_mode {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:45:\tINV_ICM42600_SENSOR_MODE_OFF,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:46:\tINV_ICM42600_SENSOR_MODE_STANDBY,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:47:\tINV_ICM42600_SENSOR_MODE_LOW_POWER,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:48:\tINV_ICM42600_SENSOR_MODE_LOW_NOISE,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:49:\tINV_ICM42600_SENSOR_MODE_NB,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-50-};\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h=53=enum inv_icm42600_gyro_fs {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:54:\tINV_ICM42600_GYRO_FS_2000DPS,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:55:\tINV_ICM42600_GYRO_FS_1000DPS,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:56:\tINV_ICM42600_GYRO_FS_500DPS,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:57:\tINV_ICM42600_GYRO_FS_250DPS,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:58:\tINV_ICM42600_GYRO_FS_125DPS,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:59:\tINV_ICM42600_GYRO_FS_62_5DPS,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:60:\tINV_ICM42600_GYRO_FS_31_25DPS,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:61:\tINV_ICM42600_GYRO_FS_15_625DPS,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:62:\tINV_ICM42600_GYRO_FS_NB,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-63-};\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h=77=enum inv_icm42600_accel_fs {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:78:\tINV_ICM42600_ACCEL_FS_16G,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:79:\tINV_ICM42600_ACCEL_FS_8G,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:80:\tINV_ICM42600_ACCEL_FS_4G,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:81:\tINV_ICM42600_ACCEL_FS_2G,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:82:\tINV_ICM42600_ACCEL_FS_NB,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-83-};\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h=94=enum inv_icm42600_odr {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:95:\tINV_ICM42600_ODR_8KHZ_LN = 3,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:96:\tINV_ICM42600_ODR_4KHZ_LN,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:97:\tINV_ICM42600_ODR_2KHZ_LN,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:98:\tINV_ICM42600_ODR_1KHZ_LN,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:99:\tINV_ICM42600_ODR_200HZ,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:100:\tINV_ICM42600_ODR_100HZ,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:101:\tINV_ICM42600_ODR_50HZ,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:102:\tINV_ICM42600_ODR_25HZ,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:103:\tINV_ICM42600_ODR_12_5HZ,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:104:\tINV_ICM42600_ODR_6_25HZ_LP,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:105:\tINV_ICM42600_ODR_3_125HZ_LP,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:106:\tINV_ICM42600_ODR_1_5625HZ_LP,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:107:\tINV_ICM42600_ODR_500HZ,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:108:\tINV_ICM42600_ODR_NB,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-109-};\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h=111=enum inv_icm42600_filter {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-112-\t/* Low-Noise mode sensor data filter (3rd order filter by default) */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:113:\tINV_ICM42600_FILTER_BW_ODR_DIV_2,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-114-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-115-\t/* Low-Power mode sensor data filter (averaging) */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:116:\tINV_ICM42600_FILTER_AVG_1X = 1,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:117:\tINV_ICM42600_FILTER_AVG_16X = 6,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-118-};\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h=120=struct inv_icm42600_sensor_conf {\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-125-};\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:126:#define INV_ICM42600_SENSOR_CONF_INIT\t\t{-1, -1, -1, -1}\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-127-\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h=198=struct inv_icm42600_sensor_state {\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-208-/* Bank selection register, available in all banks */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:209:#define INV_ICM42600_REG_BANK_SEL\t\t\t0x76\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:210:#define INV_ICM42600_BANK_SEL_MASK\t\t\tGENMASK(2, 0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-211-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-212-/* User bank 0 (MSB 0x00) */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:213:#define INV_ICM42600_REG_DEVICE_CONFIG\t\t\t0x0011\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:214:#define INV_ICM42600_DEVICE_CONFIG_SOFT_RESET\t\tBIT(0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-215-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:216:#define INV_ICM42600_REG_DRIVE_CONFIG\t\t\t0x0013\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:217:#define INV_ICM42600_DRIVE_CONFIG_I2C_MASK\t\tGENMASK(5, 3)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:218:#define INV_ICM42600_DRIVE_CONFIG_I2C(_rate)\t\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:219:\t\tFIELD_PREP(INV_ICM42600_DRIVE_CONFIG_I2C_MASK, (_rate))\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:220:#define INV_ICM42600_DRIVE_CONFIG_SPI_MASK\t\tGENMASK(2, 0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:221:#define INV_ICM42600_DRIVE_CONFIG_SPI(_rate)\t\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:222:\t\tFIELD_PREP(INV_ICM42600_DRIVE_CONFIG_SPI_MASK, (_rate))\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-223-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:224:#define INV_ICM42600_REG_INT_CONFIG\t\t\t0x0014\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:225:#define INV_ICM42600_INT_CONFIG_INT2_LATCHED\t\tBIT(5)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:226:#define INV_ICM42600_INT_CONFIG_INT2_PUSH_PULL\t\tBIT(4)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:227:#define INV_ICM42600_INT_CONFIG_INT2_ACTIVE_HIGH\tBIT(3)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:228:#define INV_ICM42600_INT_CONFIG_INT2_ACTIVE_LOW\t\t0x00\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:229:#define INV_ICM42600_INT_CONFIG_INT1_LATCHED\t\tBIT(2)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:230:#define INV_ICM42600_INT_CONFIG_INT1_PUSH_PULL\t\tBIT(1)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:231:#define INV_ICM42600_INT_CONFIG_INT1_ACTIVE_HIGH\tBIT(0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:232:#define INV_ICM42600_INT_CONFIG_INT1_ACTIVE_LOW\t\t0x00\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-233-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:234:#define INV_ICM42600_REG_FIFO_CONFIG\t\t\t0x0016\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:235:#define INV_ICM42600_FIFO_CONFIG_MASK\t\t\tGENMASK(7, 6)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:236:#define INV_ICM42600_FIFO_CONFIG_BYPASS\t\t\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:237:\t\tFIELD_PREP(INV_ICM42600_FIFO_CONFIG_MASK, 0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:238:#define INV_ICM42600_FIFO_CONFIG_STREAM\t\t\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:239:\t\tFIELD_PREP(INV_ICM42600_FIFO_CONFIG_MASK, 1)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:240:#define INV_ICM42600_FIFO_CONFIG_STOP_ON_FULL\t\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:241:\t\tFIELD_PREP(INV_ICM42600_FIFO_CONFIG_MASK, 2)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-242-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-243-/* all sensor data are 16 bits (2 registers wide) in big-endian */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:244:#define INV_ICM42600_REG_TEMP_DATA\t\t\t0x001D\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:245:#define INV_ICM42600_REG_ACCEL_DATA_X\t\t\t0x001F\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:246:#define INV_ICM42600_REG_ACCEL_DATA_Y\t\t\t0x0021\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:247:#define INV_ICM42600_REG_ACCEL_DATA_Z\t\t\t0x0023\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:248:#define INV_ICM42600_REG_GYRO_DATA_X\t\t\t0x0025\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:249:#define INV_ICM42600_REG_GYRO_DATA_Y\t\t\t0x0027\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:250:#define INV_ICM42600_REG_GYRO_DATA_Z\t\t\t0x0029\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:251:#define INV_ICM42600_DATA_INVALID\t\t\t-32768\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-252-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:253:#define INV_ICM42600_REG_INT_STATUS\t\t\t0x002D\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:254:#define INV_ICM42600_INT_STATUS_UI_FSYNC\t\tBIT(6)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:255:#define INV_ICM42600_INT_STATUS_PLL_RDY\t\t\tBIT(5)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:256:#define INV_ICM42600_INT_STATUS_RESET_DONE\t\tBIT(4)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:257:#define INV_ICM42600_INT_STATUS_DATA_RDY\t\tBIT(3)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:258:#define INV_ICM42600_INT_STATUS_FIFO_THS\t\tBIT(2)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:259:#define INV_ICM42600_INT_STATUS_FIFO_FULL\t\tBIT(1)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:260:#define INV_ICM42600_INT_STATUS_AGC_RDY\t\t\tBIT(0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-261-\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-266- */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:267:#define INV_ICM42600_REG_FIFO_COUNT\t\t\t0x002E\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:268:#define INV_ICM42600_REG_FIFO_DATA\t\t\t0x0030\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-269-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:270:#define INV_ICM42600_REG_INT_STATUS2\t\t\t0x0037\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:271:#define INV_ICM42600_INT_STATUS2_SMD_INT\t\tBIT(3)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:272:#define INV_ICM42600_INT_STATUS2_WOM_INT\t\tGENMASK(2, 0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-273-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:274:#define INV_ICM42600_REG_INT_STATUS3\t\t\t0x0038\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:275:#define INV_ICM42600_INT_STATUS3_STEP_DET_INT\t\tBIT(5)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:276:#define INV_ICM42600_INT_STATUS3_STEP_CNT_OVF_INT\tBIT(4)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:277:#define INV_ICM42600_INT_STATUS3_TILT_DET_INT\t\tBIT(3)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:278:#define INV_ICM42600_INT_STATUS3_WAKE_INT\t\tBIT(2)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:279:#define INV_ICM42600_INT_STATUS3_SLEEP_INT\t\tBIT(1)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:280:#define INV_ICM42600_INT_STATUS3_TAP_DET_INT\t\tBIT(0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-281-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:282:#define INV_ICM42600_REG_SIGNAL_PATH_RESET\t\t0x004B\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:283:#define INV_ICM42600_SIGNAL_PATH_RESET_DMP_INIT_EN\tBIT(6)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:284:#define INV_ICM42600_SIGNAL_PATH_RESET_DMP_MEM_RESET\tBIT(5)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:285:#define INV_ICM42600_SIGNAL_PATH_RESET_RESET\t\tBIT(3)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:286:#define INV_ICM42600_SIGNAL_PATH_RESET_TMST_STROBE\tBIT(2)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:287:#define INV_ICM42600_SIGNAL_PATH_RESET_FIFO_FLUSH\tBIT(1)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-288-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-289-/* default configuration: all data big-endian and fifo count in bytes */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:290:#define INV_ICM42600_REG_INTF_CONFIG0\t\t\t0x004C\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:291:#define INV_ICM42600_INTF_CONFIG0_FIFO_HOLD_LAST_DATA\tBIT(7)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:292:#define INV_ICM42600_INTF_CONFIG0_FIFO_COUNT_REC\tBIT(6)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:293:#define INV_ICM42600_INTF_CONFIG0_FIFO_COUNT_ENDIAN\tBIT(5)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:294:#define INV_ICM42600_INTF_CONFIG0_SENSOR_DATA_ENDIAN\tBIT(4)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:295:#define INV_ICM42600_INTF_CONFIG0_UI_SIFS_CFG_MASK\tGENMASK(1, 0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:296:#define INV_ICM42600_INTF_CONFIG0_UI_SIFS_CFG_SPI_DIS\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:297:\t\tFIELD_PREP(INV_ICM42600_INTF_CONFIG0_UI_SIFS_CFG_MASK, 2)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:298:#define INV_ICM42600_INTF_CONFIG0_UI_SIFS_CFG_I2C_DIS\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:299:\t\tFIELD_PREP(INV_ICM42600_INTF_CONFIG0_UI_SIFS_CFG_MASK, 3)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-300-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:301:#define INV_ICM42600_REG_INTF_CONFIG1\t\t\t0x004D\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:302:#define INV_ICM42600_INTF_CONFIG1_ACCEL_LP_CLK_RC\tBIT(3)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-303-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:304:#define INV_ICM42600_REG_PWR_MGMT0\t\t\t0x004E\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:305:#define INV_ICM42600_PWR_MGMT0_TEMP_DIS\t\t\tBIT(5)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:306:#define INV_ICM42600_PWR_MGMT0_IDLE\t\t\tBIT(4)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:307:#define INV_ICM42600_PWR_MGMT0_GYRO(_mode)\t\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-308-\t\tFIELD_PREP(GENMASK(3, 2), (_mode))\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:309:#define INV_ICM42600_PWR_MGMT0_ACCEL(_mode)\t\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-310-\t\tFIELD_PREP(GENMASK(1, 0), (_mode))\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-311-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:312:#define INV_ICM42600_REG_GYRO_CONFIG0\t\t\t0x004F\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:313:#define INV_ICM42600_GYRO_CONFIG0_FS(_fs)\t\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-314-\t\tFIELD_PREP(GENMASK(7, 5), (_fs))\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:315:#define INV_ICM42600_GYRO_CONFIG0_ODR(_odr)\t\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-316-\t\tFIELD_PREP(GENMASK(3, 0), (_odr))\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-317-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:318:#define INV_ICM42600_REG_ACCEL_CONFIG0\t\t\t0x0050\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:319:#define INV_ICM42600_ACCEL_CONFIG0_FS(_fs)\t\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-320-\t\tFIELD_PREP(GENMASK(7, 5), (_fs))\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:321:#define INV_ICM42600_ACCEL_CONFIG0_ODR(_odr)\t\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-322-\t\tFIELD_PREP(GENMASK(3, 0), (_odr))\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-323-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:324:#define INV_ICM42600_REG_GYRO_ACCEL_CONFIG0\t\t0x0052\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:325:#define INV_ICM42600_GYRO_ACCEL_CONFIG0_ACCEL_FILT(_f)\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-326-\t\tFIELD_PREP(GENMASK(7, 4), (_f))\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:327:#define INV_ICM42600_GYRO_ACCEL_CONFIG0_GYRO_FILT(_f)\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-328-\t\tFIELD_PREP(GENMASK(3, 0), (_f))\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-329-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:330:#define INV_ICM42600_REG_TMST_CONFIG\t\t\t0x0054\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:331:#define INV_ICM42600_TMST_CONFIG_MASK\t\t\tGENMASK(4, 0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:332:#define INV_ICM42600_TMST_CONFIG_TMST_TO_REGS_EN\tBIT(4)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:333:#define INV_ICM42600_TMST_CONFIG_TMST_RES_16US\t\tBIT(3)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:334:#define INV_ICM42600_TMST_CONFIG_TMST_DELTA_EN\t\tBIT(2)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:335:#define INV_ICM42600_TMST_CONFIG_TMST_FSYNC_EN\t\tBIT(1)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:336:#define INV_ICM42600_TMST_CONFIG_TMST_EN\t\tBIT(0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-337-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:338:#define INV_ICM42600_REG_SMD_CONFIG\t\t\t0x0057\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:339:#define INV_ICM42600_SMD_CONFIG_WOM_INT_MODE\t\tBIT(3)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:340:#define INV_ICM42600_SMD_CONFIG_WOM_MODE\t\tBIT(2)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:341:#define INV_ICM42600_SMD_CONFIG_SMD_MODE_OFF\t\t0x00\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:342:#define INV_ICM42600_SMD_CONFIG_SMD_MODE_WOM\t\t0x01\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:343:#define INV_ICM42600_SMD_CONFIG_SMD_MODE_SHORT\t\t0x02\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:344:#define INV_ICM42600_SMD_CONFIG_SMD_MODE_LONG\t\t0x03\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-345-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:346:#define INV_ICM42600_REG_FIFO_CONFIG1\t\t\t0x005F\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:347:#define INV_ICM42600_FIFO_CONFIG1_RESUME_PARTIAL_RD\tBIT(6)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:348:#define INV_ICM42600_FIFO_CONFIG1_WM_GT_TH\t\tBIT(5)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:349:#define INV_ICM42600_FIFO_CONFIG1_TMST_FSYNC_EN\t\tBIT(3)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:350:#define INV_ICM42600_FIFO_CONFIG1_TEMP_EN\t\tBIT(2)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:351:#define INV_ICM42600_FIFO_CONFIG1_GYRO_EN\t\tBIT(1)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:352:#define INV_ICM42600_FIFO_CONFIG1_ACCEL_EN\t\tBIT(0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-353-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-354-/* FIFO watermark is 16 bits (2 registers wide) in little-endian */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:355:#define INV_ICM42600_REG_FIFO_WATERMARK\t\t\t0x0060\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:356:#define INV_ICM42600_FIFO_WATERMARK_VAL(_wm)\t\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-357-\t\tcpu_to_le16((_wm) \u0026 GENMASK(11, 0))\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-358-/* FIFO is 2048 bytes, let 12 samples for reading latency */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:359:#define INV_ICM42600_FIFO_WATERMARK_MAX\t\t\t(2048 - 12 * 16)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:360:/* INV_ICM42600_FIFO_WATERMARK_MAX / 16 = 116 */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:361:#define INV_ICM42600_FIFO_WATERMARK_MAX_SAMPLES\t\t116\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-362-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:363:#define INV_ICM42600_REG_INT_CONFIG1\t\t\t0x0064\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:364:#define INV_ICM42600_INT_CONFIG1_TPULSE_DURATION\tBIT(6)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:365:#define INV_ICM42600_INT_CONFIG1_TDEASSERT_DISABLE\tBIT(5)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:366:#define INV_ICM42600_INT_CONFIG1_ASYNC_RESET\t\tBIT(4)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-367-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:368:#define INV_ICM42600_REG_INT_SOURCE0\t\t\t0x0065\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:369:#define INV_ICM42600_INT_SOURCE0_UI_FSYNC_INT1_EN\tBIT(6)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:370:#define INV_ICM42600_INT_SOURCE0_PLL_RDY_INT1_EN\tBIT(5)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:371:#define INV_ICM42600_INT_SOURCE0_RESET_DONE_INT1_EN\tBIT(4)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:372:#define INV_ICM42600_INT_SOURCE0_UI_DRDY_INT1_EN\tBIT(3)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:373:#define INV_ICM42600_INT_SOURCE0_FIFO_THS_INT1_EN\tBIT(2)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:374:#define INV_ICM42600_INT_SOURCE0_FIFO_FULL_INT1_EN\tBIT(1)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:375:#define INV_ICM42600_INT_SOURCE0_UI_AGC_RDY_INT1_EN\tBIT(0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-376-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:377:#define INV_ICM42600_REG_INT_SOURCE1\t\t\t0x0066\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:378:#define INV_ICM42600_INT_SOURCE1_I3C_ERROR_INT1_EN\tBIT(6)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:379:#define INV_ICM42600_INT_SOURCE1_SMD_INT1_EN\t\tBIT(3)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:380:#define INV_ICM42600_INT_SOURCE1_WOM_INT1_EN\t\tGENMASK(2, 0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-381-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:382:#define INV_ICM42600_REG_WHOAMI\t\t\t\t0x0075\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:383:#define INV_ICM42600_WHOAMI_ICM42600\t\t\t0x40\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:384:#define INV_ICM42600_WHOAMI_ICM42602\t\t\t0x41\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:385:#define INV_ICM42600_WHOAMI_ICM42605\t\t\t0x42\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:386:#define INV_ICM42600_WHOAMI_ICM42686\t\t\t0x44\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:387:#define INV_ICM42600_WHOAMI_ICM42622\t\t\t0x46\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:388:#define INV_ICM42600_WHOAMI_ICM42688\t\t\t0x47\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:389:#define INV_ICM42600_WHOAMI_ICM42631\t\t\t0x5C\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-390-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-391-/* User bank 1 (MSB 0x10) */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:392:#define INV_ICM42600_REG_SENSOR_CONFIG0\t\t\t0x1003\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:393:#define INV_ICM42600_SENSOR_CONFIG0_ZG_DISABLE\t\tBIT(5)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:394:#define INV_ICM42600_SENSOR_CONFIG0_YG_DISABLE\t\tBIT(4)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:395:#define INV_ICM42600_SENSOR_CONFIG0_XG_DISABLE\t\tBIT(3)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:396:#define INV_ICM42600_SENSOR_CONFIG0_ZA_DISABLE\t\tBIT(2)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:397:#define INV_ICM42600_SENSOR_CONFIG0_YA_DISABLE\t\tBIT(1)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:398:#define INV_ICM42600_SENSOR_CONFIG0_XA_DISABLE\t\tBIT(0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-399-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-400-/* Timestamp value is 20 bits (3 registers) in little-endian */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:401:#define INV_ICM42600_REG_TMSTVAL\t\t\t0x1062\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:402:#define INV_ICM42600_TMSTVAL_MASK\t\t\tGENMASK(19, 0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-403-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:404:#define INV_ICM42600_REG_INTF_CONFIG4\t\t\t0x107A\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:405:#define INV_ICM42600_INTF_CONFIG4_I3C_BUS_ONLY\t\tBIT(6)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:406:#define INV_ICM42600_INTF_CONFIG4_SPI_AP_4WIRE\t\tBIT(1)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-407-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:408:#define INV_ICM42600_REG_INTF_CONFIG6\t\t\t0x107C\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:409:#define INV_ICM42600_INTF_CONFIG6_MASK\t\t\tGENMASK(4, 0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:410:#define INV_ICM42600_INTF_CONFIG6_I3C_EN\t\tBIT(4)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:411:#define INV_ICM42600_INTF_CONFIG6_I3C_IBI_BYTE_EN\tBIT(3)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:412:#define INV_ICM42600_INTF_CONFIG6_I3C_IBI_EN\t\tBIT(2)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:413:#define INV_ICM42600_INTF_CONFIG6_I3C_DDR_EN\t\tBIT(1)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:414:#define INV_ICM42600_INTF_CONFIG6_I3C_SDR_EN\t\tBIT(0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-415-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-416-/* User bank 4 (MSB 0x40) */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:417:#define INV_ICM42600_REG_ACCEL_WOM_X_THR\t\t0x404A\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:418:#define INV_ICM42600_REG_ACCEL_WOM_Y_THR\t\t0x404B\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:419:#define INV_ICM42600_REG_ACCEL_WOM_Z_THR\t\t0x404C\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-420-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:421:#define INV_ICM42600_REG_INT_SOURCE8\t\t\t0x404F\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:422:#define INV_ICM42600_INT_SOURCE8_FSYNC_IBI_EN\t\tBIT(5)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:423:#define INV_ICM42600_INT_SOURCE8_PLL_RDY_IBI_EN\t\tBIT(4)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:424:#define INV_ICM42600_INT_SOURCE8_UI_DRDY_IBI_EN\t\tBIT(3)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:425:#define INV_ICM42600_INT_SOURCE8_FIFO_THS_IBI_EN\tBIT(2)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:426:#define INV_ICM42600_INT_SOURCE8_FIFO_FULL_IBI_EN\tBIT(1)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:427:#define INV_ICM42600_INT_SOURCE8_AGC_RDY_IBI_EN\t\tBIT(0)\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-428-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:429:#define INV_ICM42600_REG_OFFSET_USER0\t\t\t0x4077\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:430:#define INV_ICM42600_REG_OFFSET_USER1\t\t\t0x4078\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:431:#define INV_ICM42600_REG_OFFSET_USER2\t\t\t0x4079\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:432:#define INV_ICM42600_REG_OFFSET_USER3\t\t\t0x407A\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:433:#define INV_ICM42600_REG_OFFSET_USER4\t\t\t0x407B\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:434:#define INV_ICM42600_REG_OFFSET_USER5\t\t\t0x407C\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:435:#define INV_ICM42600_REG_OFFSET_USER6\t\t\t0x407D\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:436:#define INV_ICM42600_REG_OFFSET_USER7\t\t\t0x407E\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:437:#define INV_ICM42600_REG_OFFSET_USER8\t\t\t0x407F\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-438-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-439-/* Sleep times required by the driver */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:440:#define INV_ICM42600_POWER_UP_TIME_MS\t\t100\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:441:#define INV_ICM42600_RESET_TIME_MS\t\t1\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:442:#define INV_ICM42600_ACCEL_STARTUP_TIME_MS\t20\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:443:#define INV_ICM42600_GYRO_STARTUP_TIME_MS\t60\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:444:#define INV_ICM42600_GYRO_STOP_TIME_MS\t\t150\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:445:#define INV_ICM42600_TEMP_STARTUP_TIME_MS\t14\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:446:#define INV_ICM42600_SUSPEND_DELAY_MS\t\t2000\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-447-\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-26-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:27:#define INV_ICM42600_ACCEL_CHAN(_modifier, _index, _ext_info)\t\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-28-\t{\t\t\t\t\t\t\t\t\\\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-53-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:54:#define INV_ICM42600_ACCEL_EVENT_CHAN(_modifier, _events, _events_nb)\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-55-\t{\t\t\t\t\t\t\t\t\\\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c=64=enum inv_icm42600_accel_scan {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:65:\tINV_ICM42600_ACCEL_SCAN_X,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:66:\tINV_ICM42600_ACCEL_SCAN_Y,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:67:\tINV_ICM42600_ACCEL_SCAN_Z,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:68:\tINV_ICM42600_ACCEL_SCAN_TEMP,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:69:\tINV_ICM42600_ACCEL_SCAN_TIMESTAMP,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-70-};\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c=76=static const int inv_icm42600_accel_power_mode_values[] = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:77:\tINV_ICM42600_SENSOR_MODE_LOW_NOISE,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:78:\tINV_ICM42600_SENSOR_MODE_LOW_POWER,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-79-};\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c=80=static const int inv_icm42600_accel_filter_values[] = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:81:\tINV_ICM42600_FILTER_BW_ODR_DIV_2,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:82:\tINV_ICM42600_FILTER_AVG_16X,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-83-};\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c=85=static int inv_icm42600_accel_power_mode_set(struct iio_dev *indio_dev,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-104-\t/* cannot change if accel sensor is on */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:105:\tif (st-\u003econf.accel.mode != INV_ICM42600_SENSOR_MODE_OFF)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-106-\t\treturn -EBUSY;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-109-\tswitch (power_mode) {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:110:\tcase INV_ICM42600_SENSOR_MODE_LOW_NOISE:\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:111:\t\tif (st-\u003econf.accel.odr \u003e= INV_ICM42600_ODR_6_25HZ_LP \u0026\u0026\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:112:\t\t    st-\u003econf.accel.odr \u003c= INV_ICM42600_ODR_1_5625HZ_LP)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-113-\t\t\treturn -EPERM;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-114-\t\tbreak;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:115:\tcase INV_ICM42600_SENSOR_MODE_LOW_POWER:\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-116-\tdefault:\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:117:\t\tif (st-\u003econf.accel.odr \u003c= INV_ICM42600_ODR_1KHZ_LN)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-118-\t\t\treturn -EPERM;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c=128=static int inv_icm42600_accel_power_mode_get(struct iio_dev *indio_dev,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-142-\tswitch (st-\u003econf.accel.mode) {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:143:\tcase INV_ICM42600_SENSOR_MODE_LOW_POWER:\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:144:\tcase INV_ICM42600_SENSOR_MODE_LOW_NOISE:\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-145-\t\tpower_mode = st-\u003econf.accel.mode;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c=188=static const struct iio_chan_spec inv_icm42600_accel_channels[] = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:189:\tINV_ICM42600_ACCEL_CHAN(IIO_MOD_X, INV_ICM42600_ACCEL_SCAN_X,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-190-\t\t\t\tinv_icm42600_accel_ext_infos),\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:191:\tINV_ICM42600_ACCEL_CHAN(IIO_MOD_Y, INV_ICM42600_ACCEL_SCAN_Y,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-192-\t\t\t\tinv_icm42600_accel_ext_infos),\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:193:\tINV_ICM42600_ACCEL_CHAN(IIO_MOD_Z, INV_ICM42600_ACCEL_SCAN_Z,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-194-\t\t\t\tinv_icm42600_accel_ext_infos),\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:195:\tINV_ICM42600_TEMP_CHAN(INV_ICM42600_ACCEL_SCAN_TEMP),\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:196:\tIIO_CHAN_SOFT_TIMESTAMP(INV_ICM42600_ACCEL_SCAN_TIMESTAMP),\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:197:\tINV_ICM42600_ACCEL_EVENT_CHAN(IIO_MOD_X_OR_Y_OR_Z, inv_icm42600_wom_events,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-198-\t\t\t\t      ARRAY_SIZE(inv_icm42600_wom_events)),\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c=205=struct inv_icm42600_accel_buffer {\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-210-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:211:#define INV_ICM42600_SCAN_MASK_ACCEL_3AXIS\t\t\t\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:212:\t(BIT(INV_ICM42600_ACCEL_SCAN_X) |\t\t\t\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:213:\tBIT(INV_ICM42600_ACCEL_SCAN_Y) |\t\t\t\t\\\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:214:\tBIT(INV_ICM42600_ACCEL_SCAN_Z))\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-215-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:216:#define INV_ICM42600_SCAN_MASK_TEMP\tBIT(INV_ICM42600_ACCEL_SCAN_TEMP)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-217-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c=218=static const unsigned long inv_icm42600_accel_scan_masks[] = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-219-\t/* 3-axis accel + temperature */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:220:\tINV_ICM42600_SCAN_MASK_ACCEL_3AXIS | INV_ICM42600_SCAN_MASK_TEMP,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-221-\t0,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c=225=static int inv_icm42600_accel_update_scan_mode(struct iio_dev *indio_dev,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-229-\tstruct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:230:\tstruct inv_icm42600_sensor_conf conf = INV_ICM42600_SENSOR_CONF_INIT;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-231-\tunsigned int fifo_en = 0;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-238-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:239:\tif (*scan_mask \u0026 INV_ICM42600_SCAN_MASK_TEMP) {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-240-\t\t/* enable temp sensor */\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-243-\t\t\tgoto out_unlock;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:244:\t\tfifo_en |= INV_ICM42600_SENSOR_TEMP;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-245-\t}\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-246-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:247:\tif (*scan_mask \u0026 INV_ICM42600_SCAN_MASK_ACCEL_3AXIS) {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-248-\t\t/* enable accel sensor */\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-253-\t\t\tgoto out_unlock;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:254:\t\tfifo_en |= INV_ICM42600_SENSOR_ACCEL;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-255-\t}\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c=277=static int inv_icm42600_accel_read_sensor(struct iio_dev *indio_dev,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-283-\tstruct device *dev = regmap_get_device(st-\u003emap);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:284:\tstruct inv_icm42600_sensor_conf conf = INV_ICM42600_SENSOR_CONF_INIT;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-285-\tunsigned int reg;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-293-\tcase IIO_MOD_X:\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:294:\t\treg = INV_ICM42600_REG_ACCEL_DATA_X;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-295-\t\tbreak;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-296-\tcase IIO_MOD_Y:\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:297:\t\treg = INV_ICM42600_REG_ACCEL_DATA_Y;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-298-\t\tbreak;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-299-\tcase IIO_MOD_Z:\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:300:\t\treg = INV_ICM42600_REG_ACCEL_DATA_Z;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-301-\t\tbreak;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-322-\t*val = (s16)be16_to_cpup(data);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:323:\tif (*val == INV_ICM42600_DATA_INVALID)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-324-\t\tret = -EINVAL;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c=365=static int inv_icm42600_accel_set_wom_threshold(struct inv_icm42600_state *st,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-381-\tst-\u003ebuffer[2] = threshold;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:382:\tret = regmap_bulk_write(st-\u003emap, INV_ICM42600_REG_ACCEL_WOM_X_THR, st-\u003ebuffer, 3);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-383-\tif (ret)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c=391=static int _inv_icm42600_accel_enable_wom(struct iio_dev *indio_dev)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-394-\tstruct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:395:\tstruct inv_icm42600_sensor_conf conf = INV_ICM42600_SENSOR_CONF_INIT;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-396-\tunsigned int sleep_ms = 0;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c=442=static int _inv_icm42600_accel_disable_wom(struct iio_dev *indio_dev)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-444-\tstruct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:445:\tstruct inv_icm42600_sensor_conf conf = INV_ICM42600_SENSOR_CONF_INIT;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-446-\tunsigned int sleep_ms = 0;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-462-\t\tif (!st-\u003eapex.on \u0026\u0026 !iio_buffer_enabled(indio_dev)) {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:463:\t\t\tconf.mode = INV_ICM42600_SENSOR_MODE_OFF;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-464-\t\t\tret = inv_icm42600_set_accel_conf(st, \u0026conf, \u0026sleep_ms);\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c=490=void inv_icm42600_accel_handle_events(struct iio_dev *indio_dev,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-497-\t/* handle WoM event */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:498:\tif (st-\u003eapex.wom.enable \u0026\u0026 (status2 \u0026 INV_ICM42600_INT_STATUS2_WOM_INT)) {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-499-\t\tev_code = IIO_MOD_EVENT_CODE(IIO_ACCEL, 0, IIO_MOD_X_OR_Y_OR_Z,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c=506=static const int inv_icm42600_accel_scale[] = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-507-\t/* +/- 16G =\u003e 0.004788403 m/s-2 */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:508:\t[2 * INV_ICM42600_ACCEL_FS_16G] = 0,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:509:\t[2 * INV_ICM42600_ACCEL_FS_16G + 1] = 4788403,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-510-\t/* +/- 8G =\u003e 0.002394202 m/s-2 */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:511:\t[2 * INV_ICM42600_ACCEL_FS_8G] = 0,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:512:\t[2 * INV_ICM42600_ACCEL_FS_8G + 1] = 2394202,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-513-\t/* +/- 4G =\u003e 0.001197101 m/s-2 */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:514:\t[2 * INV_ICM42600_ACCEL_FS_4G] = 0,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:515:\t[2 * INV_ICM42600_ACCEL_FS_4G + 1] = 1197101,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-516-\t/* +/- 2G =\u003e 0.000598550 m/s-2 */\n\n"
}

7/2 2026/09/16 04:48 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 29759
							output: 49
							thoughts: 530
						

Thoughts:
**Reachability Analysis for the ICM42600 Driver**

Okay, let's break this down. My initial thought is to figure out if `drivers/iio/imu/inv_icm42600/` is reachable by syzkaller. First, I need to understand how the ICM42600 is instantiated – is it I2C or SPI? Crucially, can syzkaller even *handle* I2C or SPI device instantiation?

Now, can userspace create these I2C devices via `/dev/i2c-X` using things like `I2C_SLAVE` or `I2C_NEW_DEVICE`, or even through sysfs with `new_device`? Same question for SPI. I need to know if syzkaller has support, or if there's some general virtual bus reachability here. Specifically, does syzkaller have `sys_i2c_new_device` or anything related to sysfs instantiation?

Hold on. Let me go back to the prompt's instructions. "REACHABILITY IS THE PRIMARY GATE" – right, fuzzing is only useful for code that *executes* in a standard virtualized environment like GCE or QEMU, using software-emulated devices. Unreachable code is a waste of time. The negative criteria section is key here: things like vendor-specific PCIe cards are out, but virtual buses like virtio, USB gadget, etc., are in.

So, *can* I2C/SPI accelerometers/IMUs be reached in syzkaller? That's the core question. Does QEMU even emulate the ICM42600, or just basic i2c-dev functionality? Even *if* I can instantiate an I2C client via `/sys/bus/i2c/devices/i2c-X/new_device` or the `I2C_SLAVE` ioctl, what happens when the I2C device probes? That's where the real answer lies. I should look at `inv_icm42600_core.c` and specifically the probe function. That should tell the story.



8/2 2026/09/16 04:48 tool grepper
0m Args:
{
  "Expression": "inv_icm42600_core_probe",
  "PathPrefix": "drivers/iio/imu/inv_icm42600"
}

Results:
{
  "Output": "drivers/iio/imu/inv_icm42600/inv_icm42600.h=474=int inv_icm42600_debugfs_reg(struct iio_dev *indio_dev, unsigned int reg,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-476-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:477:int inv_icm42600_core_probe(struct regmap *regmap, int chip,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-478-\t\t\t    inv_icm42600_bus_setup bus_setup);\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c=715=static void inv_icm42600_disable_vddio_reg(void *_data)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c-725-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c:726:int inv_icm42600_core_probe(struct regmap *regmap, int chip,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c-727-\t\t\t    inv_icm42600_bus_setup bus_setup)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c-825-}\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c:826:EXPORT_SYMBOL_NS_GPL(inv_icm42600_core_probe, \"IIO_ICM42600\");\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c-827-\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c=51=static int inv_icm42600_probe(struct i2c_client *client)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c-68-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c:69:\treturn inv_icm42600_core_probe(regmap, chip, inv_icm42600_i2c_bus_setup);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c-70-}\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_spi.c=50=static int inv_icm42600_probe(struct spi_device *spi)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_spi.c-65-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_spi.c:66:\treturn inv_icm42600_core_probe(regmap, chip, inv_icm42600_spi_bus_setup);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_spi.c-67-}\n"
}

9/2 2026/09/16 04:48 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 31805
							output: 58
							thoughts: 19
						

Thoughts:
Okay, here's my interpretation of that thought process, tailored for an expert audience, and presented as if it were my own internal monologue:

**Diving into the `inv_icm42600_core_probe` Function**

Alright, time to dig in. The `inv_icm42600_core_probe` function is where the rubber meets the road, the core of how we're going to interact with this ICM-42600. I need to understand this probe function intimately. What's the sequence of events here? What are the key checks and initializations happening? Are there any potential gotchas lurking in the logic that I should be immediately aware of?

I'm specifically looking for:

*   **Initialization Sequence:** What's the order of operations? Power-up, I2C/SPI setup, register reads, etc.? Are we following the recommended startup sequence outlined in the datasheet?
*   **Error Handling:** How robust is the error handling? Are we checking return codes from all the critical function calls? Are there appropriate timeouts in place? A single missed bit can cause weird behavior that is hard to debug.
*   **Register Configuration:** What registers are we configuring? What default values are we using? Are there any device-specific settings we need to tweak for optimal performance or power consumption in our specific application?
*   **Device Identification:** Are we verifying the device ID correctly to ensure we're talking to the expected ICM-42600 (and not a similar device with a different register map)? This is always the first thing you want to look at. A misidentified device can waste a lot of time.
*   **Interrupt Configuration:** Are we configuring any interrupts? If so, which ones? How are we setting up the interrupt pin polarity and mode? Are we checking if we're dealing with a wired-OR or dedicated interrupt?
*   **Dependencies:** What other functions or data structures does this probe function depend on? Are there any external configurations that need to be in place before calling `inv_icm42600_core_probe`? Any assumptions?
*   **Resource Management:** How are we managing resources? Are we allocating and freeing memory/I2C/SPI bus handles correctly? Any potential memory leaks or race conditions?
*   **Platform Specifics**: Are there any platform specific optimizations that have been implemented?

I need to get a clear picture of its behavior. Knowing the answers to these questions will be crucial for integrating this sensor into my system seamlessly and troubleshooting any potential issues down the line. I'll approach this with a critical eye, looking for potential vulnerabilities and areas for optimization. Time to get my hands dirty.



10/2 2026/09/16 04:48 tool read-file
0m Args:
{
  "File": "drivers/iio/imu/inv_icm42600/inv_icm42600_core.c",
  "FirstLine": 726,
  "LineCount": 80
}

Results:
{
  "Contents": " 726:\tint inv_icm42600_core_probe(struct regmap *regmap, int chip,\n 727:\t\t\t\t    inv_icm42600_bus_setup bus_setup)\n 728:\t{\n 729:\t\tstruct device *dev = regmap_get_device(regmap);\n 730:\t\tstruct fwnode_handle *fwnode = dev_fwnode(dev);\n 731:\t\tstruct inv_icm42600_state *st;\n 732:\t\tint irq, irq_type;\n 733:\t\tbool open_drain;\n 734:\t\tint ret;\n 735:\t\n 736:\t\tif (chip \u003c= INV_CHIP_INVALID || chip \u003e= INV_CHIP_NB) {\n 737:\t\t\tdev_err(dev, \"invalid chip = %d\\n\", chip);\n 738:\t\t\treturn -ENODEV;\n 739:\t\t}\n 740:\t\n 741:\t\t/* get INT1 only supported interrupt or fallback to first interrupt */\n 742:\t\tirq = fwnode_irq_get_byname(fwnode, \"INT1\");\n 743:\t\tif (irq \u003c 0 \u0026\u0026 irq != -EPROBE_DEFER) {\n 744:\t\t\tdev_info(dev, \"no INT1 interrupt defined, fallback to first interrupt\\n\");\n 745:\t\t\tirq = fwnode_irq_get(fwnode, 0);\n 746:\t\t}\n 747:\t\tif (irq \u003c 0)\n 748:\t\t\treturn dev_err_probe(dev, irq, \"error missing INT1 interrupt\\n\");\n 749:\t\n 750:\t\tirq_type = irq_get_trigger_type(irq);\n 751:\t\tif (!irq_type)\n 752:\t\t\tirq_type = IRQF_TRIGGER_FALLING;\n 753:\t\n 754:\t\topen_drain = device_property_read_bool(dev, \"drive-open-drain\");\n 755:\t\n 756:\t\tst = devm_kzalloc(dev, sizeof(*st), GFP_KERNEL);\n 757:\t\tif (!st)\n 758:\t\t\treturn -ENOMEM;\n 759:\t\n 760:\t\tdev_set_drvdata(dev, st);\n 761:\t\tmutex_init(\u0026st-\u003elock);\n 762:\t\tst-\u003echip = chip;\n 763:\t\tst-\u003emap = regmap;\n 764:\t\tst-\u003eirq = irq;\n 765:\t\n 766:\t\tret = iio_read_mount_matrix(dev, \u0026st-\u003eorientation);\n 767:\t\tif (ret) {\n 768:\t\t\tdev_err(dev, \"failed to retrieve mounting matrix %d\\n\", ret);\n 769:\t\t\treturn ret;\n 770:\t\t}\n 771:\t\n 772:\t\tret = devm_regulator_get_enable(dev, \"vdd\");\n 773:\t\tif (ret)\n 774:\t\t\treturn dev_err_probe(dev, ret,\n 775:\t\t\t\t\t     \"Failed to get vdd regulator\\n\");\n 776:\t\n 777:\t\tmsleep(INV_ICM42600_POWER_UP_TIME_MS);\n 778:\t\n 779:\t\tst-\u003evddio_supply = devm_regulator_get(dev, \"vddio\");\n 780:\t\tif (IS_ERR(st-\u003evddio_supply))\n 781:\t\t\treturn PTR_ERR(st-\u003evddio_supply);\n 782:\t\n 783:\t\tret = inv_icm42600_enable_regulator_vddio(st);\n 784:\t\tif (ret)\n 785:\t\t\treturn ret;\n 786:\t\n 787:\t\tret = devm_add_action_or_reset(dev, inv_icm42600_disable_vddio_reg, st);\n 788:\t\tif (ret)\n 789:\t\t\treturn ret;\n 790:\t\n 791:\t\t/* setup chip registers */\n 792:\t\tret = inv_icm42600_setup(st, bus_setup);\n 793:\t\tif (ret)\n 794:\t\t\treturn ret;\n 795:\t\n 796:\t\tret = inv_icm42600_timestamp_setup(st);\n 797:\t\tif (ret)\n 798:\t\t\treturn ret;\n 799:\t\n 800:\t\tret = inv_icm42600_buffer_init(st);\n 801:\t\tif (ret)\n 802:\t\t\treturn ret;\n 803:\t\n 804:\t\tst-\u003eindio_gyro = inv_icm42600_gyro_init(st);\n 805:\t\tif (IS_ERR(st-\u003eindio_gyro))\n"
}

11/2 2026/09/16 04:48 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 33781
							output: 58
							thoughts: 200
						

Thoughts:
**Analyzing Interrupt Handling in the inv_icm42600 Driver**

Okay, let's dive into this interrupt handling. Line 742...right, `irq = fwnode_irq_get_byname(fwnode, "INT1");`. That's the primary interrupt request, using the named interrupt "INT1." Now, the conditional check: `if (irq < 0 && irq != -EPROBE_DEFER)`. It's getting the primary interrupt using a name, and if it fails AND it's not a deferral error, it tries a default, generic interrupt using `fwnode_irq_get(fwnode, 0)`. Smart, it defaults to the first interrupt if the named one isn't found, but that also suggests that we can use both. If THAT fails... `if (irq < 0) return dev_err_probe(dev, irq, "error missing INT1 interrupt\n");` ...then we have a hard failure.

Wait a second, let me zoom out. Is this device related to the syzkaller fuzzing of IIO or I2C devices? My instinct says it's an IIO device, but a quick reminder is needed.

Alright, back on track, I see `inv_icm42600_setup(st, bus_setup);` further up in the code. What's `inv_icm42600_setup` doing, specifically? I need to understand the device setup procedure to fully grasp how the interrupt is used in context. Let's go look at lines 630-720 in `inv_icm42600_core.c` and figure that out.



12/2 2026/09/16 04:48 tool read-file
0m Args:
{
  "File": "drivers/iio/imu/inv_icm42600/inv_icm42600_core.c",
  "FirstLine": 630,
  "LineCount": 80
}

Results:
{
  "Contents": " 630:\tout_unlock:\n 631:\t\tmutex_unlock(\u0026st-\u003elock);\n 632:\t\treturn IRQ_HANDLED;\n 633:\t}\n 634:\t\n 635:\t/**\n 636:\t * inv_icm42600_irq_init() - initialize int pin and interrupt handler\n 637:\t * @st:\t\tdriver internal state\n 638:\t * @irq:\tirq number\n 639:\t * @irq_type:\tirq trigger type\n 640:\t * @open_drain:\ttrue if irq is open drain, false for push-pull\n 641:\t *\n 642:\t * Returns 0 on success, a negative error code otherwise.\n 643:\t */\n 644:\tstatic int inv_icm42600_irq_init(struct inv_icm42600_state *st, int irq,\n 645:\t\t\t\t\t int irq_type, bool open_drain)\n 646:\t{\n 647:\t\tstruct device *dev = regmap_get_device(st-\u003emap);\n 648:\t\tunsigned int val;\n 649:\t\tint ret;\n 650:\t\n 651:\t\t/* configure INT1 interrupt: default is active low on edge */\n 652:\t\tswitch (irq_type) {\n 653:\t\tcase IRQF_TRIGGER_RISING:\n 654:\t\tcase IRQF_TRIGGER_HIGH:\n 655:\t\t\tval = INV_ICM42600_INT_CONFIG_INT1_ACTIVE_HIGH;\n 656:\t\t\tbreak;\n 657:\t\tdefault:\n 658:\t\t\tval = INV_ICM42600_INT_CONFIG_INT1_ACTIVE_LOW;\n 659:\t\t\tbreak;\n 660:\t\t}\n 661:\t\n 662:\t\tswitch (irq_type) {\n 663:\t\tcase IRQF_TRIGGER_LOW:\n 664:\t\tcase IRQF_TRIGGER_HIGH:\n 665:\t\t\tval |= INV_ICM42600_INT_CONFIG_INT1_LATCHED;\n 666:\t\t\tbreak;\n 667:\t\tdefault:\n 668:\t\t\tbreak;\n 669:\t\t}\n 670:\t\n 671:\t\tif (!open_drain)\n 672:\t\t\tval |= INV_ICM42600_INT_CONFIG_INT1_PUSH_PULL;\n 673:\t\n 674:\t\tret = regmap_write(st-\u003emap, INV_ICM42600_REG_INT_CONFIG, val);\n 675:\t\tif (ret)\n 676:\t\t\treturn ret;\n 677:\t\n 678:\t\t/* Deassert async reset for proper INT pin operation (cf datasheet) */\n 679:\t\tret = regmap_clear_bits(st-\u003emap, INV_ICM42600_REG_INT_CONFIG1,\n 680:\t\t\t\t\tINV_ICM42600_INT_CONFIG1_ASYNC_RESET);\n 681:\t\tif (ret)\n 682:\t\t\treturn ret;\n 683:\t\n 684:\t\tirq_type |= IRQF_ONESHOT;\n 685:\t\treturn devm_request_threaded_irq(dev, irq, inv_icm42600_irq_timestamp,\n 686:\t\t\t\t\t\t inv_icm42600_irq_handler, irq_type,\n 687:\t\t\t\t\t\t \"inv_icm42600\", st);\n 688:\t}\n 689:\t\n 690:\tstatic int inv_icm42600_timestamp_setup(struct inv_icm42600_state *st)\n 691:\t{\n 692:\t\tunsigned int val;\n 693:\t\n 694:\t\t/* enable timestamp register */\n 695:\t\tval = INV_ICM42600_TMST_CONFIG_TMST_TO_REGS_EN |\n 696:\t\t      INV_ICM42600_TMST_CONFIG_TMST_EN;\n 697:\t\treturn regmap_update_bits(st-\u003emap, INV_ICM42600_REG_TMST_CONFIG,\n 698:\t\t\t\t\t  INV_ICM42600_TMST_CONFIG_MASK, val);\n 699:\t}\n 700:\t\n 701:\tstatic int inv_icm42600_enable_regulator_vddio(struct inv_icm42600_state *st)\n 702:\t{\n 703:\t\tint ret;\n 704:\t\n 705:\t\tret = regulator_enable(st-\u003evddio_supply);\n 706:\t\tif (ret)\n 707:\t\t\treturn ret;\n 708:\t\n 709:\t\t/* wait a little for supply ramp */\n"
}

13/2 2026/09/16 04:48 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 35742
							output: 58
							thoughts: 18
						

Thoughts:
Okay, let's dive into this `inv_icm42600_setup` function. Here's what I'm thinking as I look at it:

**Deconstructing `inv_icm42600_setup`**

Alright, so I need to understand what this setup function for the ICM-42600 is doing. My immediate thought is, "What are the key initializations and configurations this function is responsible for?" I'm expecting to see things like:

*   **Register Writes:** Definitely expecting register writes to configure the sensor's operating modes, data rates, full-scale ranges (gyros and accel), interrupt settings, and possibly some power management. Gotta ensure that those crucial registers are setup appropriately, so they function as required.
*   **Sensor Calibration (if applicable):** I'll be keeping an eye out for any calibration routines. Does it handle factory calibration data or allow for user calibration?
*   **Initialization Sequence:** It's important to verify that there is a defined and correct initialization sequence, the sensor needs to be brought online correctly.
*   **Error Handling:** The real question is, is there any error checking or handling within this setup? We need to make sure that the sensor is working properly after it is initialized.
*   **Data Ready Interrupts:** I'd like to see how the data ready interrupts are being configured, so I can start to think about the interrupt handling later down the code.

Basically, I want to confirm that this function sets the ICM-42600 up to collect raw data, and maybe, if it's super fancy, do some basic filtering or orientation calculations. I'm going to start by looking for those register write patterns and see what's being tweaked.



14/2 2026/09/16 04:48 tool read-file
0m Args:
{
  "File": "drivers/iio/imu/inv_icm42600/inv_icm42600_core.c",
  "FirstLine": 580,
  "LineCount": 50
}

Results:
{
  "Contents": " 580:\t\tstruct inv_icm42600_state *st = _data;\n 581:\t\n 582:\t\tst-\u003etimestamp.gyro = iio_get_time_ns(st-\u003eindio_gyro);\n 583:\t\tst-\u003etimestamp.accel = iio_get_time_ns(st-\u003eindio_accel);\n 584:\t\n 585:\t\treturn IRQ_WAKE_THREAD;\n 586:\t}\n 587:\t\n 588:\tstatic irqreturn_t inv_icm42600_irq_handler(int irq, void *_data)\n 589:\t{\n 590:\t\tstruct inv_icm42600_state *st = _data;\n 591:\t\tstruct device *dev = regmap_get_device(st-\u003emap);\n 592:\t\tunsigned int status;\n 593:\t\tint ret;\n 594:\t\n 595:\t\tmutex_lock(\u0026st-\u003elock);\n 596:\t\n 597:\t\tif (st-\u003eapex.on) {\n 598:\t\t\tunsigned int status2, status3;\n 599:\t\n 600:\t\t\t/* read INT_STATUS2 and INT_STATUS3 in 1 operation */\n 601:\t\t\tret = regmap_bulk_read(st-\u003emap, INV_ICM42600_REG_INT_STATUS2, st-\u003ebuffer, 2);\n 602:\t\t\tif (ret)\n 603:\t\t\t\tgoto out_unlock;\n 604:\t\t\tstatus2 = st-\u003ebuffer[0];\n 605:\t\t\tstatus3 = st-\u003ebuffer[1];\n 606:\t\t\tinv_icm42600_accel_handle_events(st-\u003eindio_accel, status2, status3,\n 607:\t\t\t\t\t\t\t st-\u003etimestamp.accel);\n 608:\t\t}\n 609:\t\n 610:\t\tret = regmap_read(st-\u003emap, INV_ICM42600_REG_INT_STATUS, \u0026status);\n 611:\t\tif (ret)\n 612:\t\t\tgoto out_unlock;\n 613:\t\n 614:\t\t/* FIFO full */\n 615:\t\tif (status \u0026 INV_ICM42600_INT_STATUS_FIFO_FULL)\n 616:\t\t\tdev_warn(dev, \"FIFO full data lost!\\n\");\n 617:\t\n 618:\t\t/* FIFO threshold reached */\n 619:\t\tif (status \u0026 INV_ICM42600_INT_STATUS_FIFO_THS) {\n 620:\t\t\tret = inv_icm42600_buffer_fifo_read(st, 0);\n 621:\t\t\tif (ret) {\n 622:\t\t\t\tdev_err(dev, \"FIFO read error %d\\n\", ret);\n 623:\t\t\t\tgoto out_unlock;\n 624:\t\t\t}\n 625:\t\t\tret = inv_icm42600_buffer_fifo_parse(st);\n 626:\t\t\tif (ret)\n 627:\t\t\t\tdev_err(dev, \"FIFO parsing error %d\\n\", ret);\n 628:\t\t}\n 629:\t\n"
}

15/2 2026/09/16 04:48 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 37048
							output: 47
							thoughts: 21
						

Thoughts:
Here's my attempt at summarizing the thought process, tailored for an expert audience:

**Tracing the ICM42600 Setup**

Okay, so I need to understand how the ICM42600 IMU is being configured. The starting point is obviously the `inv_icm42600_setup` function. The first thing I'm going to do is figure out where *that* function is defined. This is a pretty fundamental step; I can't analyze its behavior without knowing its signature and implementation. Knowing the definition gives the context, and where any external dependencies are. I want to see how the registers are being set, what parameters are being passed, and what underlying drivers or libraries it relies on. I'll need to know which module or header file contains the definition so I can start dissecting the initialization sequence. Let's dig in.



16/2 2026/09/16 04:48 tool grepper
0m Args:
{
  "Expression": "inv_icm42600_setup",
  "PathPrefix": "drivers/iio/imu/inv_icm42600"
}

Results:
{
  "Output": "drivers/iio/imu/inv_icm42600/inv_icm42600_core.c=461=static int inv_icm42600_set_conf(struct inv_icm42600_state *st,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c-503-/**\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c:504: *  inv_icm42600_setup() - check and setup chip\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c-505- *  @st:\tdriver internal state\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c-509- */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c:510:static int inv_icm42600_setup(struct inv_icm42600_state *st,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c-511-\t\t\t      inv_icm42600_bus_setup bus_setup)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c=726=int inv_icm42600_core_probe(struct regmap *regmap, int chip,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c-791-\t/* setup chip registers */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c:792:\tret = inv_icm42600_setup(st, bus_setup);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_core.c-793-\tif (ret)\n"
}

17/2 2026/09/16 04:48 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 37883
							output: 58
							thoughts: 17
						

Thoughts:
Okay, here's my interpretation of that thought process, assuming I'm deep in my domain expertise:

**Diving into the `inv_icm42600_setup` Function**

Alright, `inv_icm42600_setup`. Time to get into the weeds. My first thought is, "What's the scope here? What's it setting up exactly?" Is this the bare-bones initialization, or are we talking about a complete sensor configuration, including things like interrupt routing, data filtering, and power management modes? I need to quickly ascertain the function's responsibility to understand where to focus my attention.

I'm instantly looking for the register writes. Is it just configuring the basic clocks and enabling the sensor, or are there more advanced settings involved? I expect to see the typical sequence: reset the device (if applicable), configure the control registers, enable the data ready interrupt (probably), and then maybe set up any internal FIFO if that’s part of the implementation. I'm keen to see if they're handling things like sensor orientation compensation or temperature offset corrections within this setup routine, because that would have significant implications on how I interact with it later. I hope there's good commenting. I'm particularly interested in any power mode settings that might be present, I want to see if the device goes into a low power state by default, and I need to check to see what the impact is on data throughput.

Essentially, I need to understand this function's role in the larger system architecture. Is it called once at startup, or does it get called repeatedly? Are there dependencies on other initialization routines? Knowing all that, I can evaluate the design, spot any potential bottlenecks, and ensure it integrates cleanly with my existing Kalman filter or whatever higher-level processing I'm doing. So let's see what's what...



18/2 2026/09/16 04:49 tool read-file
0m Args:
{
  "File": "drivers/iio/imu/inv_icm42600/inv_icm42600_core.c",
  "FirstLine": 510,
  "LineCount": 40
}

Results:
{
  "Contents": " 510:\tstatic int inv_icm42600_setup(struct inv_icm42600_state *st,\n 511:\t\t\t\t      inv_icm42600_bus_setup bus_setup)\n 512:\t{\n 513:\t\tconst struct inv_icm42600_hw *hw = \u0026inv_icm42600_hw[st-\u003echip];\n 514:\t\tconst struct device *dev = regmap_get_device(st-\u003emap);\n 515:\t\tunsigned int val;\n 516:\t\tint ret;\n 517:\t\n 518:\t\t/* check chip self-identification value */\n 519:\t\tret = regmap_read(st-\u003emap, INV_ICM42600_REG_WHOAMI, \u0026val);\n 520:\t\tif (ret)\n 521:\t\t\treturn ret;\n 522:\t\n 523:\t\t/*\n 524:\t\t * SPI interface has no ack mechanism.\n 525:\t\t * 0xFF or 0x00 whoami means no response from the device.\n 526:\t\t */\n 527:\t\tif (val == U8_MAX || val == 0)\n 528:\t\t\treturn dev_err_probe(dev, -ENODEV,\n 529:\t\t\t\t\t     \"invalid whoami %#04x expected %#04x (%s)\\n\",\n 530:\t\t\t\t\t     val, hw-\u003ewhoami, hw-\u003ename);\n 531:\t\n 532:\t\tif (val != hw-\u003ewhoami) {\n 533:\t\t\tdev_info(dev,\n 534:\t\t\t\t \"device id %#04x is not the %#04x associated with the FW-specified device (%s), probably using a valid fallback compatible\\n\",\n 535:\t\t\t\t val, hw-\u003ewhoami, hw-\u003ename);\n 536:\t\t}\n 537:\t\tst-\u003ename = hw-\u003ename;\n 538:\t\n 539:\t\t/* reset to make sure previous state are not there */\n 540:\t\tret = regmap_write(st-\u003emap, INV_ICM42600_REG_DEVICE_CONFIG,\n 541:\t\t\t\t   INV_ICM42600_DEVICE_CONFIG_SOFT_RESET);\n 542:\t\tif (ret)\n 543:\t\t\treturn ret;\n 544:\t\tmsleep(INV_ICM42600_RESET_TIME_MS);\n 545:\t\n 546:\t\tret = regmap_read(st-\u003emap, INV_ICM42600_REG_INT_STATUS, \u0026val);\n 547:\t\tif (ret)\n 548:\t\t\treturn ret;\n 549:\t\tif (!(val \u0026 INV_ICM42600_INT_STATUS_RESET_DONE)) {\n"
}

19/2 2026/09/16 04:49 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 39093
							output: 23
							thoughts: 1243
						

Thoughts:
**WorthFuzzing Assessment: InvenSense ICM-42600 Driver**

Okay, here's the breakdown. I'm looking at this `regmap_read` call and the subsequent check for the WHOAMI register, along with the interrupt line and regulator initialization.  My initial thought is: can this even *run* in a standard QEMU environment?

QEMU doesn't emulate the InvenSense ICM-42600.  It's just not there.  The typical I2C/SPI sensor emulation is limited to much simpler devices.  Without a device tree, ACPI specifying the interrupt ("INT1"), and the regulator "vdd", the probe will fail outright because we expect a valid WHOAMI value which it won't be on QEMU.

I considered syzkaller, but it has limitations with I2C devices.  Even with a virtual I2C adapter, how would the ICM-42600 be successfully probed?  Then I thought of `/sys/bus/i2c/devices/i2c-X/new_device`, but that doesn't provide the fwnode information needed.  The `fwnode_irq_get_byname` call will fail, leading to an immediate probe failure.  Even if the interrupt was somehow present, the `regmap_read` would likely fail, and then we have the regulator "vdd" to consider.

Now, let's go through the WorthFuzzing instructions. Section 2, the "NEGATIVE CRITERIA," is key. I am checking the lines about:

*   "Structurally unreachable hardware:
    *   Vendor-specific PCIe switches, SmartNICs, or GPU drivers... requiring physical ASIC/PCIe cards not emulated in standard QEMU."

And in Section 1: "REACHABILITY IS THE PRIMARY GATE".  "Fuzzing can only discover bugs in code that can actually execute in standard virtualized environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap)."

And Section 3 states: "Reachable Drivers and Protocols: * Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.)."

The ICM-42600 isn't accessible via virtual buses. It's an I2C/SPI IMU.  No USB bindings or anything similar. It's vendor-specific hardware.  Thus, this code is structurally unreachable in standard QEMU.  I need to check *every* reference in the kernel tree to confirm that, but my hunch is strong based on all of this.  This code is *not* worth fuzzing.



20/2 2026/09/16 04:49 tool grepper
0m Args:
{
  "Expression": "inv_icm42600"
}

Results:
{
  "Output": "\nFull output is too long, showing 500 out of 1713 lines.\nUse more precise expression if possible.\n\nMAINTAINERS=13682=W:\thttps://invensense.tdk.com/\nMAINTAINERS:13683:F:\tDocumentation/ABI/testing/sysfs-bus-iio-inv_icm42600\nMAINTAINERS-13684-F:\tDocumentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml\nMAINTAINERS:13685:F:\tdrivers/iio/imu/inv_icm42600/\nMAINTAINERS-13686-\n--\ndrivers/iio/imu/Kconfig=100=config KMX61\n--\ndrivers/iio/imu/Kconfig-110-\ndrivers/iio/imu/Kconfig:111:source \"drivers/iio/imu/inv_icm42600/Kconfig\"\ndrivers/iio/imu/Kconfig-112-source \"drivers/iio/imu/inv_icm42607/Kconfig\"\n--\ndrivers/iio/imu/Makefile=25=obj-$(CONFIG_FXOS8700_SPI) += fxos8700_spi.o\ndrivers/iio/imu/Makefile-26-\ndrivers/iio/imu/Makefile:27:obj-y += inv_icm42600/\ndrivers/iio/imu/Makefile-28-obj-y += inv_icm42607/\n--\ndrivers/iio/imu/inv_icm42600/Makefile=3=obj-$(CONFIG_INV_ICM42600) += inv-icm42600.o\ndrivers/iio/imu/inv_icm42600/Makefile:4:inv-icm42600-y += inv_icm42600_core.o\ndrivers/iio/imu/inv_icm42600/Makefile:5:inv-icm42600-y += inv_icm42600_gyro.o\ndrivers/iio/imu/inv_icm42600/Makefile:6:inv-icm42600-y += inv_icm42600_accel.o\ndrivers/iio/imu/inv_icm42600/Makefile:7:inv-icm42600-y += inv_icm42600_temp.o\ndrivers/iio/imu/inv_icm42600/Makefile:8:inv-icm42600-y += inv_icm42600_buffer.o\ndrivers/iio/imu/inv_icm42600/Makefile-9-\ndrivers/iio/imu/inv_icm42600/Makefile=10=obj-$(CONFIG_INV_ICM42600_I2C) += inv-icm42600-i2c.o\ndrivers/iio/imu/inv_icm42600/Makefile:11:inv-icm42600-i2c-y += inv_icm42600_i2c.o\ndrivers/iio/imu/inv_icm42600/Makefile-12-\ndrivers/iio/imu/inv_icm42600/Makefile=13=obj-$(CONFIG_INV_ICM42600_SPI) += inv-icm42600-spi.o\ndrivers/iio/imu/inv_icm42600/Makefile:14:inv-icm42600-spi-y += inv_icm42600_spi.o\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-19-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:20:#include \"inv_icm42600_buffer.h\"\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-21-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:22:enum inv_icm42600_chip {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-23-\tINV_CHIP_INVALID,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-34-/* serial bus slew rates */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:35:enum inv_icm42600_slew_rate {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-36-\tINV_ICM42600_SLEW_RATE_20_60NS,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-43-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:44:enum inv_icm42600_sensor_mode {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-45-\tINV_ICM42600_SENSOR_MODE_OFF,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-52-/* gyroscope fullscale values */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:53:enum inv_icm42600_gyro_fs {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-54-\tINV_ICM42600_GYRO_FS_2000DPS,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h=64=enum inv_icm42686_gyro_fs {\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-76-/* accelerometer fullscale values */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:77:enum inv_icm42600_accel_fs {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-78-\tINV_ICM42600_ACCEL_FS_16G,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h=84=enum inv_icm42686_accel_fs {\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-93-/* ODR suffixed by LN or LP are Low-Noise or Low-Power mode only */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:94:enum inv_icm42600_odr {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-95-\tINV_ICM42600_ODR_8KHZ_LN = 3,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-110-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:111:enum inv_icm42600_filter {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-112-\t/* Low-Noise mode sensor data filter (3rd order filter by default) */\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-119-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:120:struct inv_icm42600_sensor_conf {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-121-\tint mode;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-127-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:128:struct inv_icm42600_conf {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:129:\tstruct inv_icm42600_sensor_conf gyro;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:130:\tstruct inv_icm42600_sensor_conf accel;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-131-\tbool temp_en;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-133-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:134:struct inv_icm42600_suspended {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:135:\tenum inv_icm42600_sensor_mode gyro;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:136:\tenum inv_icm42600_sensor_mode accel;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-137-\tbool temp;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-139-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:140:struct inv_icm42600_apex {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-141-\tunsigned int on;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-148-/**\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:149: *  struct inv_icm42600_state - driver state variables\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-150- *  @lock:\t\tlock for serializing multiple registers access.\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-166- */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:167:struct inv_icm42600_state {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-168-\tstruct mutex lock;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:169:\tenum inv_icm42600_chip chip;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-170-\tconst char *name;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-174-\tstruct iio_mount_matrix orientation;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:175:\tstruct inv_icm42600_conf conf;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:176:\tstruct inv_icm42600_suspended suspended;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-177-\tstruct iio_dev *indio_gyro;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-183-\t} timestamp;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:184:\tstruct inv_icm42600_apex apex;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:185:\tstruct inv_icm42600_fifo fifo;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-186-\tu8 buffer[3] __aligned(IIO_DMA_MINALIGN);\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-190-/**\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:191: * struct inv_icm42600_sensor_state - sensor state variables\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-192- * @scales:\t\ttable of scales.\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-197- */\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:198:struct inv_icm42600_sensor_state {\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-199-\tconst int *scales;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-200-\tsize_t scales_len;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:201:\tenum inv_icm42600_sensor_mode power_mode;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:202:\tenum inv_icm42600_filter filter;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-203-\tstruct inv_sensors_timestamp ts;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-447-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:448:typedef int (*inv_icm42600_bus_setup)(struct inv_icm42600_state *);\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-449-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:450:extern const struct regmap_config inv_icm42600_regmap_config;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:451:extern const struct regmap_config inv_icm42600_spi_regmap_config;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:452:extern const struct dev_pm_ops inv_icm42600_pm_ops;\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-453-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h=454=const struct iio_mount_matrix *\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:455:inv_icm42600_get_mount_matrix(const struct iio_dev *indio_dev,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-456-\t\t\t      const struct iio_chan_spec *chan);\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-457-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:458:u32 inv_icm42600_odr_to_period(enum inv_icm42600_odr odr);\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-459-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:460:int inv_icm42600_set_accel_conf(struct inv_icm42600_state *st,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:461:\t\t\t\tstruct inv_icm42600_sensor_conf *conf,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-462-\t\t\t\tunsigned int *sleep_ms);\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-463-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:464:int inv_icm42600_set_gyro_conf(struct inv_icm42600_state *st,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:465:\t\t\t       struct inv_icm42600_sensor_conf *conf,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-466-\t\t\t       unsigned int *sleep_ms);\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-467-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:468:int inv_icm42600_set_temp_conf(struct inv_icm42600_state *st, bool enable,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-469-\t\t\t       unsigned int *sleep_ms);\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-470-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:471:int inv_icm42600_enable_wom(struct inv_icm42600_state *st);\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:472:int inv_icm42600_disable_wom(struct inv_icm42600_state *st);\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-473-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:474:int inv_icm42600_debugfs_reg(struct iio_dev *indio_dev, unsigned int reg,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-475-\t\t\t     unsigned int writeval, unsigned int *readval);\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-476-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:477:int inv_icm42600_core_probe(struct regmap *regmap, int chip,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:478:\t\t\t    inv_icm42600_bus_setup bus_setup);\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-479-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:480:struct iio_dev *inv_icm42600_gyro_init(struct inv_icm42600_state *st);\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-481-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:482:int inv_icm42600_gyro_parse_fifo(struct iio_dev *indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-483-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:484:struct iio_dev *inv_icm42600_accel_init(struct inv_icm42600_state *st);\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-485-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:486:int inv_icm42600_accel_parse_fifo(struct iio_dev *indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-487-\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h:488:void inv_icm42600_accel_handle_events(struct iio_dev *indio_dev,\ndrivers/iio/imu/inv_icm42600/inv_icm42600.h-489-\t\t\t\t      unsigned int status2, unsigned int status3,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-22-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:23:#include \"inv_icm42600.h\"\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:24:#include \"inv_icm42600_buffer.h\"\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:25:#include \"inv_icm42600_temp.h\"\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-26-\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-63-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:64:enum inv_icm42600_accel_scan {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-65-\tINV_ICM42600_ACCEL_SCAN_X,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-71-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:72:static const char * const inv_icm42600_accel_power_mode_items[] = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-73-\t\"low-noise\",\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-75-};\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:76:static const int inv_icm42600_accel_power_mode_values[] = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-77-\tINV_ICM42600_SENSOR_MODE_LOW_NOISE,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-79-};\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:80:static const int inv_icm42600_accel_filter_values[] = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-81-\tINV_ICM42600_FILTER_BW_ODR_DIV_2,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-84-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:85:static int inv_icm42600_accel_power_mode_set(struct iio_dev *indio_dev,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-86-\t\t\t\t\t     const struct iio_chan_spec *chan,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-88-{\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:89:\tstruct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:90:\tstruct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-91-\tint power_mode, filter;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-95-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:96:\tif (idx \u003e= ARRAY_SIZE(inv_icm42600_accel_power_mode_values))\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-97-\t\treturn -EINVAL;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-98-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:99:\tpower_mode = inv_icm42600_accel_power_mode_values[idx];\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:100:\tfilter = inv_icm42600_accel_filter_values[idx];\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-101-\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-127-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:128:static int inv_icm42600_accel_power_mode_get(struct iio_dev *indio_dev,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-129-\t\t\t\t\t     const struct iio_chan_spec *chan)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-130-{\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:131:\tstruct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:132:\tstruct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-133-\tunsigned int idx;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-151-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:152:\tfor (idx = 0; idx \u003c ARRAY_SIZE(inv_icm42600_accel_power_mode_values); ++idx) {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:153:\t\tif (power_mode == inv_icm42600_accel_power_mode_values[idx])\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-154-\t\t\tbreak;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-155-\t}\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:156:\tif (idx \u003e= ARRAY_SIZE(inv_icm42600_accel_power_mode_values))\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-157-\t\treturn -EINVAL;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-161-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:162:static const struct iio_enum inv_icm42600_accel_power_mode_enum = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:163:\t.items = inv_icm42600_accel_power_mode_items,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:164:\t.num_items = ARRAY_SIZE(inv_icm42600_accel_power_mode_items),\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:165:\t.set = inv_icm42600_accel_power_mode_set,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:166:\t.get = inv_icm42600_accel_power_mode_get,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-167-};\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-168-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:169:static const struct iio_chan_spec_ext_info inv_icm42600_accel_ext_infos[] = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:170:\tIIO_MOUNT_MATRIX(IIO_SHARED_BY_ALL, inv_icm42600_get_mount_matrix),\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-171-\tIIO_ENUM_AVAILABLE(\"power_mode\", IIO_SHARED_BY_TYPE,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:172:\t\t\t   \u0026inv_icm42600_accel_power_mode_enum),\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-173-\tIIO_ENUM(\"power_mode\", IIO_SHARED_BY_TYPE,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:174:\t\t \u0026inv_icm42600_accel_power_mode_enum),\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-175-\t{ }\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-178-/* WoM event: rising ROC */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:179:static const struct iio_event_spec inv_icm42600_wom_events[] = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-180-\t{\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-187-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:188:static const struct iio_chan_spec inv_icm42600_accel_channels[] = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-189-\tINV_ICM42600_ACCEL_CHAN(IIO_MOD_X, INV_ICM42600_ACCEL_SCAN_X,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:190:\t\t\t\tinv_icm42600_accel_ext_infos),\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-191-\tINV_ICM42600_ACCEL_CHAN(IIO_MOD_Y, INV_ICM42600_ACCEL_SCAN_Y,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:192:\t\t\t\tinv_icm42600_accel_ext_infos),\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-193-\tINV_ICM42600_ACCEL_CHAN(IIO_MOD_Z, INV_ICM42600_ACCEL_SCAN_Z,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:194:\t\t\t\tinv_icm42600_accel_ext_infos),\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-195-\tINV_ICM42600_TEMP_CHAN(INV_ICM42600_ACCEL_SCAN_TEMP),\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-196-\tIIO_CHAN_SOFT_TIMESTAMP(INV_ICM42600_ACCEL_SCAN_TIMESTAMP),\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:197:\tINV_ICM42600_ACCEL_EVENT_CHAN(IIO_MOD_X_OR_Y_OR_Z, inv_icm42600_wom_events,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:198:\t\t\t\t      ARRAY_SIZE(inv_icm42600_wom_events)),\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-199-};\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-204- */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:205:struct inv_icm42600_accel_buffer {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:206:\tstruct inv_icm42600_fifo_sensor_data accel;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-207-\ts16 temp;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-217-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:218:static const unsigned long inv_icm42600_accel_scan_masks[] = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-219-\t/* 3-axis accel + temperature */\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-224-/* enable accelerometer sensor and FIFO write */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:225:static int inv_icm42600_accel_update_scan_mode(struct iio_dev *indio_dev,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-226-\t\t\t\t\t       const unsigned long *scan_mask)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-227-{\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:228:\tstruct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:229:\tstruct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:230:\tstruct inv_icm42600_sensor_conf conf = INV_ICM42600_SENSOR_CONF_INIT;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-231-\tunsigned int fifo_en = 0;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-240-\t\t/* enable temp sensor */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:241:\t\tret = inv_icm42600_set_temp_conf(st, true, \u0026sleep_temp);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-242-\t\tif (ret)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-250-\t\tconf.filter = accel_st-\u003efilter;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:251:\t\tret = inv_icm42600_set_accel_conf(st, \u0026conf, \u0026sleep_accel);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-252-\t\tif (ret)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-269-\t/* update data FIFO write */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:270:\tret = inv_icm42600_buffer_set_fifo_en(st, fifo_en | st-\u003efifo.en);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-271-\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-276-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:277:static int inv_icm42600_accel_read_sensor(struct iio_dev *indio_dev,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-278-\t\t\t\t\t  struct iio_chan_spec const *chan,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-280-{\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:281:\tstruct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:282:\tstruct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-283-\tstruct device *dev = regmap_get_device(st-\u003emap);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:284:\tstruct inv_icm42600_sensor_conf conf = INV_ICM42600_SENSOR_CONF_INIT;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-285-\tunsigned int reg;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-311-\tconf.filter = accel_st-\u003efilter;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:312:\tret = inv_icm42600_set_accel_conf(st, \u0026conf, NULL);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-313-\tif (ret)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-330-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:331:static unsigned int inv_icm42600_accel_convert_roc_to_wom(u64 roc,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-332-\t\t\t\t\t\t\t  int accel_hz, int accel_uhz)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-349-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:350:static u64 inv_icm42600_accel_convert_wom_to_roc(unsigned int threshold,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-351-\t\t\t\t\t\t int accel_hz, int accel_uhz)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-364-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:365:static int inv_icm42600_accel_set_wom_threshold(struct inv_icm42600_state *st,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-366-\t\t\t\t\t\tu64 value,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-372-\t/* convert roc to wom threshold and convert back to handle clipping */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:373:\tthreshold = inv_icm42600_accel_convert_roc_to_wom(value, accel_hz, accel_uhz);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:374:\tvalue = inv_icm42600_accel_convert_wom_to_roc(threshold, accel_hz, accel_uhz);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-375-\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-390-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:391:static int _inv_icm42600_accel_enable_wom(struct iio_dev *indio_dev)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-392-{\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:393:\tstruct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:394:\tstruct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:395:\tstruct inv_icm42600_sensor_conf conf = INV_ICM42600_SENSOR_CONF_INIT;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-396-\tunsigned int sleep_ms = 0;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-402-\t\tconf.filter = accel_st-\u003efilter;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:403:\t\tret = inv_icm42600_set_accel_conf(st, \u0026conf, \u0026sleep_ms);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-404-\t\tif (ret)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-411-\tscoped_guard(mutex, \u0026st-\u003elock) {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:412:\t\tret = inv_icm42600_enable_wom(st);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-413-\t\tif (ret)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-421-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:422:static int inv_icm42600_accel_enable_wom(struct iio_dev *indio_dev)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-423-{\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:424:\tstruct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-425-\tstruct device *pdev = regmap_get_device(st-\u003emap);\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-431-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:432:\tret = _inv_icm42600_accel_enable_wom(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-433-\tif (ret) {\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-441-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:442:static int _inv_icm42600_accel_disable_wom(struct iio_dev *indio_dev)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-443-{\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:444:\tstruct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:445:\tstruct inv_icm42600_sensor_conf conf = INV_ICM42600_SENSOR_CONF_INIT;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-446-\tunsigned int sleep_ms = 0;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-457-\t\tst-\u003eapex.on--;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:458:\t\tret = inv_icm42600_disable_wom(st);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-459-\t\tif (ret)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-463-\t\t\tconf.mode = INV_ICM42600_SENSOR_MODE_OFF;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:464:\t\t\tret = inv_icm42600_set_accel_conf(st, \u0026conf, \u0026sleep_ms);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-465-\t\t\tif (ret)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-475-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:476:static int inv_icm42600_accel_disable_wom(struct iio_dev *indio_dev)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-477-{\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:478:\tstruct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-479-\tstruct device *pdev = regmap_get_device(st-\u003emap);\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-481-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:482:\tret = _inv_icm42600_accel_disable_wom(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-483-\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-489-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:490:void inv_icm42600_accel_handle_events(struct iio_dev *indio_dev,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-491-\t\t\t\t      unsigned int status2, unsigned int status3,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-493-{\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:494:\tstruct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-495-\tu64 ev_code;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-505-/* IIO format int + nano */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:506:static const int inv_icm42600_accel_scale[] = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-507-\t/* +/- 16G =\u003e 0.004788403 m/s-2 */\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c=520=static const int inv_icm42686_accel_scale[] = {\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-537-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:538:static int inv_icm42600_accel_read_scale(struct iio_dev *indio_dev,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-539-\t\t\t\t\t int *val, int *val2)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-540-{\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:541:\tstruct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:542:\tstruct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-543-\tunsigned int idx;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-551-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:552:static int inv_icm42600_accel_write_scale(struct iio_dev *indio_dev,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-553-\t\t\t\t\t  int val, int val2)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-554-{\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:555:\tstruct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:556:\tstruct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-557-\tstruct device *dev = regmap_get_device(st-\u003emap);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-558-\tunsigned int idx;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:559:\tstruct inv_icm42600_sensor_conf conf = INV_ICM42600_SENSOR_CONF_INIT;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-560-\tint ret;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-574-\tscoped_guard(mutex, \u0026st-\u003elock)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:575:\t\tret = inv_icm42600_set_accel_conf(st, \u0026conf, NULL);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-576-\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-582-/* IIO format int + micro */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:583:static const int inv_icm42600_accel_odr[] = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-584-\t/* 1.5625Hz */\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-607-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:608:static const int inv_icm42600_accel_odr_conv[] = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-609-\tINV_ICM42600_ODR_1_5625HZ_LP,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-621-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:622:static int inv_icm42600_accel_read_odr(struct inv_icm42600_state *st,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-623-\t\t\t\t       int *val, int *val2)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-629-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:630:\tfor (i = 0; i \u003c ARRAY_SIZE(inv_icm42600_accel_odr_conv); ++i) {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:631:\t\tif (inv_icm42600_accel_odr_conv[i] == odr)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-632-\t\t\tbreak;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-633-\t}\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:634:\tif (i \u003e= ARRAY_SIZE(inv_icm42600_accel_odr_conv))\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-635-\t\treturn -EINVAL;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-636-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:637:\t*val = inv_icm42600_accel_odr[2 * i];\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:638:\t*val2 = inv_icm42600_accel_odr[2 * i + 1];\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-639-\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-642-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:643:static int inv_icm42600_accel_write_odr(struct iio_dev *indio_dev,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-644-\t\t\t\t\tint val, int val2)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-645-{\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:646:\tstruct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:647:\tstruct inv_icm42600_sensor_state *accel_st = iio_priv(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-648-\tstruct inv_sensors_timestamp *ts = \u0026accel_st-\u003ets;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-650-\tunsigned int idx;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:651:\tstruct inv_icm42600_sensor_conf conf = INV_ICM42600_SENSOR_CONF_INIT;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-652-\tint ret;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-653-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:654:\tfor (idx = 0; idx \u003c ARRAY_SIZE(inv_icm42600_accel_odr); idx += 2) {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:655:\t\tif (val == inv_icm42600_accel_odr[idx] \u0026\u0026\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:656:\t\t    val2 == inv_icm42600_accel_odr[idx + 1])\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-657-\t\t\tbreak;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-658-\t}\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:659:\tif (idx \u003e= ARRAY_SIZE(inv_icm42600_accel_odr))\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-660-\t\treturn -EINVAL;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-661-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:662:\tconf.odr = inv_icm42600_accel_odr_conv[idx / 2];\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-663-\tif (conf.odr == st-\u003econf.accel.odr)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-668-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:669:\tret = inv_sensors_timestamp_update_odr(ts, inv_icm42600_odr_to_period(conf.odr),\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-670-\t\t\t\t\t       iio_buffer_enabled(indio_dev));\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-673-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:674:\tret = inv_icm42600_set_accel_conf(st, \u0026conf, NULL);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-675-\tif (ret)\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-677-\t/* update wom threshold since roc is dependent on sampling frequency */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:678:\tret = inv_icm42600_accel_set_wom_threshold(st, st-\u003eapex.wom.value, val, val2);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-679-\tif (ret)\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-680-\t\tgoto out_unlock;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:681:\tinv_icm42600_buffer_update_fifo_period(st);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:682:\tinv_icm42600_buffer_update_watermark(st);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-683-\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-694- */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:695:static int inv_icm42600_accel_calibbias[] = {\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-696-\t-10, 42010,\t\t/* min: -10.042010 m/s² */\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-700-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:701:static int inv_icm42600_accel_read_offset(struct inv_icm42600_state *st,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-702-\t\t\t\t\t  struct iio_chan_spec const *chan,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-775-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:776:static int inv_icm42600_accel_write_offset(struct inv_icm42600_state *st,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-777-\t\t\t\t\t   struct iio_chan_spec const *chan,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-803-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:804:\t/* inv_icm42600_accel_calibbias: min - step - max in micro */\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:805:\tmin = inv_icm42600_accel_calibbias[0] * 1000000L +\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:806:\t      inv_icm42600_accel_calibbias[1];\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:807:\tmax = inv_icm42600_accel_calibbias[4] * 1000000L +\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:808:\t      inv_icm42600_accel_calibbias[5];\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-809-\tval64 = (s64)val * 1000000LL + (s64)val2;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-877-\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:878:static int inv_icm42600_accel_read_raw(struct iio_dev *indio_dev,\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-879-\t\t\t\t       struct iio_chan_spec const *chan,\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-881-{\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:882:\tstruct inv_icm42600_state *st = iio_device_get_drvdata(indio_dev);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-883-\ts16 data;\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-889-\tcase IIO_TEMP:\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:890:\t\treturn inv_icm42600_temp_read_raw(indio_dev, chan, val, val2, mask);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-891-\tdefault:\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-898-\t\t\treturn -EBUSY;\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:899:\t\tret = inv_icm42600_accel_read_sensor(indio_dev, chan, \u0026data);\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-900-\t\tiio_device_release_direct(indio_dev);\n--\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c-905-\tcase IIO_CHAN_INFO_SCALE:\ndrivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:906:\t\treturn inv_icm42600_accel_read_scale(indio_dev, val, val2);\n\n"
}

21/2 2026/09/16 04:49 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 61977
							output: 33
							thoughts: 258
						

Thoughts:
**My Assessment of the ICM-42600 Driver's Virtualization**

Okay, so I'm looking at the `drivers/iio/imu/inv_icm42600` driver. It's pretty clear this is **strictly** for physical InvenSense ICM-42600 series IMUs. We're talking about the ICM-42600, 42602, 42605, 42686, 42622, 42688 and 42631 models specifically. This driver assumes a real I2C or SPI bus connection to this hardware. That means an actual I2C or SPI bus with the IMU physically attached is essential. Furthermore, it expects an external interrupt, `INT1`, defined through a firmware node, be that DeviceTree or ACPI. It's dependent on a valid VDD regulator supply for power and obviously needs the device to respond to the `WHOAMI` register check, as expected.

Right, so, standard QEMU or Google Compute Engine environments, these aren't going to cut it. We're missing the physical hardware entirely. There aren't any virtual bus interfaces, no USB gadget emulation, no virtio, nothing. So, without that physical hardware, this driver's not going to probe, instantiate, or even be reached. It's dead in the water in a virtual setup.

Let me just double-check, though. Is there any kind of mock or dummy device implementation *anywhere*? Let's quickly search `tools/testing/` and `drivers/iio/dummy/` to see if there's *anything* related to the `inv_icm42600` driver or related emulation. That would be the only way I could see it working.



22/2 2026/09/16 04:49 tool grepper
0m Error:
no matches

Args:
{
  "Expression": "icm42600",
  "PathPrefix": "drivers/iio/dummy"
}

Results:
{
  "error": "no matches"
}

23/2 2026/09/16 04:49 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 62682
							output: 29
							thoughts: 15
						

Thoughts:
Here's my take on those thoughts, tailored for an expert audience:

**Investigating Test Coverage**

Okay, so I'm thinking about where to start my investigation. Given the need to test this new functionality thoroughly, my instinct is to immediately jump into the existing testing infrastructure. I'm visualizing the project structure... and the two directories that immediately come to mind for test suites are `tools/testing/` and `samples/`. The structure of these may guide my approach. I'm betting that one of these will offer existing test harnesses, or at least some good examples to follow. I’ll start by digging into those two areas to see what we've got.



24/2 2026/09/16 04:49 tool grepper
0m Error:
no matches

Args:
{
  "Expression": "icm42600",
  "PathPrefix": "tools/"
}

Results:
{
  "error": "no matches"
}

25/2 2026/09/16 04:49 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 62882
							output: 32
							thoughts: 21
						

Thoughts:
Here's my thought process, as it went down:

**Investigating the x86 Architecture**

Okay, so I need to dig into this further. My immediate thought is to check within the `arch/x86/` directory. That's the logical place to start looking for anything related to board-specific configurations or Advanced Configuration and Power Interface (ACPI) bindings. I'm assuming that's where the platform-specific initialization and power management stuff would reside for an x86 system. I'll need to see what's in those directories to understand how things are being handled at that level. Let's see what we can find.



26/2 2026/09/16 04:49 tool grepper
0m Error:
no matches

Args:
{
  "Expression": "icm42600",
  "PathPrefix": "arch/x86"
}

Results:
{
  "error": "no matches"
}

27/2 2026/09/16 04:49 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 63089
							output: 133
							thoughts: 408
						

Thoughts:
**My Fuzzing Verdict: Structurally Unreachable Hardware**

Okay, so the driver in question is specifically for the InvenSense ICM-42600 IMU series. It's connected via I2C or SPI, and that's the key here. Looking at the documentation, it's clear the target hardware *requires* physical components – the sensor chip itself, the interrupt line, and the regulator. Standard virtualized environments like QEMU and GCE just don't emulate those aspects.

Section 2 explicitly calls out structurally unreachable hardware: Vendor-specific stuff requiring physical ASIC/PCIe cards, which are not emulated in standard QEMU. Section 1 reinforces this – we can only fuzz code that *can* actually run in our virtualized environments. And here, that's not the case. The modified code is definitely unreachable without the physical hardware. Therefore, the `WorthFuzzing` flag must be set to false.

Let me just double-check: `WorthFuzzing: false`. `EnableConfigs` and `FocusSymbols` are empty – as expected since we're not fuzzing. The reasoning is solid: The driver's hardware dependencies make it structurally unreachable by syzkaller in our environment.

Everything checks out. I'm confident in the verdict. Now, let's call `set-results` and finalize this.



28/2 2026/09/16 04:49 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [],
  "Reasoning": "The patch modifies the InvenSense ICM-42600 series IMU driver (drivers/iio/imu/inv_icm42600/), which controls physical 6-axis motion tracking chips connected over I2C or SPI buses. The hardware requires an INT1 interrupt line and a physical chip responding to WHOAMI registers, and is not emulated by standard QEMU or GCE virtual environments. As such, the modified code is structurally unreachable for fuzzing.",
  "WorthFuzzing": false
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch modifies the InvenSense ICM-42600 series IMU driver (drivers/iio/imu/inv_icm42600/), which controls physical 6-axis motion tracking chips connected over I2C or SPI buses. The hardware requires an INT1 interrupt line and a physical chip responding to WHOAMI registers, and is not emulated by standard QEMU or GCE virtual environments. As such, the modified code is structurally unreachable for fuzzing.",
  "WorthFuzzing": false
}

29/1 2026/09/16 04:49 action If
0m Args:
{
  "WorthFuzzing": false
}

Results:
null

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)