AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/09/19 21:54 flow patch-triage
0m Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "KMSANReasoning": "",
  "NeedsKMSAN": false,
  "Reasoning": "The patch adds a missing pm_runtime_put() call in the default error path of wm8994_mic_detect() in sound/soc/codecs/wm8994.c. This code is structurally unreachable on the target architecture (amd64) as WM8994 is an embedded Wolfson audio codec for ARM platforms. Furthermore, wm8994_mic_detect() has only one caller in the entire kernel (sound/soc/samsung/littlemill.c), which passes a constant micbias value of 1, making the modified default branch unreachable by any in-tree code.",
  "WorthFuzzing": false
}

1/1 2026/09/19 21:54 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit f938c19434a018f441a992089dfeeffe468337da\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Sat Sep 19 21:54:07 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c\nindex 1d64c7c42ed12..bfbb8a56b5639 100644\n--- a/sound/soc/codecs/wm8994.c\n+++ b/sound/soc/codecs/wm8994.c\n@@ -3535,6 +3535,7 @@ int wm8994_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *\n \t\tbreak;\n \tdefault:\n \t\tdev_warn(component-\u003edev, \"Invalid MICBIAS %d\\n\", micbias);\n+\t\tpm_runtime_put(component-\u003edev);\n \t\treturn -EINVAL;\n \t}\n \n"
}

2/1 2026/09/19 21:54 agent patch-evaluator
0m Model:
core

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch adds a missing pm_runtime_put() call in the default error path of wm8994_mic_detect() in sound/soc/codecs/wm8994.c. This code is structurally unreachable on the target architecture (amd64) as WM8994 is an embedded Wolfson audio codec for ARM platforms. Furthermore, wm8994_mic_detect() has only one caller in the entire kernel (sound/soc/samsung/littlemill.c), which passes a constant micbias value of 1, making the modified default branch unreachable by any in-tree code.",
  "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 f938c19434a018f441a992089dfeeffe468337da
Author: syz-cluster <triage@syzkaller.com>
Date:   Sat Sep 19 21:54:07 2026 +0000

    syz-cluster: applied patch under review

diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 1d64c7c42ed12..bfbb8a56b5639 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -3535,6 +3535,7 @@ int wm8994_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *
 		break;
 	default:
 		dev_warn(component->dev, "Invalid MICBIAS %d\n", micbias);
+		pm_runtime_put(component->dev);
 		return -EINVAL;
 	}
 

3/2 2026/09/19 21:54 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 2871
							output: 43
							thoughts: 316
						

Thoughts:
**Analyzing a Codec Driver Modification**

Okay, let's dive into this `diff`. It looks like we're dealing with a modification to the `wm8994.c` codec driver, specifically within the `sound/soc/codecs` directory. My initial thought is to quickly assess the change. It seems we have a new line added in the `wm8994_mic_detect` function, most likely an error handling path for an invalid MICBIAS value. Specifically, it calls `pm_runtime_put` when it hits an invalid MICBIAS.

Now, I want to understand the context a bit better. I'll need to look at `sound/soc/codecs/wm8994.c` around line 3535. I'm wondering what kind of device this is, and how it is connected. Is this a hardware-specific driver, or something potentially more generic? I'll need to figure out if this is something I can reliably test in a QEMU environment or if it requires specific hardware. I'll probably reach for `read-file` or `grepper` to quickly understand the code around this line and get a better feel for its purpose.



4/2 2026/09/19 21:54 tool read-file
0m Args:
{
  "File": "sound/soc/codecs/wm8994.c",
  "FirstLine": 3520,
  "LineCount": 40
}

Results:
{
  "Contents": "3520:\t\n3521:\t\tswitch (micbias) {\n3522:\t\tcase 1:\n3523:\t\t\tmicdet = \u0026wm8994-\u003emicdet[0];\n3524:\t\t\tif (jack)\n3525:\t\t\t\tret = snd_soc_dapm_force_enable_pin(dapm, \"MICBIAS1\");\n3526:\t\t\telse\n3527:\t\t\t\tret = snd_soc_dapm_disable_pin(dapm, \"MICBIAS1\");\n3528:\t\t\tbreak;\n3529:\t\tcase 2:\n3530:\t\t\tmicdet = \u0026wm8994-\u003emicdet[1];\n3531:\t\t\tif (jack)\n3532:\t\t\t\tret = snd_soc_dapm_force_enable_pin(dapm, \"MICBIAS1\");\n3533:\t\t\telse\n3534:\t\t\t\tret = snd_soc_dapm_disable_pin(dapm, \"MICBIAS1\");\n3535:\t\t\tbreak;\n3536:\t\tdefault:\n3537:\t\t\tdev_warn(component-\u003edev, \"Invalid MICBIAS %d\\n\", micbias);\n3538:\t\t\tpm_runtime_put(component-\u003edev);\n3539:\t\t\treturn -EINVAL;\n3540:\t\t}\n3541:\t\n3542:\t\tif (ret != 0)\n3543:\t\t\tdev_warn(component-\u003edev, \"Failed to configure MICBIAS%d: %d\\n\",\n3544:\t\t\t\t micbias, ret);\n3545:\t\n3546:\t\tdev_dbg(component-\u003edev, \"Configuring microphone detection on %d %p\\n\",\n3547:\t\t\tmicbias, jack);\n3548:\t\n3549:\t\t/* Store the configuration */\n3550:\t\tmicdet-\u003ejack = jack;\n3551:\t\tmicdet-\u003edetecting = true;\n3552:\t\n3553:\t\t/* If either of the jacks is set up then enable detection */\n3554:\t\tif (wm8994-\u003emicdet[0].jack || wm8994-\u003emicdet[1].jack)\n3555:\t\t\treg = WM8994_MICD_ENA;\n3556:\t\telse\n3557:\t\t\treg = 0;\n3558:\t\n3559:\t\tsnd_soc_component_update_bits(component, WM8994_MICBIAS, WM8994_MICD_ENA, reg);\n"
}

5/2 2026/09/19 21:54 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 4149
							output: 23
							thoughts: 44
						

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

**Analyzing the WM8994 Audio Codec**

Right, let's dive into this WM8994 business. I need to quickly refresh my memory on what exactly this codec is and the typical applications we see it in. My initial approach will be to run a `grep` for the `wm8994_mic_detect` function – that's usually a good starting point for understanding microphone-related functionality, which often gives clues about its general implementation and use. Also, I'll definitely want to zero in on how the driver probes for this particular codec, and how the binding is handled. That probe/bind sequence is crucial for understanding the overall device initialization and how the system recognizes it. I'm hoping I can locate this implementation, and review how it's integrated with the audio subsystem in this specific design.



6/2 2026/09/19 21:54 tool grepper
0m Args:
{
  "Expression": "wm8994_mic_detect"
}

Results:
{
  "Output": "sound/soc/codecs/wm8994.c=3413=static void wm8994_handle_pdata(struct wm8994_priv *wm8994)\n--\nsound/soc/codecs/wm8994.c-3490-/**\nsound/soc/codecs/wm8994.c:3491: * wm8994_mic_detect - Enable microphone detection via the WM8994 IRQ\nsound/soc/codecs/wm8994.c-3492- *\n--\nsound/soc/codecs/wm8994.c-3504- */\nsound/soc/codecs/wm8994.c:3505:int wm8994_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *jack,\nsound/soc/codecs/wm8994.c-3506-\t\t      int micbias)\n--\nsound/soc/codecs/wm8994.c-3572-}\nsound/soc/codecs/wm8994.c:3573:EXPORT_SYMBOL_GPL(wm8994_mic_detect);\nsound/soc/codecs/wm8994.c-3574-\n--\nsound/soc/codecs/wm8994.h=48=typedef void (*wm1811_mic_id_cb)(void *data, u16 status);\nsound/soc/codecs/wm8994.h-49-\nsound/soc/codecs/wm8994.h:50:int wm8994_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *jack,\nsound/soc/codecs/wm8994.h-51-\t\t      int micbias);\n--\nsound/soc/samsung/littlemill.c=269=static int littlemill_late_probe(struct snd_soc_card *card)\n--\nsound/soc/samsung/littlemill.c-308-\t/* As will this */\nsound/soc/samsung/littlemill.c:309:\twm8994_mic_detect(component, \u0026littlemill_headset, 1);\nsound/soc/samsung/littlemill.c-310-\n"
}

7/2 2026/09/19 21:54 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 5000
							output: 26
							thoughts: 71
						

Thoughts:
**Analyzing the WM8994 Microphone Detection**

Okay, so `wm8994_mic_detect` is only being called from `sound/soc/samsung/littlemill.c`. And the `micbias` argument is always hardcoded to `1`. That feels... specific. I need to understand the context here. First, I should probably remind myself what the WM8994 is exactly. Let's dig into the relevant Kconfig options and the probe function for the WM8994. I need a better understanding of how this specific call fits into the larger audio system.



8/2 2026/09/19 21:54 tool grepper
0m Args:
{
  "Expression": "CONFIG_SND_SOC_WM8994"
}

Results:
{
  "Output": "sound/soc/codecs/Makefile=863=obj-$(CONFIG_SND_SOC_WM8993)\t+= snd-soc-wm8993.o\nsound/soc/codecs/Makefile:864:obj-$(CONFIG_SND_SOC_WM8994)\t+= snd-soc-wm8994.o\nsound/soc/codecs/Makefile-865-obj-$(CONFIG_SND_SOC_WM8995)\t+= snd-soc-wm8995.o\n--\nsound/soc/codecs/wm8994.c=3639=static irqreturn_t wm8994_mic_irq(int irq, void *data)\n--\nsound/soc/codecs/wm8994.c-3643-\nsound/soc/codecs/wm8994.c:3644:#ifndef CONFIG_SND_SOC_WM8994_MODULE\nsound/soc/codecs/wm8994.c-3645-\ttrace_snd_soc_jack_irq(dev_name(component-\u003edev));\n--\nsound/soc/codecs/wm8994.c=4041=static irqreturn_t wm8958_mic_irq(int irq, void *data)\n--\nsound/soc/codecs/wm8994.c-4087-\nsound/soc/codecs/wm8994.c:4088:#ifndef CONFIG_SND_SOC_WM8994_MODULE\nsound/soc/codecs/wm8994.c-4089-\ttrace_snd_soc_jack_irq(dev_name(component-\u003edev));\n"
}

9/2 2026/09/19 21:54 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 5663
							output: 37
							thoughts: 26
						

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

**Diving into the Codec Configuration**

Okay, so I need to understand the configuration options for the WM8994 within the ALSA SoC framework. My first thought is to zero in on `sound/soc/codecs/Kconfig`. That's where I'd expect to find the dependencies, build options, and overall definition for `SND_SOC_WM8994`. I'm going to quickly check if it's even defined there, and if so, how it interacts with other related options, like the platform driver or any specific features. I'll need to see how the Kconfig handles things like I2C vs. SPI control, power management options, and any specific clock configurations. I'm also looking for any conditional dependencies that might need to be met before the driver is included. I need a clear picture of how this codec fits into the larger audio system configuration. Let's see what we find.



10/2 2026/09/19 21:54 tool grepper
0m Args:
{
  "Expression": "config SND_SOC_WM8994",
  "PathPrefix": "sound/soc/codecs/"
}

Results:
{
  "Output": "sound/soc/codecs/Kconfig=2699=config SND_SOC_WM8993\n--\nsound/soc/codecs/Kconfig-2702-\nsound/soc/codecs/Kconfig:2703:config SND_SOC_WM8994\nsound/soc/codecs/Kconfig-2704-\ttristate\n"
}

11/2 2026/09/19 21:54 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 6043
							output: 24
							thoughts: 16
						

Thoughts:
Okay, here's my interpretation of that thought process, tailored for an expert audience, and written in the first person:

**Initial Assessment of SND_SOC_WM8994 Selection**

Alright, so the selection of `SND_SOC_WM8994` has come up. My initial thought process is to understand the context. Who's picking this specific codec? Is this a hardware design choice, a software integration decision, or some combination thereof? I need to quickly assess the environment to understand the "why" behind this selection. My immediate focus is on the *implications* of this codec choice. What are the key features and limitations of the WM8994 that will impact the system design?

I'm thinking about:

*   **Performance requirements:** What are the audio specifications being targeted? Sample rates, bit depths, SNR, THD+N? How does the WM8994 stack up against these needs, and what are the trade-offs?
*   **Power consumption:** The WM8994 is often a good choice in the power management area, but I need to consider it's not a low power option in this space. I would consider the power requirements of the overall audio system and how the WM8994 fits into that.
*   **Integration complexity:** The WM8994, like most of these codecs, can be complex to integrate. I'll need to think through any potential challenges with clocking, I2S/PCM interface configuration, software driver support, and debugging. Is the existing driver mature, or will we be fighting with it?
*   **External component dependencies:** Are there any specific external components that are required (e.g., specific amplifiers, filters, or crystal oscillators) to achieve the desired audio performance?
*   **Development and Cost:** Can we get this to fit the budget?

From a software perspective, I'm already thinking about potential issues:

*   **ALSA driver support:** Is there a well-maintained ALSA driver available? Is it stable, and does it provide the necessary controls and features for our application? Any known quirks or limitations in the driver?
*   **Device tree configuration:** Device tree setup is key. Ensuring proper clocking, interrupt handling, and I2S/PCM configuration will be critical. Potential for conflicts if using this on a platform with many devices.

Ultimately, I need to rapidly assess the implications of the WM8994 selection in relation to the overall system architecture and audio requirements. I'm mentally running through the checklist of pros and cons, seeking to anticipate potential bottlenecks and ensure that this codec is the right fit.



12/2 2026/09/19 21:54 tool grepper
0m Args:
{
  "Expression": "select SND_SOC_WM8994"
}

Results:
{
  "Output": "sound/soc/fsl/Kconfig=310=config SND_SOC_FSL_ASOC_CARD\n--\nsound/soc/fsl/Kconfig-323-\tselect SND_SOC_TLV320AIC31XX\nsound/soc/fsl/Kconfig:324:\tselect SND_SOC_WM8994\nsound/soc/fsl/Kconfig-325-\tselect MFD_WM8994\n--\nsound/soc/samsung/Kconfig=24=config SND_SOC_SAMSUNG_SMDK_WM8994\n--\nsound/soc/samsung/Kconfig-27-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:28:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-29-\tselect SND_SAMSUNG_I2S\n--\nsound/soc/samsung/Kconfig=39=config SND_SOC_SMDK_WM8994_PCM\n--\nsound/soc/samsung/Kconfig-42-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:43:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-44-\tselect SND_SAMSUNG_PCM\n--\nsound/soc/samsung/Kconfig=84=config SND_SOC_LITTLEMILL\n--\nsound/soc/samsung/Kconfig-89-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:90:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-91-\n--\nsound/soc/samsung/Kconfig=110=config SND_SOC_ARNDALE\n--\nsound/soc/samsung/Kconfig-115-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:116:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-117-\n--\nsound/soc/samsung/Kconfig=128=config SND_SOC_SAMSUNG_ARIES_WM8994\n--\nsound/soc/samsung/Kconfig-132-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:133:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-134-\tselect SND_SAMSUNG_I2S\n--\nsound/soc/samsung/Kconfig=142=config SND_SOC_SAMSUNG_MIDAS_WM1811\n--\nsound/soc/samsung/Kconfig-146-\tselect MFD_WM8994\nsound/soc/samsung/Kconfig:147:\tselect SND_SOC_WM8994\nsound/soc/samsung/Kconfig-148-\thelp\n"
}

13/2 2026/09/19 21:54 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 7372
							output: 30
							thoughts: 30
						

Thoughts:
Okay, here we go. Here are my thoughts on this:

**Investigating the WM8994's Multifunctionality**

Hmm, hold on a second. I need to clarify something about the WM8994. Is it a *multifunction device* codec? My instinct says yes, but I need to be absolutely sure before I proceed with my analysis. Time to check its driver. Let's see... the most direct way to confirm this will be to examine the driver files. Okay, so I should investigate the `drivers/mfd/wm8994*` directory and see what files are in there to find if it's coded as a MFD.



14/2 2026/09/19 21:54 tool grepper
0m Args:
{
  "Expression": "wm8994",
  "PathPrefix": "drivers/mfd/"
}

Results:
{
  "Output": "\nFull output is too long, showing 500 out of 609 lines.\nUse more precise expression if possible.\n\ndrivers/mfd/Makefile=69=obj-$(CONFIG_MFD_WM8350_I2C)\t+= wm8350-i2c.o\ndrivers/mfd/Makefile:70:wm8994-objs\t\t\t:= wm8994-core.o wm8994-irq.o wm8994-regmap.o\ndrivers/mfd/Makefile:71:obj-$(CONFIG_MFD_WM8994)\t+= wm8994.o\ndrivers/mfd/Makefile-72-obj-$(CONFIG_MFD_WM97xx)\t+= wm97xx-core.o\n--\ndrivers/mfd/wm8994-core.c-2-/*\ndrivers/mfd/wm8994-core.c:3: * wm8994-core.c  --  Device access for Wolfson WM8994\ndrivers/mfd/wm8994-core.c-4- *\n--\ndrivers/mfd/wm8994-core.c-22-\ndrivers/mfd/wm8994-core.c:23:#include \u003clinux/mfd/wm8994/core.h\u003e\ndrivers/mfd/wm8994-core.c:24:#include \u003clinux/mfd/wm8994/pdata.h\u003e\ndrivers/mfd/wm8994-core.c:25:#include \u003clinux/mfd/wm8994/registers.h\u003e\ndrivers/mfd/wm8994-core.c-26-\ndrivers/mfd/wm8994-core.c:27:#include \"wm8994.h\"\ndrivers/mfd/wm8994-core.c-28-\ndrivers/mfd/wm8994-core.c:29:static const struct mfd_cell wm8994_regulator_devs[] = {\ndrivers/mfd/wm8994-core.c-30-\t{\ndrivers/mfd/wm8994-core.c:31:\t\t.name = \"wm8994-ldo\",\ndrivers/mfd/wm8994-core.c-32-\t\t.id = 0,\n--\ndrivers/mfd/wm8994-core.c-35-\t{\ndrivers/mfd/wm8994-core.c:36:\t\t.name = \"wm8994-ldo\",\ndrivers/mfd/wm8994-core.c-37-\t\t.id = 1,\n--\ndrivers/mfd/wm8994-core.c-41-\ndrivers/mfd/wm8994-core.c:42:static const struct resource wm8994_codec_resources[] = {\ndrivers/mfd/wm8994-core.c-43-\t{\n--\ndrivers/mfd/wm8994-core.c-49-\ndrivers/mfd/wm8994-core.c:50:static const struct resource wm8994_gpio_resources[] = {\ndrivers/mfd/wm8994-core.c-51-\t{\n--\ndrivers/mfd/wm8994-core.c-57-\ndrivers/mfd/wm8994-core.c:58:static const struct mfd_cell wm8994_devs[] = {\ndrivers/mfd/wm8994-core.c-59-\t{\ndrivers/mfd/wm8994-core.c:60:\t\t.name = \"wm8994-codec\",\ndrivers/mfd/wm8994-core.c:61:\t\t.num_resources = ARRAY_SIZE(wm8994_codec_resources),\ndrivers/mfd/wm8994-core.c:62:\t\t.resources = wm8994_codec_resources,\ndrivers/mfd/wm8994-core.c-63-\t},\n--\ndrivers/mfd/wm8994-core.c-65-\t{\ndrivers/mfd/wm8994-core.c:66:\t\t.name = \"wm8994-gpio\",\ndrivers/mfd/wm8994-core.c:67:\t\t.num_resources = ARRAY_SIZE(wm8994_gpio_resources),\ndrivers/mfd/wm8994-core.c:68:\t\t.resources = wm8994_gpio_resources,\ndrivers/mfd/wm8994-core.c-69-\t\t.pm_runtime_no_callbacks = true,\n--\ndrivers/mfd/wm8994-core.c=78=static const char *wm1811_main_supplies[] = {\n--\ndrivers/mfd/wm8994-core.c-89-\ndrivers/mfd/wm8994-core.c:90:static const char *wm8994_main_supplies[] = {\ndrivers/mfd/wm8994-core.c-91-\t\"DBVDD\",\n--\ndrivers/mfd/wm8994-core.c=100=static const char *wm8958_main_supplies[] = {\n--\ndrivers/mfd/wm8994-core.c-111-\ndrivers/mfd/wm8994-core.c:112:static int wm8994_suspend(struct device *dev)\ndrivers/mfd/wm8994-core.c-113-{\ndrivers/mfd/wm8994-core.c:114:\tstruct wm8994 *wm8994 = dev_get_drvdata(dev);\ndrivers/mfd/wm8994-core.c-115-\tint ret;\n--\ndrivers/mfd/wm8994-core.c-118-\t * still active for accessory detect. */\ndrivers/mfd/wm8994-core.c:119:\tswitch (wm8994-\u003etype) {\ndrivers/mfd/wm8994-core.c-120-\tcase WM8958:\ndrivers/mfd/wm8994-core.c-121-\tcase WM1811:\ndrivers/mfd/wm8994-core.c:122:\t\tret = wm8994_reg_read(wm8994, WM8958_MIC_DETECT_1);\ndrivers/mfd/wm8994-core.c-123-\t\tif (ret \u003c 0) {\n--\ndrivers/mfd/wm8994-core.c-135-\t * don't know that something will be driving them. */\ndrivers/mfd/wm8994-core.c:136:\tif (!wm8994-\u003eldo_ena_always_driven)\ndrivers/mfd/wm8994-core.c:137:\t\twm8994_set_bits(wm8994, WM8994_PULL_CONTROL_2,\ndrivers/mfd/wm8994-core.c-138-\t\t\t\tWM8994_LDO1ENA_PD | WM8994_LDO2ENA_PD,\n--\ndrivers/mfd/wm8994-core.c-143-\t */\ndrivers/mfd/wm8994-core.c:144:\twm8994_reg_write(wm8994, WM8994_SOFTWARE_RESET,\ndrivers/mfd/wm8994-core.c:145:\t\t\t wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET));\ndrivers/mfd/wm8994-core.c-146-\ndrivers/mfd/wm8994-core.c:147:\tregcache_mark_dirty(wm8994-\u003eregmap);\ndrivers/mfd/wm8994-core.c-148-\n--\ndrivers/mfd/wm8994-core.c-151-\t */\ndrivers/mfd/wm8994-core.c:152:\tret = regcache_sync_region(wm8994-\u003eregmap, WM8994_GPIO_1,\ndrivers/mfd/wm8994-core.c-153-\t\t\t\t   WM8994_GPIO_11);\n--\ndrivers/mfd/wm8994-core.c-157-\t/* In case one of the GPIOs is used as a wake input. */\ndrivers/mfd/wm8994-core.c:158:\tret = regcache_sync_region(wm8994-\u003eregmap,\ndrivers/mfd/wm8994-core.c-159-\t\t\t\t   WM8994_INTERRUPT_STATUS_1_MASK,\n--\ndrivers/mfd/wm8994-core.c-163-\ndrivers/mfd/wm8994-core.c:164:\tregcache_cache_only(wm8994-\u003eregmap, true);\ndrivers/mfd/wm8994-core.c:165:\twm8994-\u003esuspended = true;\ndrivers/mfd/wm8994-core.c-166-\ndrivers/mfd/wm8994-core.c:167:\tret = regulator_bulk_disable(wm8994-\u003enum_supplies,\ndrivers/mfd/wm8994-core.c:168:\t\t\t\t     wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c-169-\tif (ret != 0) {\n--\ndrivers/mfd/wm8994-core.c-176-\ndrivers/mfd/wm8994-core.c:177:static int wm8994_resume(struct device *dev)\ndrivers/mfd/wm8994-core.c-178-{\ndrivers/mfd/wm8994-core.c:179:\tstruct wm8994 *wm8994 = dev_get_drvdata(dev);\ndrivers/mfd/wm8994-core.c-180-\tint ret;\n--\ndrivers/mfd/wm8994-core.c-182-\t/* We may have lied to the PM core about suspending */\ndrivers/mfd/wm8994-core.c:183:\tif (!wm8994-\u003esuspended)\ndrivers/mfd/wm8994-core.c-184-\t\treturn 0;\ndrivers/mfd/wm8994-core.c-185-\ndrivers/mfd/wm8994-core.c:186:\tret = regulator_bulk_enable(wm8994-\u003enum_supplies,\ndrivers/mfd/wm8994-core.c:187:\t\t\t\t    wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c-188-\tif (ret != 0) {\n--\ndrivers/mfd/wm8994-core.c-192-\ndrivers/mfd/wm8994-core.c:193:\tregcache_cache_only(wm8994-\u003eregmap, false);\ndrivers/mfd/wm8994-core.c:194:\tret = regcache_sync(wm8994-\u003eregmap);\ndrivers/mfd/wm8994-core.c-195-\tif (ret != 0) {\n--\ndrivers/mfd/wm8994-core.c-200-\t/* Disable LDO pulldowns while the device is active */\ndrivers/mfd/wm8994-core.c:201:\twm8994_set_bits(wm8994, WM8994_PULL_CONTROL_2,\ndrivers/mfd/wm8994-core.c-202-\t\t\tWM8994_LDO1ENA_PD | WM8994_LDO2ENA_PD,\n--\ndrivers/mfd/wm8994-core.c-204-\ndrivers/mfd/wm8994-core.c:205:\twm8994-\u003esuspended = false;\ndrivers/mfd/wm8994-core.c-206-\n--\ndrivers/mfd/wm8994-core.c-209-err_enable:\ndrivers/mfd/wm8994-core.c:210:\tregulator_bulk_disable(wm8994-\u003enum_supplies, wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c-211-\n--\ndrivers/mfd/wm8994-core.c-215-#ifdef CONFIG_REGULATOR\ndrivers/mfd/wm8994-core.c:216:static int wm8994_ldo_in_use(struct wm8994_pdata *pdata, int ldo)\ndrivers/mfd/wm8994-core.c-217-{\ndrivers/mfd/wm8994-core.c:218:\tstruct wm8994_ldo_pdata *ldo_pdata;\ndrivers/mfd/wm8994-core.c-219-\n--\ndrivers/mfd/wm8994-core.c-230-#else\ndrivers/mfd/wm8994-core.c:231:static int wm8994_ldo_in_use(struct wm8994_pdata *pdata, int ldo)\ndrivers/mfd/wm8994-core.c-232-{\n--\ndrivers/mfd/wm8994-core.c-236-\ndrivers/mfd/wm8994-core.c:237:static const struct reg_sequence wm8994_revc_patch[] = {\ndrivers/mfd/wm8994-core.c-238-\t{ 0x102, 0x3 },\n--\ndrivers/mfd/wm8994-core.c=251=static const struct reg_sequence wm1811_reva_patch[] = {\n--\ndrivers/mfd/wm8994-core.c-259-#ifdef CONFIG_OF\ndrivers/mfd/wm8994-core.c:260:static int wm8994_set_pdata_from_of(struct wm8994 *wm8994)\ndrivers/mfd/wm8994-core.c-261-{\ndrivers/mfd/wm8994-core.c:262:\tstruct device_node *np = wm8994-\u003edev-\u003eof_node;\ndrivers/mfd/wm8994-core.c:263:\tstruct wm8994_pdata *pdata = \u0026wm8994-\u003epdata;\ndrivers/mfd/wm8994-core.c-264-\tint i;\n--\ndrivers/mfd/wm8994-core.c-271-\t\tfor (i = 0; i \u003c ARRAY_SIZE(pdata-\u003egpio_defaults); i++) {\ndrivers/mfd/wm8994-core.c:272:\t\t\tif (wm8994-\u003epdata.gpio_defaults[i] == 0)\ndrivers/mfd/wm8994-core.c-273-\t\t\t\tpdata-\u003egpio_defaults[i]\n--\ndrivers/mfd/wm8994-core.c-293-#else\ndrivers/mfd/wm8994-core.c:294:static int wm8994_set_pdata_from_of(struct wm8994 *wm8994)\ndrivers/mfd/wm8994-core.c-295-{\n--\ndrivers/mfd/wm8994-core.c-302- */\ndrivers/mfd/wm8994-core.c:303:static int wm8994_device_init(struct wm8994 *wm8994, int irq)\ndrivers/mfd/wm8994-core.c-304-{\ndrivers/mfd/wm8994-core.c:305:\tstruct wm8994_pdata *pdata;\ndrivers/mfd/wm8994-core.c-306-\tstruct regmap_config *regmap_config;\n--\ndrivers/mfd/wm8994-core.c-311-\ndrivers/mfd/wm8994-core.c:312:\tif (dev_get_platdata(wm8994-\u003edev)) {\ndrivers/mfd/wm8994-core.c:313:\t\tpdata = dev_get_platdata(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c:314:\t\twm8994-\u003epdata = *pdata;\ndrivers/mfd/wm8994-core.c-315-\t}\ndrivers/mfd/wm8994-core.c:316:\tpdata = \u0026wm8994-\u003epdata;\ndrivers/mfd/wm8994-core.c-317-\ndrivers/mfd/wm8994-core.c:318:\tret = wm8994_set_pdata_from_of(wm8994);\ndrivers/mfd/wm8994-core.c-319-\tif (ret != 0)\n--\ndrivers/mfd/wm8994-core.c-322-\t/* Add the on-chip regulators first for bootstrapping */\ndrivers/mfd/wm8994-core.c:323:\tret = mfd_add_devices(wm8994-\u003edev, 0,\ndrivers/mfd/wm8994-core.c:324:\t\t\t      wm8994_regulator_devs,\ndrivers/mfd/wm8994-core.c:325:\t\t\t      ARRAY_SIZE(wm8994_regulator_devs),\ndrivers/mfd/wm8994-core.c-326-\t\t\t      NULL, 0, NULL);\ndrivers/mfd/wm8994-core.c-327-\tif (ret != 0) {\ndrivers/mfd/wm8994-core.c:328:\t\tdev_err(wm8994-\u003edev, \"Failed to add children: %d\\n\", ret);\ndrivers/mfd/wm8994-core.c-329-\t\tgoto err;\n--\ndrivers/mfd/wm8994-core.c-331-\ndrivers/mfd/wm8994-core.c:332:\tswitch (wm8994-\u003etype) {\ndrivers/mfd/wm8994-core.c-333-\tcase WM1811:\ndrivers/mfd/wm8994-core.c:334:\t\twm8994-\u003enum_supplies = ARRAY_SIZE(wm1811_main_supplies);\ndrivers/mfd/wm8994-core.c-335-\t\tbreak;\ndrivers/mfd/wm8994-core.c-336-\tcase WM8994:\ndrivers/mfd/wm8994-core.c:337:\t\twm8994-\u003enum_supplies = ARRAY_SIZE(wm8994_main_supplies);\ndrivers/mfd/wm8994-core.c-338-\t\tbreak;\ndrivers/mfd/wm8994-core.c-339-\tcase WM8958:\ndrivers/mfd/wm8994-core.c:340:\t\twm8994-\u003enum_supplies = ARRAY_SIZE(wm8958_main_supplies);\ndrivers/mfd/wm8994-core.c-341-\t\tbreak;\n--\ndrivers/mfd/wm8994-core.c-346-\ndrivers/mfd/wm8994-core.c:347:\twm8994-\u003esupplies = devm_kcalloc(wm8994-\u003edev,\ndrivers/mfd/wm8994-core.c:348:\t\t\t\t\twm8994-\u003enum_supplies,\ndrivers/mfd/wm8994-core.c-349-\t\t\t\t\tsizeof(struct regulator_bulk_data),\ndrivers/mfd/wm8994-core.c-350-\t\t\t\t\tGFP_KERNEL);\ndrivers/mfd/wm8994-core.c:351:\tif (!wm8994-\u003esupplies) {\ndrivers/mfd/wm8994-core.c-352-\t\tret = -ENOMEM;\n--\ndrivers/mfd/wm8994-core.c-355-\ndrivers/mfd/wm8994-core.c:356:\tswitch (wm8994-\u003etype) {\ndrivers/mfd/wm8994-core.c-357-\tcase WM1811:\ndrivers/mfd/wm8994-core.c-358-\t\tfor (i = 0; i \u003c ARRAY_SIZE(wm1811_main_supplies); i++)\ndrivers/mfd/wm8994-core.c:359:\t\t\twm8994-\u003esupplies[i].supply = wm1811_main_supplies[i];\ndrivers/mfd/wm8994-core.c-360-\t\tbreak;\ndrivers/mfd/wm8994-core.c-361-\tcase WM8994:\ndrivers/mfd/wm8994-core.c:362:\t\tfor (i = 0; i \u003c ARRAY_SIZE(wm8994_main_supplies); i++)\ndrivers/mfd/wm8994-core.c:363:\t\t\twm8994-\u003esupplies[i].supply = wm8994_main_supplies[i];\ndrivers/mfd/wm8994-core.c-364-\t\tbreak;\n--\ndrivers/mfd/wm8994-core.c-366-\t\tfor (i = 0; i \u003c ARRAY_SIZE(wm8958_main_supplies); i++)\ndrivers/mfd/wm8994-core.c:367:\t\t\twm8994-\u003esupplies[i].supply = wm8958_main_supplies[i];\ndrivers/mfd/wm8994-core.c-368-\t\tbreak;\n--\ndrivers/mfd/wm8994-core.c-375-\t * Can't use devres helper here as some of the supplies are provided by\ndrivers/mfd/wm8994-core.c:376:\t * wm8994-\u003edev's children (regulators) and those regulators are\ndrivers/mfd/wm8994-core.c-377-\t * unregistered by the devres core before the supplies are freed.\ndrivers/mfd/wm8994-core.c-378-\t */\ndrivers/mfd/wm8994-core.c:379:\tret = regulator_bulk_get(wm8994-\u003edev, wm8994-\u003enum_supplies,\ndrivers/mfd/wm8994-core.c:380:\t\t\t\t wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c-381-\tif (ret != 0) {\ndrivers/mfd/wm8994-core.c-382-\t\tif (ret != -EPROBE_DEFER)\ndrivers/mfd/wm8994-core.c:383:\t\t\tdev_err(wm8994-\u003edev, \"Failed to get supplies: %d\\n\",\ndrivers/mfd/wm8994-core.c-384-\t\t\t\tret);\n--\ndrivers/mfd/wm8994-core.c-387-\ndrivers/mfd/wm8994-core.c:388:\tret = regulator_bulk_enable(wm8994-\u003enum_supplies, wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c-389-\tif (ret != 0) {\ndrivers/mfd/wm8994-core.c:390:\t\tdev_err(wm8994-\u003edev, \"Failed to enable supplies: %d\\n\", ret);\ndrivers/mfd/wm8994-core.c-391-\t\tgoto err_regulator_free;\n--\ndrivers/mfd/wm8994-core.c-393-\ndrivers/mfd/wm8994-core.c:394:\tret = wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET);\ndrivers/mfd/wm8994-core.c-395-\tif (ret \u003c 0) {\ndrivers/mfd/wm8994-core.c:396:\t\tdev_err(wm8994-\u003edev, \"Failed to read ID register\\n\");\ndrivers/mfd/wm8994-core.c-397-\t\tgoto err_enable;\n--\ndrivers/mfd/wm8994-core.c-401-\t\tdevname = \"WM1811\";\ndrivers/mfd/wm8994-core.c:402:\t\tif (wm8994-\u003etype != WM1811)\ndrivers/mfd/wm8994-core.c:403:\t\t\tdev_warn(wm8994-\u003edev, \"Device registered as type %d\\n\",\ndrivers/mfd/wm8994-core.c:404:\t\t\t\t wm8994-\u003etype);\ndrivers/mfd/wm8994-core.c:405:\t\twm8994-\u003etype = WM1811;\ndrivers/mfd/wm8994-core.c-406-\t\tbreak;\n--\ndrivers/mfd/wm8994-core.c-408-\t\tdevname = \"WM8994\";\ndrivers/mfd/wm8994-core.c:409:\t\tif (wm8994-\u003etype != WM8994)\ndrivers/mfd/wm8994-core.c:410:\t\t\tdev_warn(wm8994-\u003edev, \"Device registered as type %d\\n\",\ndrivers/mfd/wm8994-core.c:411:\t\t\t\t wm8994-\u003etype);\ndrivers/mfd/wm8994-core.c:412:\t\twm8994-\u003etype = WM8994;\ndrivers/mfd/wm8994-core.c-413-\t\tbreak;\n--\ndrivers/mfd/wm8994-core.c-415-\t\tdevname = \"WM8958\";\ndrivers/mfd/wm8994-core.c:416:\t\tif (wm8994-\u003etype != WM8958)\ndrivers/mfd/wm8994-core.c:417:\t\t\tdev_warn(wm8994-\u003edev, \"Device registered as type %d\\n\",\ndrivers/mfd/wm8994-core.c:418:\t\t\t\t wm8994-\u003etype);\ndrivers/mfd/wm8994-core.c:419:\t\twm8994-\u003etype = WM8958;\ndrivers/mfd/wm8994-core.c-420-\t\tbreak;\ndrivers/mfd/wm8994-core.c-421-\tdefault:\ndrivers/mfd/wm8994-core.c:422:\t\tdev_err(wm8994-\u003edev, \"Device is not a WM8994, ID is %x\\n\",\ndrivers/mfd/wm8994-core.c-423-\t\t\tret);\n--\ndrivers/mfd/wm8994-core.c-427-\ndrivers/mfd/wm8994-core.c:428:\tret = wm8994_reg_read(wm8994, WM8994_CHIP_REVISION);\ndrivers/mfd/wm8994-core.c-429-\tif (ret \u003c 0) {\ndrivers/mfd/wm8994-core.c:430:\t\tdev_err(wm8994-\u003edev, \"Failed to read revision register: %d\\n\",\ndrivers/mfd/wm8994-core.c-431-\t\t\tret);\n--\ndrivers/mfd/wm8994-core.c-433-\t}\ndrivers/mfd/wm8994-core.c:434:\twm8994-\u003erevision = ret \u0026 WM8994_CHIP_REV_MASK;\ndrivers/mfd/wm8994-core.c:435:\twm8994-\u003ecust_id = (ret \u0026 WM8994_CUST_ID_MASK) \u003e\u003e WM8994_CUST_ID_SHIFT;\ndrivers/mfd/wm8994-core.c-436-\ndrivers/mfd/wm8994-core.c:437:\tswitch (wm8994-\u003etype) {\ndrivers/mfd/wm8994-core.c-438-\tcase WM8994:\ndrivers/mfd/wm8994-core.c:439:\t\tswitch (wm8994-\u003erevision) {\ndrivers/mfd/wm8994-core.c-440-\t\tcase 0:\ndrivers/mfd/wm8994-core.c-441-\t\tcase 1:\ndrivers/mfd/wm8994-core.c:442:\t\t\tdev_warn(wm8994-\u003edev,\ndrivers/mfd/wm8994-core.c-443-\t\t\t\t \"revision %c not fully supported\\n\",\ndrivers/mfd/wm8994-core.c:444:\t\t\t\t 'A' + wm8994-\u003erevision);\ndrivers/mfd/wm8994-core.c-445-\t\t\tbreak;\n--\ndrivers/mfd/wm8994-core.c-448-\t\tdefault:\ndrivers/mfd/wm8994-core.c:449:\t\t\tregmap_patch = wm8994_revc_patch;\ndrivers/mfd/wm8994-core.c:450:\t\t\tpatch_regs = ARRAY_SIZE(wm8994_revc_patch);\ndrivers/mfd/wm8994-core.c-451-\t\t\tbreak;\n--\ndrivers/mfd/wm8994-core.c-455-\tcase WM8958:\ndrivers/mfd/wm8994-core.c:456:\t\tswitch (wm8994-\u003erevision) {\ndrivers/mfd/wm8994-core.c-457-\t\tcase 0:\n--\ndrivers/mfd/wm8994-core.c-467-\t\t/* Revision C did not change the relevant layer */\ndrivers/mfd/wm8994-core.c:468:\t\tif (wm8994-\u003erevision \u003e 1)\ndrivers/mfd/wm8994-core.c:469:\t\t\twm8994-\u003erevision++;\ndrivers/mfd/wm8994-core.c-470-\n--\ndrivers/mfd/wm8994-core.c-478-\ndrivers/mfd/wm8994-core.c:479:\tdev_info(wm8994-\u003edev, \"%s revision %c CUST_ID %02x\\n\", devname,\ndrivers/mfd/wm8994-core.c:480:\t\t 'A' + wm8994-\u003erevision, wm8994-\u003ecust_id);\ndrivers/mfd/wm8994-core.c-481-\ndrivers/mfd/wm8994-core.c:482:\tswitch (wm8994-\u003etype) {\ndrivers/mfd/wm8994-core.c-483-\tcase WM1811:\n--\ndrivers/mfd/wm8994-core.c-486-\tcase WM8994:\ndrivers/mfd/wm8994-core.c:487:\t\tregmap_config = \u0026wm8994_regmap_config;\ndrivers/mfd/wm8994-core.c-488-\t\tbreak;\n--\ndrivers/mfd/wm8994-core.c-492-\tdefault:\ndrivers/mfd/wm8994-core.c:493:\t\tdev_err(wm8994-\u003edev, \"Unknown device type %d\\n\", wm8994-\u003etype);\ndrivers/mfd/wm8994-core.c-494-\t\tret = -EINVAL;\n--\ndrivers/mfd/wm8994-core.c-497-\ndrivers/mfd/wm8994-core.c:498:\tret = regmap_reinit_cache(wm8994-\u003eregmap, regmap_config);\ndrivers/mfd/wm8994-core.c-499-\tif (ret != 0) {\ndrivers/mfd/wm8994-core.c:500:\t\tdev_err(wm8994-\u003edev, \"Failed to reinit register cache: %d\\n\",\ndrivers/mfd/wm8994-core.c-501-\t\t\tret);\n--\ndrivers/mfd/wm8994-core.c-508-\t */\ndrivers/mfd/wm8994-core.c:509:\tret = wm8994_reg_write(wm8994, WM8994_SOFTWARE_RESET,\ndrivers/mfd/wm8994-core.c:510:\t\t\t       wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET));\ndrivers/mfd/wm8994-core.c-511-\tif (ret != 0) {\ndrivers/mfd/wm8994-core.c:512:\t\tdev_err(wm8994-\u003edev, \"Failed to reset device: %d\\n\", ret);\ndrivers/mfd/wm8994-core.c-513-\t\tgoto err_enable;\n--\ndrivers/mfd/wm8994-core.c-516-\tif (regmap_patch) {\ndrivers/mfd/wm8994-core.c:517:\t\tret = regmap_register_patch(wm8994-\u003eregmap, regmap_patch,\ndrivers/mfd/wm8994-core.c-518-\t\t\t\t\t    patch_regs);\ndrivers/mfd/wm8994-core.c-519-\t\tif (ret != 0) {\ndrivers/mfd/wm8994-core.c:520:\t\t\tdev_err(wm8994-\u003edev, \"Failed to register patch: %d\\n\",\ndrivers/mfd/wm8994-core.c-521-\t\t\t\tret);\n--\ndrivers/mfd/wm8994-core.c-525-\ndrivers/mfd/wm8994-core.c:526:\twm8994-\u003eirq_base = pdata-\u003eirq_base;\ndrivers/mfd/wm8994-core.c:527:\twm8994-\u003egpio_base = pdata-\u003egpio_base;\ndrivers/mfd/wm8994-core.c-528-\n--\ndrivers/mfd/wm8994-core.c-531-\t\tif (pdata-\u003egpio_defaults[i]) {\ndrivers/mfd/wm8994-core.c:532:\t\t\twm8994_set_bits(wm8994, WM8994_GPIO_1 + i,\ndrivers/mfd/wm8994-core.c-533-\t\t\t\t\t0xffff, pdata-\u003egpio_defaults[i]);\n--\ndrivers/mfd/wm8994-core.c-536-\ndrivers/mfd/wm8994-core.c:537:\twm8994-\u003eldo_ena_always_driven = pdata-\u003eldo_ena_always_driven;\ndrivers/mfd/wm8994-core.c-538-\n--\ndrivers/mfd/wm8994-core.c-544-\t/* Disable unneeded pulls */\ndrivers/mfd/wm8994-core.c:545:\twm8994_set_bits(wm8994, WM8994_PULL_CONTROL_2,\ndrivers/mfd/wm8994-core.c-546-\t\t\tWM8994_LDO1ENA_PD | WM8994_LDO2ENA_PD |\n--\ndrivers/mfd/wm8994-core.c-556-\tfor (i = 0; i \u003c WM8994_NUM_LDO_REGS; i++) {\ndrivers/mfd/wm8994-core.c:557:\t\tif (wm8994_ldo_in_use(pdata, i))\ndrivers/mfd/wm8994-core.c:558:\t\t\twm8994_set_bits(wm8994, WM8994_LDO_1 + i,\ndrivers/mfd/wm8994-core.c-559-\t\t\t\t\tWM8994_LDO1_DISCH, WM8994_LDO1_DISCH);\ndrivers/mfd/wm8994-core.c-560-\t\telse\ndrivers/mfd/wm8994-core.c:561:\t\t\twm8994_set_bits(wm8994, WM8994_LDO_1 + i,\ndrivers/mfd/wm8994-core.c-562-\t\t\t\t\tWM8994_LDO1_DISCH, 0);\n--\ndrivers/mfd/wm8994-core.c-564-\ndrivers/mfd/wm8994-core.c:565:\twm8994_irq_init(wm8994);\ndrivers/mfd/wm8994-core.c-566-\ndrivers/mfd/wm8994-core.c:567:\tret = mfd_add_devices(wm8994-\u003edev, -1,\ndrivers/mfd/wm8994-core.c:568:\t\t\t      wm8994_devs, ARRAY_SIZE(wm8994_devs),\ndrivers/mfd/wm8994-core.c-569-\t\t\t      NULL, 0, NULL);\ndrivers/mfd/wm8994-core.c-570-\tif (ret != 0) {\ndrivers/mfd/wm8994-core.c:571:\t\tdev_err(wm8994-\u003edev, \"Failed to add children: %d\\n\", ret);\ndrivers/mfd/wm8994-core.c-572-\t\tgoto err_irq;\n--\ndrivers/mfd/wm8994-core.c-574-\ndrivers/mfd/wm8994-core.c:575:\tpm_runtime_set_active(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c:576:\tpm_runtime_enable(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c:577:\tpm_runtime_idle(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c-578-\n--\ndrivers/mfd/wm8994-core.c-581-err_irq:\ndrivers/mfd/wm8994-core.c:582:\twm8994_irq_exit(wm8994);\ndrivers/mfd/wm8994-core.c-583-err_enable:\ndrivers/mfd/wm8994-core.c:584:\tregulator_bulk_disable(wm8994-\u003enum_supplies,\ndrivers/mfd/wm8994-core.c:585:\t\t\t       wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c-586-err_regulator_free:\ndrivers/mfd/wm8994-core.c:587:\tregulator_bulk_free(wm8994-\u003enum_supplies, wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c-588-err:\ndrivers/mfd/wm8994-core.c:589:\tmfd_remove_devices(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c-590-\treturn ret;\n--\ndrivers/mfd/wm8994-core.c-592-\ndrivers/mfd/wm8994-core.c:593:static void wm8994_device_exit(struct wm8994 *wm8994)\ndrivers/mfd/wm8994-core.c-594-{\ndrivers/mfd/wm8994-core.c:595:\tpm_runtime_get_sync(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c:596:\tpm_runtime_disable(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c:597:\tpm_runtime_put_noidle(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c:598:\twm8994_irq_exit(wm8994);\ndrivers/mfd/wm8994-core.c:599:\tregulator_bulk_disable(wm8994-\u003enum_supplies, wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c:600:\tregulator_bulk_free(wm8994-\u003enum_supplies, wm8994-\u003esupplies);\ndrivers/mfd/wm8994-core.c:601:\tmfd_remove_devices(wm8994-\u003edev);\ndrivers/mfd/wm8994-core.c-602-}\ndrivers/mfd/wm8994-core.c-603-\ndrivers/mfd/wm8994-core.c:604:static const struct of_device_id wm8994_of_match[] = {\ndrivers/mfd/wm8994-core.c-605-\t{ .compatible = \"wlf,wm1811\", .data = (void *)WM1811 },\ndrivers/mfd/wm8994-core.c:606:\t{ .compatible = \"wlf,wm8994\", .data = (void *)WM8994 },\ndrivers/mfd/wm8994-core.c-607-\t{ .compatible = \"wlf,wm8958\", .data = (void *)WM8958 },\n--\ndrivers/mfd/wm8994-core.c-609-};\ndrivers/mfd/wm8994-core.c:610:MODULE_DEVICE_TABLE(of, wm8994_of_match);\ndrivers/mfd/wm8994-core.c-611-\ndrivers/mfd/wm8994-core.c:612:static int wm8994_i2c_probe(struct i2c_client *i2c)\ndrivers/mfd/wm8994-core.c-613-{\ndrivers/mfd/wm8994-core.c:614:\tstruct wm8994 *wm8994;\ndrivers/mfd/wm8994-core.c-615-\tint ret;\ndrivers/mfd/wm8994-core.c-616-\ndrivers/mfd/wm8994-core.c:617:\twm8994 = devm_kzalloc(\u0026i2c-\u003edev, sizeof(struct wm8994), GFP_KERNEL);\ndrivers/mfd/wm8994-core.c:618:\tif (wm8994 == NULL)\ndrivers/mfd/wm8994-core.c-619-\t\treturn -ENOMEM;\ndrivers/mfd/wm8994-core.c-620-\ndrivers/mfd/wm8994-core.c:621:\ti2c_set_clientdata(i2c, wm8994);\ndrivers/mfd/wm8994-core.c:622:\twm8994-\u003edev = \u0026i2c-\u003edev;\ndrivers/mfd/wm8994-core.c:623:\twm8994-\u003eirq = i2c-\u003eirq;\ndrivers/mfd/wm8994-core.c-624-\ndrivers/mfd/wm8994-core.c:625:\twm8994-\u003etype = (kernel_ulong_t)i2c_get_match_data(i2c);\ndrivers/mfd/wm8994-core.c-626-\ndrivers/mfd/wm8994-core.c:627:\twm8994-\u003eregmap = devm_regmap_init_i2c(i2c, \u0026wm8994_base_regmap_config);\ndrivers/mfd/wm8994-core.c:628:\tif (IS_ERR(wm8994-\u003eregmap)) {\ndrivers/mfd/wm8994-core.c:629:\t\tret = PTR_ERR(wm8994-\u003eregmap);\ndrivers/mfd/wm8994-core.c:630:\t\tdev_err(wm8994-\u003edev, \"Failed to allocate register map: %d\\n\",\ndrivers/mfd/wm8994-core.c-631-\t\t\tret);\n--\ndrivers/mfd/wm8994-core.c-634-\ndrivers/mfd/wm8994-core.c:635:\treturn wm8994_device_init(wm8994, i2c-\u003eirq);\ndrivers/mfd/wm8994-core.c-636-}\ndrivers/mfd/wm8994-core.c-637-\ndrivers/mfd/wm8994-core.c:638:static void wm8994_i2c_remove(struct i2c_client *i2c)\ndrivers/mfd/wm8994-core.c-639-{\ndrivers/mfd/wm8994-core.c:640:\tstruct wm8994 *wm8994 = i2c_get_clientdata(i2c);\ndrivers/mfd/wm8994-core.c-641-\ndrivers/mfd/wm8994-core.c:642:\twm8994_device_exit(wm8994);\ndrivers/mfd/wm8994-core.c-643-}\ndrivers/mfd/wm8994-core.c-644-\ndrivers/mfd/wm8994-core.c:645:static const struct i2c_device_id wm8994_i2c_id[] = {\ndrivers/mfd/wm8994-core.c-646-\t{ \"wm1811\", WM1811 },\ndrivers/mfd/wm8994-core.c-647-\t{ \"wm1811a\", WM1811 },\ndrivers/mfd/wm8994-core.c:648:\t{ \"wm8994\", WM8994 },\ndrivers/mfd/wm8994-core.c-649-\t{ \"wm8958\", WM8958 },\n--\ndrivers/mfd/wm8994-core.c-651-};\ndrivers/mfd/wm8994-core.c:652:MODULE_DEVICE_TABLE(i2c, wm8994_i2c_id);\ndrivers/mfd/wm8994-core.c-653-\ndrivers/mfd/wm8994-core.c:654:static const struct dev_pm_ops wm8994_pm_ops = {\ndrivers/mfd/wm8994-core.c:655:\tRUNTIME_PM_OPS(wm8994_suspend, wm8994_resume, NULL)\ndrivers/mfd/wm8994-core.c-656-};\ndrivers/mfd/wm8994-core.c-657-\ndrivers/mfd/wm8994-core.c:658:static struct i2c_driver wm8994_i2c_driver = {\ndrivers/mfd/wm8994-core.c-659-\t.driver = {\ndrivers/mfd/wm8994-core.c:660:\t\t.name = \"wm8994\",\ndrivers/mfd/wm8994-core.c:661:\t\t.pm = pm_ptr(\u0026wm8994_pm_ops),\ndrivers/mfd/wm8994-core.c:662:\t\t.of_match_table = wm8994_of_match,\ndrivers/mfd/wm8994-core.c-663-\t},\ndrivers/mfd/wm8994-core.c:664:\t.probe = wm8994_i2c_probe,\ndrivers/mfd/wm8994-core.c:665:\t.remove = wm8994_i2c_remove,\ndrivers/mfd/wm8994-core.c:666:\t.id_table = wm8994_i2c_id,\ndrivers/mfd/wm8994-core.c-667-};\ndrivers/mfd/wm8994-core.c-668-\ndrivers/mfd/wm8994-core.c:669:module_i2c_driver(wm8994_i2c_driver);\ndrivers/mfd/wm8994-core.c-670-\n--\ndrivers/mfd/wm8994-core.c=673=MODULE_AUTHOR(\"Mark Brown \u003cbroonie@opensource.wolfsonmicro.com\u003e\");\ndrivers/mfd/wm8994-core.c:674:MODULE_SOFTDEP(\"pre: wm8994_regulator\");\n--\ndrivers/mfd/wm8994-irq.c-2-/*\ndrivers/mfd/wm8994-irq.c:3: * wm8994-irq.c  --  Interrupt controller support for Wolfson WM8994\ndrivers/mfd/wm8994-irq.c-4- *\n--\ndrivers/mfd/wm8994-irq.c-19-\ndrivers/mfd/wm8994-irq.c:20:#include \u003clinux/mfd/wm8994/core.h\u003e\ndrivers/mfd/wm8994-irq.c:21:#include \u003clinux/mfd/wm8994/pdata.h\u003e\ndrivers/mfd/wm8994-irq.c:22:#include \u003clinux/mfd/wm8994/registers.h\u003e\ndrivers/mfd/wm8994-irq.c-23-\n--\ndrivers/mfd/wm8994-irq.c-25-\ndrivers/mfd/wm8994-irq.c:26:static const struct regmap_irq wm8994_irqs[] = {\ndrivers/mfd/wm8994-irq.c-27-\t[WM8994_IRQ_TEMP_SHUT] = {\n--\ndrivers/mfd/wm8994-irq.c-125-\ndrivers/mfd/wm8994-irq.c:126:static const struct regmap_irq_chip wm8994_irq_chip = {\ndrivers/mfd/wm8994-irq.c:127:\t.name = \"wm8994\",\ndrivers/mfd/wm8994-irq.c:128:\t.irqs = wm8994_irqs,\ndrivers/mfd/wm8994-irq.c:129:\t.num_irqs = ARRAY_SIZE(wm8994_irqs),\ndrivers/mfd/wm8994-irq.c-130-\n--\ndrivers/mfd/wm8994-irq.c-137-\ndrivers/mfd/wm8994-irq.c:138:int wm8994_irq_init(struct wm8994 *wm8994)\ndrivers/mfd/wm8994-irq.c-139-{\n--\ndrivers/mfd/wm8994-irq.c-141-\ndrivers/mfd/wm8994-irq.c:142:\tif (!wm8994-\u003eirq) {\ndrivers/mfd/wm8994-irq.c:143:\t\tdev_warn(wm8994-\u003edev,\ndrivers/mfd/wm8994-irq.c-144-\t\t\t \"No interrupt specified, no interrupts\\n\");\ndrivers/mfd/wm8994-irq.c:145:\t\twm8994-\u003eirq_base = 0;\ndrivers/mfd/wm8994-irq.c-146-\t\treturn 0;\n--\n\n"
}

15/2 2026/09/19 21:54 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 21532
							output: 41
							thoughts: 39
						

Thoughts:
Here's my take on the thought process, as if it were my own:

**WM8994 Codec Driver Examination**

Okay, time to dive into the `sound/soc/codecs/wm8994.c` file. I need to refresh my memory on the `wm8994-codec` platform driver – specifically, how it's registered with the system and how the probe function is implemented. I want to see how the device is found and initialized. I'm really looking for how the platform device is handled – how it's matched, and how the driver gets the resources it needs. I'm hoping to see the typical SoCs framework's codec interactions here. Let's see what interesting techniques the original developers might have used.



16/2 2026/09/19 21:54 tool grepper
0m Args:
{
  "Expression": "wm8994_probe",
  "PathPrefix": "sound/soc/codecs/wm8994.c"
}

Results:
{
  "Output": "sound/soc/codecs/wm8994.c=4616=static const struct snd_soc_component_driver soc_component_dev_wm8994 = {\n--\nsound/soc/codecs/wm8994.c-4626-\nsound/soc/codecs/wm8994.c:4627:static int wm8994_probe(struct platform_device *pdev)\nsound/soc/codecs/wm8994.c-4628-{\n--\nsound/soc/codecs/wm8994.c=4697=static struct platform_driver wm8994_codec_driver = {\n--\nsound/soc/codecs/wm8994.c-4701-\t},\nsound/soc/codecs/wm8994.c:4702:\t.probe = wm8994_probe,\nsound/soc/codecs/wm8994.c-4703-\t.remove = wm8994_remove,\n"
}

17/2 2026/09/19 21:54 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 22047
							output: 31
							thoughts: 204
						

Thoughts:
Here's my thought process, as I delve into this code:

**Analyzing the wm8994_mic_detect Function**

Alright, let's dissect this `wm8994_mic_detect` function, found in the `sound/soc/codecs/wm8994.c` file. My immediate question is: where is it actually being used? The function's name suggests it's involved in microphone detection, which is interesting.

First, let me confirm the existing grep information. We have the definition and declaration in the relevant `wm8994` files, so that's expected. Ah, here's a hit: `sound/soc/samsung/littlemill.c`. It looks like there's a call to `wm8994_mic_detect` within that file, specifically with `component` and `littlemill_headset` arguments, with the last argument likely indicating a flag to enable the functionality. Good, that's one call site accounted for.

Now, I need to be more thorough. I want to know if it's called anywhere else. Let me check the immediate vicinity of the `wm8994_mic_detect` definition within `wm8994.c` to see if it's called internally by other functions within the codec driver, or set up as an operation. This is crucial for understanding the complete picture of how this detection mechanism is initiated and controlled.



18/2 2026/09/19 21:54 tool grepper
0m Args:
{
  "Expression": "wm8994_mic_detect",
  "PathPrefix": "sound/"
}

Results:
{
  "Output": "sound/soc/codecs/wm8994.c=3413=static void wm8994_handle_pdata(struct wm8994_priv *wm8994)\n--\nsound/soc/codecs/wm8994.c-3490-/**\nsound/soc/codecs/wm8994.c:3491: * wm8994_mic_detect - Enable microphone detection via the WM8994 IRQ\nsound/soc/codecs/wm8994.c-3492- *\n--\nsound/soc/codecs/wm8994.c-3504- */\nsound/soc/codecs/wm8994.c:3505:int wm8994_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *jack,\nsound/soc/codecs/wm8994.c-3506-\t\t      int micbias)\n--\nsound/soc/codecs/wm8994.c-3572-}\nsound/soc/codecs/wm8994.c:3573:EXPORT_SYMBOL_GPL(wm8994_mic_detect);\nsound/soc/codecs/wm8994.c-3574-\n--\nsound/soc/codecs/wm8994.h=48=typedef void (*wm1811_mic_id_cb)(void *data, u16 status);\nsound/soc/codecs/wm8994.h-49-\nsound/soc/codecs/wm8994.h:50:int wm8994_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *jack,\nsound/soc/codecs/wm8994.h-51-\t\t      int micbias);\n--\nsound/soc/samsung/littlemill.c=269=static int littlemill_late_probe(struct snd_soc_card *card)\n--\nsound/soc/samsung/littlemill.c-308-\t/* As will this */\nsound/soc/samsung/littlemill.c:309:\twm8994_mic_detect(component, \u0026littlemill_headset, 1);\nsound/soc/samsung/littlemill.c-310-\n"
}

19/2 2026/09/19 21:54 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 23186
							output: 36
							thoughts: 82
						

Thoughts:
**Investigating the `littlemill.c` Sound Driver**

Okay, hold on a second! I need to trace this function call. I see `wm8994_mic_detect(component, &littlemill_headset, 1);` in `littlemill.c`. Right, let's figure out what `littlemill.c` actually *is*. This looks like it's a Samsung-specific driver, so I'll check `sound/soc/samsung/littlemill.c`. Okay, now I need to understand its build configuration. Let me quickly examine `sound/soc/samsung/Kconfig`. I'm guessing this file will tell me how this littlemill driver is enabled and any relevant dependencies. This should provide some insight into the overall audio architecture.



20/2 2026/09/19 21:54 tool read-file
0m Args:
{
  "File": "sound/soc/samsung/Kconfig",
  "FirstLine": 80,
  "LineCount": 20
}

Results:
{
  "Contents": "  80:\t\tselect SND_SAMSUNG_I2S\n  81:\t\tselect SND_SOC_WM5100\n  82:\t\tselect SND_SOC_WM9081\n  83:\t\n  84:\tconfig SND_SOC_LITTLEMILL\n  85:\t\ttristate \"Audio support for Wolfson Littlemill\"\n  86:\t\tdepends on I2C\n  87:\t\tdepends on MACH_WLF_CRAGG_6410 || COMPILE_TEST\n  88:\t\tselect SND_SAMSUNG_I2S\n  89:\t\tselect MFD_WM8994\n  90:\t\tselect SND_SOC_WM8994\n  91:\t\n  92:\tconfig SND_SOC_SNOW\n  93:\t\ttristate \"Audio support for Google Snow boards\"\n  94:\t\tdepends on I2C\n  95:\t\tselect SND_SOC_MAX98090\n  96:\t\tselect SND_SOC_MAX98095\n  97:\t\tselect SND_SAMSUNG_I2S\n  98:\t\thelp\n  99:\t\t  Say Y if you want to add audio support for various Snow\n"
}

21/2 2026/09/19 21:54 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 23775
							output: 37
							thoughts: 245
						

Thoughts:
**My Initial Thoughts on the SND_SOC_LITTLEMILL Dependency**

Okay, so `SND_SOC_LITTLEMILL` is conditional; it relies on either `MACH_WLF_CRAGG_6410` or `COMPILE_TEST`. Hmm, what's `MACH_WLF_CRAGG_6410`? Right, that's an ARM board, a Samsung S3C6410. And my current target architecture is amd64. That's a red flag. I'm starting to wonder if littlemill, or anything utilizing wm8994, is even *intended* to be compiled or probed on amd64. This seems highly unlikely.

Let me take a step back and examine `SND_SOC_WM8994` itself. I need to understand its build configuration. Let's look in `sound/soc/codecs/Kconfig`. Ah, here it is:

```
config SND_SOC_WM8994
	tristate
```

Okay, so `SND_SOC_WM8994` isn't directly prompted. It's a "tristate" config, meaning it's selectable by other configs. That means its selection depends on a parent, and can be 'y', 'm' or 'n'. I need to find those parents! I need to determine what's selecting `SND_SOC_WM8994`. A previous grep search gave me a clue:

1) `SND_SOC_FSL_ASOC_CARD`.

Okay, that suggests a Freescale-specific sound card config. Let me look at `sound/soc/fsl/Kconfig`, specifically around line 310. I need to see what's going on there. I need to trace this selection dependency, to better understand why this config appears on amd64.



22/2 2026/09/19 21:54 tool read-file
0m Args:
{
  "File": "sound/soc/fsl/Kconfig",
  "FirstLine": 305,
  "LineCount": 25
}

Results:
{
  "Contents": " 305:\t\n 306:\t\t  Note that this is an old driver. Consider enabling\n 307:\t\t  SND_SOC_FSL_ASOC_CARD and SND_SOC_SGTL5000 to use the newer\n 308:\t\t  driver.\n 309:\t\n 310:\tconfig SND_SOC_FSL_ASOC_CARD\n 311:\t\ttristate \"Generic ASoC Sound Card with ASRC support\"\n 312:\t\tdepends on IMX_SCMI_MISC_DRV || !IMX_SCMI_MISC_DRV\n 313:\t\tdepends on OF \u0026\u0026 I2C\n 314:\t\t# enforce SND_SOC_FSL_ASOC_CARD=m if SND_AC97_CODEC=m:\n 315:\t\tdepends on SND_AC97_CODEC || SND_AC97_CODEC=n\n 316:\t\tselect SND_SIMPLE_CARD_UTILS\n 317:\t\tselect SND_SOC_IMX_AUDMUX\n 318:\t\tselect SND_SOC_IMX_PCM_DMA\n 319:\t\tselect SND_SOC_FSL_ESAI\n 320:\t\tselect SND_SOC_FSL_SAI\n 321:\t\tselect SND_SOC_FSL_SSI\n 322:\t\tselect SND_SOC_FSL_SPDIF\n 323:\t\tselect SND_SOC_TLV320AIC31XX\n 324:\t\tselect SND_SOC_WM8994\n 325:\t\tselect MFD_WM8994\n 326:\t\thelp\n 327:\t\t ALSA SoC Audio support with ASRC feature for Freescale SoCs that have\n 328:\t\t ESAI/SAI/SSI and connect with external CODECs such as WM8962, CS42888,\n 329:\t\t CS4271, CS4272, SGTL5000 and TLV320AIC32x4.\n"
}

23/2 2026/09/19 21:54 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 24980
							output: 43
							thoughts: 573
						

Thoughts:
**Investigating the SND_SOC_WM8994 Selection**

Okay, so I'm trying to figure out what else could be selecting `SND_SOC_WM8994`. Let's re-examine the `grep` output to jog my memory. Right, so we have `sound/soc/fsl/Kconfig` for the FSL stuff, and then a bunch of Samsung configurations: `SND_SOC_SAMSUNG_SMDK_WM8994`, `SND_SOC_SMDK_WM8994_PCM`, `SND_SOC_LITTLEMILL`, `SND_SOC_ARNDALE`, `SND_SOC_SAMSUNG_ARIES_WM8994`, and `SND_SOC_SAMSUNG_MIDAS_WM1811`. All of those are tied to ARM or Samsung SoCs, as expected.

But wait, hold on... are any of these actually instantiated on x86 or amd64 systems? That's the real question. Can we create an I2C device with the name `wlf,wm8994` or platform device `wm8994-codec` on x86? I'm thinking... an `i2c_client` *could* potentially be instantiated through `sysfs` and `new_device` if `i2c-dev` is loaded, or perhaps via ACPI or Device Tree (OF). But isn't `wm8994` typically an I2C MFD device, the `wm8994_i2c_driver` driver, which then uses `mfd_add_devices` to instantiate `wm8994-codec`?

Okay, even if the `wm8994` I2C driver *does* probe, what exactly changed in the relevant patch? Let's take a closer look at the diff. Okay, here's the patch... it seems we are looking at changes to the `wm8994_mic_detect` function in `sound/soc/codecs/wm8994.c`. Okay, let's look at the entire function.



24/2 2026/09/19 21:54 tool read-file
0m Args:
{
  "File": "sound/soc/codecs/wm8994.c",
  "FirstLine": 3490,
  "LineCount": 60
}

Results:
{
  "Contents": "3490:\t/**\n3491:\t * wm8994_mic_detect - Enable microphone detection via the WM8994 IRQ\n3492:\t *\n3493:\t * @component:   WM8994 component\n3494:\t * @jack:    jack to report detection events on\n3495:\t * @micbias: microphone bias to detect on\n3496:\t *\n3497:\t * Enable microphone detection via IRQ on the WM8994.  If GPIOs are\n3498:\t * being used to bring out signals to the processor then only platform\n3499:\t * data configuration is needed for WM8994 and processor GPIOs should\n3500:\t * be configured using snd_soc_jack_add_gpios() instead.\n3501:\t *\n3502:\t * Configuration of detection levels is available via the micbias1_lvl\n3503:\t * and micbias2_lvl platform data members.\n3504:\t */\n3505:\tint wm8994_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *jack,\n3506:\t\t\t      int micbias)\n3507:\t{\n3508:\t\tstruct snd_soc_dapm_context *dapm = snd_soc_component_to_dapm(component);\n3509:\t\tstruct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component);\n3510:\t\tstruct wm8994_micdet *micdet;\n3511:\t\tstruct wm8994 *control = wm8994-\u003ewm8994;\n3512:\t\tint reg, ret;\n3513:\t\n3514:\t\tif (control-\u003etype != WM8994) {\n3515:\t\t\tdev_warn(component-\u003edev, \"Not a WM8994\\n\");\n3516:\t\t\treturn -EINVAL;\n3517:\t\t}\n3518:\t\n3519:\t\tpm_runtime_get_sync(component-\u003edev);\n3520:\t\n3521:\t\tswitch (micbias) {\n3522:\t\tcase 1:\n3523:\t\t\tmicdet = \u0026wm8994-\u003emicdet[0];\n3524:\t\t\tif (jack)\n3525:\t\t\t\tret = snd_soc_dapm_force_enable_pin(dapm, \"MICBIAS1\");\n3526:\t\t\telse\n3527:\t\t\t\tret = snd_soc_dapm_disable_pin(dapm, \"MICBIAS1\");\n3528:\t\t\tbreak;\n3529:\t\tcase 2:\n3530:\t\t\tmicdet = \u0026wm8994-\u003emicdet[1];\n3531:\t\t\tif (jack)\n3532:\t\t\t\tret = snd_soc_dapm_force_enable_pin(dapm, \"MICBIAS1\");\n3533:\t\t\telse\n3534:\t\t\t\tret = snd_soc_dapm_disable_pin(dapm, \"MICBIAS1\");\n3535:\t\t\tbreak;\n3536:\t\tdefault:\n3537:\t\t\tdev_warn(component-\u003edev, \"Invalid MICBIAS %d\\n\", micbias);\n3538:\t\t\tpm_runtime_put(component-\u003edev);\n3539:\t\t\treturn -EINVAL;\n3540:\t\t}\n3541:\t\n3542:\t\tif (ret != 0)\n3543:\t\t\tdev_warn(component-\u003edev, \"Failed to configure MICBIAS%d: %d\\n\",\n3544:\t\t\t\t micbias, ret);\n3545:\t\n3546:\t\tdev_dbg(component-\u003edev, \"Configuring microphone detection on %d %p\\n\",\n3547:\t\t\tmicbias, jack);\n3548:\t\n3549:\t\t/* Store the configuration */\n"
}

25/2 2026/09/19 21:54 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 27086
							output: 35
							thoughts: 344
						

Thoughts:
**Analyzing a Potential Driver Error**

Okay, let's dive into this `wm8994_mic_detect` function. I'm seeing it's grabbing the power domain with `pm_runtime_get_sync(component->dev)`. Then there's this `switch (micbias)` statement. Hmm, and in the default case, which catches values of `micbias` that are not 1 or 2, there's no corresponding `pm_runtime_put(component->dev)` before it returns `-EINVAL`. That looks like a resource leak to me; the power domain is grabbed but never released in the error path! I need to investigate where this function is called and if this is actually a problem.

First, I need to know the calling context. Let's see... the code's calling `wm8994_mic_detect`. Let's check where it's called using the project search function. Okay, it looks like it's only called in `sound/soc/samsung/littlemill.c`. And it's being called with `micbias` set to 1, which means it should not even hit the default case. I wonder if there are any other direct calls to this function in the whole code base? Let's check with `git grep`.

Hmm, looks like it is only defined in those files I looked at before. Let's double-check by searching for anything that could be indirectly calling the function. Is there maybe a macro? or function pointer being used? Let's search for `mic_detect` in the `sound/soc/codecs/wm8994*` files. And see if there are any indirect calls to this function. Maybe I can find something there.



26/2 2026/09/19 21:54 tool grepper
0m Error:
no matches

Args:
{
  "Expression": "mic_detect",
  "PathPrefix": "sound/soc/codecs/wm8994"
}

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

27/2 2026/09/19 21:54 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 27855
							output: 37
							thoughts: 63
						

Thoughts:
Okay, let me think this through.

**Debugging a "No Matches" Error in Path Handling**

Right, so that "no matches" error is bugging me. Let me retrace my steps. The `PathPrefix` was set to `sound/soc/codecs/wm8994`, and that's where things went sideways. Ah, the penny's dropping. That path *doesn't* end in `.c`, and it's not a directory either. Clearly, my logic is expecting either a source file or a directory. Okay, so I should try the direct path to the C file then. Let me update the prefix to  `sound/soc/codecs/wm8994.c` and see if that fixes it.



28/2 2026/09/19 21:54 tool grepper
0m Args:
{
  "Expression": "mic_detect",
  "PathPrefix": "sound/soc/codecs/wm8994.c"
}

Results:
{
  "Output": "sound/soc/codecs/wm8994.c=782=static void active_dereference(struct snd_soc_component *component)\n--\nsound/soc/codecs/wm8994.c-795-\t\t/* Go into appropriate detection only mode */\nsound/soc/codecs/wm8994.c:796:\t\tif (wm8994-\u003ejack_mic || wm8994-\u003emic_detecting)\nsound/soc/codecs/wm8994.c-797-\t\t\tmode = WM1811_JACKDET_MODE_MIC;\n--\nsound/soc/codecs/wm8994.c=3413=static void wm8994_handle_pdata(struct wm8994_priv *wm8994)\n--\nsound/soc/codecs/wm8994.c-3490-/**\nsound/soc/codecs/wm8994.c:3491: * wm8994_mic_detect - Enable microphone detection via the WM8994 IRQ\nsound/soc/codecs/wm8994.c-3492- *\n--\nsound/soc/codecs/wm8994.c-3504- */\nsound/soc/codecs/wm8994.c:3505:int wm8994_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *jack,\nsound/soc/codecs/wm8994.c-3506-\t\t      int micbias)\n--\nsound/soc/codecs/wm8994.c-3572-}\nsound/soc/codecs/wm8994.c:3573:EXPORT_SYMBOL_GPL(wm8994_mic_detect);\nsound/soc/codecs/wm8994.c-3574-\n--\nsound/soc/codecs/wm8994.c=3701=static void wm8958_open_circuit_work(struct work_struct *work)\n--\nsound/soc/codecs/wm8994.c-3714-\twm8994-\u003ejack_mic = false;\nsound/soc/codecs/wm8994.c:3715:\twm8994-\u003emic_detecting = true;\nsound/soc/codecs/wm8994.c-3716-\n--\nsound/soc/codecs/wm8994.c=3726=static void wm8958_mic_id(void *data, u16 status)\n--\nsound/soc/codecs/wm8994.c-3747-\nsound/soc/codecs/wm8994.c:3748:\t\twm8994-\u003emic_detecting = false;\nsound/soc/codecs/wm8994.c-3749-\t\twm8994-\u003ejack_mic = true;\n--\nsound/soc/codecs/wm8994.c-3759-\t\tdev_dbg(component-\u003edev, \"Detected headphone\\n\");\nsound/soc/codecs/wm8994.c:3760:\t\twm8994-\u003emic_detecting = false;\nsound/soc/codecs/wm8994.c-3761-\n--\nsound/soc/codecs/wm8994.c=3773=static void wm1811_mic_work(struct work_struct *work)\n--\nsound/soc/codecs/wm8994.c-3800-\t\t */\nsound/soc/codecs/wm8994.c:3801:\t\twm8994-\u003emic_detecting = true;\nsound/soc/codecs/wm8994.c-3802-\t\twm1811_jackdet_set_mode(component, WM1811_JACKDET_MODE_MIC);\n--\nsound/soc/codecs/wm8994.c=3813=static irqreturn_t wm1811_jackdet_irq(int irq, void *data)\n--\nsound/soc/codecs/wm8994.c-3872-\nsound/soc/codecs/wm8994.c:3873:\t\twm8994-\u003emic_detecting = false;\nsound/soc/codecs/wm8994.c-3874-\t\twm8994-\u003ejack_mic = false;\n--\nsound/soc/codecs/wm8994.c=3902=static void wm1811_jackdet_bootstrap(struct work_struct *work)\n--\nsound/soc/codecs/wm8994.c-3910-/**\nsound/soc/codecs/wm8994.c:3911: * wm8958_mic_detect - Enable microphone detection via the WM8958 IRQ\nsound/soc/codecs/wm8994.c-3912- *\n--\nsound/soc/codecs/wm8994.c-3929- */\nsound/soc/codecs/wm8994.c:3930:int wm8958_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *jack,\nsound/soc/codecs/wm8994.c-3931-\t\t      wm1811_micdet_cb det_cb, void *det_cb_data,\n--\nsound/soc/codecs/wm8994.c-3958-\t\t} else {\nsound/soc/codecs/wm8994.c:3959:\t\t\twm8994-\u003emic_detecting = true;\nsound/soc/codecs/wm8994.c-3960-\t\t\twm8994-\u003ejack_mic = false;\n--\nsound/soc/codecs/wm8994.c-4020-}\nsound/soc/codecs/wm8994.c:4021:EXPORT_SYMBOL_GPL(wm8958_mic_detect);\nsound/soc/codecs/wm8994.c-4022-\n--\nsound/soc/codecs/wm8994.c=4041=static irqreturn_t wm8958_mic_irq(int irq, void *data)\n--\nsound/soc/codecs/wm8994.c-4105-\t\t\t\t    wm8994-\u003ebtn_mask);\nsound/soc/codecs/wm8994.c:4106:\t\twm8994-\u003emic_detecting = true;\nsound/soc/codecs/wm8994.c-4107-\t\tgoto out;\n--\nsound/soc/codecs/wm8994.c-4112-\nsound/soc/codecs/wm8994.c:4113:\tif (wm8994-\u003emic_detecting)\nsound/soc/codecs/wm8994.c-4114-\t\tqueue_delayed_work(system_power_efficient_wq,\n"
}

29/2 2026/09/19 21:55 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 29927
							output: 163
							thoughts: 1213
						

Thoughts:
**Fuzzing Verdict: False**

Okay, let's break this down. My initial thought is that `wm8994_mic_detect` is only called from `sound/soc/samsung/littlemill.c`. And that's confirmed. `Littlemill` is a board driver specifically for Samsung's Littlemill, an ARM-based board, and it's hardcoding a value of `1` for the `micbias` parameter when it calls `wm8994_mic_detect`.

So, can any *other* code path call this function, and more importantly, pass something other than `1` for `micbias`? No, as the entire codebase has been checked, so there is only one caller, and that one caller hardcodes the value. Even if this driver could run on an amd64 environment (which it can't, as it depends on Samsung's I2S controller and specific Cragg 6410 board hardware), the `default:` branch of the `switch` statement (where the modified code resides) would be unreachable due to this hardcoded value. This confirms my hypothesis.

The `wm8994` itself is an embedded audio codec for ARM platforms, like the Wolfson WM8994, typically found on Samsung Exynos SoCs or similar. It's not something you'd find emulated or even relevant in a standard amd64 QEMU setup.

Now, let's recall the fuzzing guidelines. The reachability of the code is key. The fuzzing can only discover bugs in code that actually executes in virtualized environments like QEMU. If the code is structurally unreachable, it shouldn't be fuzzed. And this definitely seems to fall under the "Structurally unreachable hardware" category and the "Unreachable execution paths" category.

In this case, the target architecture is amd64, and the modified driver is part of an embedded audio codec driver that is used on ARM platforms, specifically `wm8994_mic_detect()`. It's only called from the `littlemill.c` driver, which uses a constant `1` for the `micbias` parameter. The hardware is not present or emulated in standard QEMU environments.

Therefore, after going through all the data, `WorthFuzzing` is unequivocally `false`. There is no other part of the tree that even calls it!

I've double-checked all the required parameters for `set-results`: `WorthFuzzing` is `false`, the reasoning is concisely explained, and the `FocusSymbols` and `EnableConfigs` are empty, as expected.

I am confident in these findings.



30/2 2026/09/19 21:55 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [],
  "Reasoning": "The patch adds a missing pm_runtime_put() call in the default error path of wm8994_mic_detect() in sound/soc/codecs/wm8994.c. This code is structurally unreachable on the target architecture (amd64) as WM8994 is an embedded Wolfson audio codec for ARM platforms. Furthermore, wm8994_mic_detect() has only one caller in the entire kernel (sound/soc/samsung/littlemill.c), which passes a constant micbias value of 1, making the modified default branch unreachable by any in-tree code.",
  "WorthFuzzing": false
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch adds a missing pm_runtime_put() call in the default error path of wm8994_mic_detect() in sound/soc/codecs/wm8994.c. This code is structurally unreachable on the target architecture (amd64) as WM8994 is an embedded Wolfson audio codec for ARM platforms. Furthermore, wm8994_mic_detect() has only one caller in the entire kernel (sound/soc/samsung/littlemill.c), which passes a constant micbias value of 1, making the modified default branch unreachable by any in-tree code.",
  "WorthFuzzing": false
}

31/1 2026/09/19 21:55 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)