AI Trajectory


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

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "KMSANReasoning": "",
  "NeedsKMSAN": false,
  "Reasoning": "The patch modifies stmmac_change_mtu() in drivers/net/ethernet/stmicro/stmmac/stmmac_main.c, which is part of the STMicroelectronics / Synopsys DesignWare Ethernet MAC (stmmac) driver. This driver controls physical SoC/ASIC or PCI network hardware that is not emulated in standard QEMU or GCE virtual fuzzing environments, making the modified code structurally unreachable.",
  "WorthFuzzing": false
}

1/1 2026/09/04 15:20 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit b6170fb772e111e1213ae573cea12388c313a0f0\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Fri Sep 4 15:20:56 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c\nindex f2fc89176654e..9d4b93a64e32f 100644\n--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c\n+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c\n@@ -6132,6 +6132,7 @@ static int stmmac_change_mtu(struct net_device *dev, int new_mtu)\n \t\tif (ret) {\n \t\t\tfree_dma_desc_resources(priv, dma_conf);\n \t\t\tkfree(dma_conf);\n+\t\t\tmemset(\u0026priv-\u003edma_conf, 0, sizeof(priv-\u003edma_conf));\n \t\t\tnetdev_err(priv-\u003edev, \"failed reopening the interface after MTU change\\n\");\n \t\t\treturn ret;\n \t\t}\n"
}

2/1 2026/09/04 15:20 agent patch-evaluator
1m Model:
core

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch modifies stmmac_change_mtu() in drivers/net/ethernet/stmicro/stmmac/stmmac_main.c, which is part of the STMicroelectronics / Synopsys DesignWare Ethernet MAC (stmmac) driver. This driver controls physical SoC/ASIC or PCI network hardware that is not emulated in standard QEMU or GCE virtual fuzzing environments, making the modified code structurally unreachable.",
  "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 b6170fb772e111e1213ae573cea12388c313a0f0
Author: syz-cluster <triage@syzkaller.com>
Date:   Fri Sep 4 15:20:56 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index f2fc89176654e..9d4b93a64e32f 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -6132,6 +6132,7 @@ static int stmmac_change_mtu(struct net_device *dev, int new_mtu)
 		if (ret) {
 			free_dma_desc_resources(priv, dma_conf);
 			kfree(dma_conf);
+			memset(&priv->dma_conf, 0, sizeof(priv->dma_conf));
 			netdev_err(priv->dev, "failed reopening the interface after MTU change\n");
 			return ret;
 		}

3/2 2026/09/04 15:20 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 2932
							output: 38
							thoughts: 319
						

Thoughts:
**Triage of a Linux Kernel Patch for Fuzzing with Syzkaller**

Okay, so I've got a patch to triage for the Linux kernel. My immediate thought is to perform a Risk & Request Analysis. The request is straightforward: determine if a patch in `drivers/net/ethernet/stmicro/stmmac/stmmac_main.c` warrants fuzzing with syzkaller, and provide the necessary config requirements, focus symbols, and the rationale behind the decision. This looks like a defensive, quality assurance task – benign, low-severity. No red flags, no offensive implications.

Now, it's time to dig into the details. I need to inspect the patch itself, and then the relevant kernel code. The patch specifically touches `stmmac_change_mtu` within the `stmmac_main.c` file.

Next, I need to consider the accessibility of the `stmmac` driver for fuzzing. What exactly *is* `stmmac`? Ah, it's the STMicroelectronics Ethernet driver, supporting 10/100/1000/EQOS. The critical question: is this driver hardware-dependent, or can it be emulated in QEMU or other standard virtualization environments? Does it require a specific physical SoC, PCI, or some platform-specific glue code? I need to search the kernel source to understand how it's used and instantiated. My plan is to use tools like `grepper` or `read-file` to check files like `stmmac_pci.c` and `stmmac_platform.c` to identify any PCI or platform dependencies that might complicate fuzzing.



4/2 2026/09/04 15:21 tool grepper
0m Args:
{
  "Expression": "stmmac_",
  "PathPrefix": "drivers/net/ethernet/stmicro/stmmac/"
}

Results:
{
  "Output": "\nFull output is too long, showing 500 out of 10805 lines.\nUse more precise expression if possible.\n\ndrivers/net/ethernet/stmicro/stmmac/Makefile=2=obj-$(CONFIG_STMMAC_ETH) += stmmac.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile:3:stmmac-objs:= stmmac_main.o stmmac_ethtool.o stmmac_mdio.o ring_mode.o\t\\\ndrivers/net/ethernet/stmicro/stmmac/Makefile-4-\t      chain_mode.o dwmac_lib.o dwmac1000_core.o dwmac1000_dma.o\t\\\ndrivers/net/ethernet/stmicro/stmmac/Makefile-5-\t      dwmac100_core.o dwmac100_dma.o enh_desc.o norm_desc.o\t\\\ndrivers/net/ethernet/stmicro/stmmac/Makefile:6:\t      mmc_core.o stmmac_hwtstamp.o stmmac_ptp.o dwmac4_descs.o\t\\\ndrivers/net/ethernet/stmicro/stmmac/Makefile-7-\t      dwmac4_dma.o dwmac4_lib.o dwmac4_core.o dwmac5.o hwif.o \\\ndrivers/net/ethernet/stmicro/stmmac/Makefile:8:\t      stmmac_tc.o dwxgmac2_core.o dwxgmac2_dma.o dwxgmac2_descs.o \\\ndrivers/net/ethernet/stmicro/stmmac/Makefile:9:\t      stmmac_xdp.o stmmac_est.o stmmac_fpe.o stmmac_vlan.o \\\ndrivers/net/ethernet/stmicro/stmmac/Makefile:10:\t      stmmac_pcs.o $(stmmac-y)\ndrivers/net/ethernet/stmicro/stmmac/Makefile-11-\ndrivers/net/ethernet/stmicro/stmmac/Makefile:12:stmmac-$(CONFIG_STMMAC_SELFTESTS) += stmmac_selftests.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile-13-\n--\ndrivers/net/ethernet/stmicro/stmmac/Makefile=45=obj-$(CONFIG_DWMAC_VISCONTI)\t+= dwmac-visconti.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile:46:stmmac-platform-objs:= stmmac_platform.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile-47-dwmac-altr-socfpga-objs := dwmac-socfpga.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile-48-\ndrivers/net/ethernet/stmicro/stmmac/Makefile:49:obj-$(CONFIG_STMMAC_LIBPCI)\t+= stmmac_libpci.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile-50-obj-$(CONFIG_STMMAC_PCI)\t+= stmmac-pci.o\n--\ndrivers/net/ethernet/stmicro/stmmac/Makefile=53=obj-$(CONFIG_DWMAC_MOTORCOMM)\t+= dwmac-motorcomm.o\ndrivers/net/ethernet/stmicro/stmmac/Makefile:54:stmmac-pci-objs:= stmmac_pci.o\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-16-\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:17:static int jumbo_frm(struct stmmac_tx_queue *tx_q, struct sk_buff *skb,\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-18-\t\t     int csum)\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-20-\tunsigned int nopaged_len = skb_headlen(skb);\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:21:\tstruct stmmac_priv *priv = tx_q-\u003epriv_data;\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-22-\tunsigned int entry = tx_q-\u003ecur_tx;\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-45-\t/* do not close the descriptor and do not set own bit */\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:46:\tstmmac_prepare_tx_desc(priv, desc, 1, buf_len, csum, STMMAC_CHAIN_MODE,\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-47-\t\t\t0, false, skb-\u003elen);\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-62-\t\t\ttx_q-\u003etx_skbuff_dma[entry].len = bmax;\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:63:\t\t\tstmmac_prepare_tx_desc(priv, desc, 0, bmax, csum,\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-64-\t\t\t\t\tSTMMAC_CHAIN_MODE, 1, false, skb-\u003elen);\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-76-\t\t\t/* last descriptor can be set now */\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:77:\t\t\tstmmac_prepare_tx_desc(priv, desc, 0, len, csum,\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-78-\t\t\t\t\tSTMMAC_CHAIN_MODE, 1, true, skb-\u003elen);\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c=99=static void init_dma_chain(void *des, dma_addr_t phy_addr,\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-128-\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:129:static void refill_desc3(struct stmmac_rx_queue *rx_q, struct dma_desc *p)\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-130-{\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:131:\tstruct stmmac_priv *priv = rx_q-\u003epriv_data;\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-132-\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-143-\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:144:static void clean_desc3(struct stmmac_tx_queue *tx_q, struct dma_desc *p)\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-145-{\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:146:\tstruct stmmac_priv *priv = tx_q-\u003epriv_data;\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-147-\tunsigned int entry = tx_q-\u003edirty_tx;\n--\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-160-\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c:161:const struct stmmac_mode_ops chain_mode_ops = {\ndrivers/net/ethernet/stmicro/stmmac/chain_mode.c-162-\t.init = init_dma_chain,\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h=49=static inline bool dwmac_is_xmac(enum dwmac_core_type core_type)\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-70-\ndrivers/net/ethernet/stmicro/stmmac/common.h:71:struct stmmac_q_tx_stats {\ndrivers/net/ethernet/stmicro/stmmac/common.h-72-\tu64_stats_t tx_bytes;\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-77-\ndrivers/net/ethernet/stmicro/stmmac/common.h:78:struct stmmac_napi_tx_stats {\ndrivers/net/ethernet/stmicro/stmmac/common.h-79-\tu64_stats_t tx_packets;\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-85-\ndrivers/net/ethernet/stmicro/stmmac/common.h:86:struct stmmac_txq_stats {\ndrivers/net/ethernet/stmicro/stmmac/common.h-87-\t/* Updates protected by tx queue lock. */\ndrivers/net/ethernet/stmicro/stmmac/common.h-88-\tstruct u64_stats_sync q_syncp;\ndrivers/net/ethernet/stmicro/stmmac/common.h:89:\tstruct stmmac_q_tx_stats q;\ndrivers/net/ethernet/stmicro/stmmac/common.h-90-\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-92-\tstruct u64_stats_sync napi_syncp;\ndrivers/net/ethernet/stmicro/stmmac/common.h:93:\tstruct stmmac_napi_tx_stats napi;\ndrivers/net/ethernet/stmicro/stmmac/common.h-94-} ____cacheline_aligned_in_smp;\ndrivers/net/ethernet/stmicro/stmmac/common.h-95-\ndrivers/net/ethernet/stmicro/stmmac/common.h:96:struct stmmac_napi_rx_stats {\ndrivers/net/ethernet/stmicro/stmmac/common.h-97-\tu64_stats_t rx_bytes;\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-102-\ndrivers/net/ethernet/stmicro/stmmac/common.h:103:struct stmmac_rxq_stats {\ndrivers/net/ethernet/stmicro/stmmac/common.h-104-\t/* Updates protected by NAPI poll logic. */\ndrivers/net/ethernet/stmicro/stmmac/common.h-105-\tstruct u64_stats_sync napi_syncp;\ndrivers/net/ethernet/stmicro/stmmac/common.h:106:\tstruct stmmac_napi_rx_stats napi;\ndrivers/net/ethernet/stmicro/stmmac/common.h-107-} ____cacheline_aligned_in_smp;\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-109-/* Updates on each CPU protected by not allowing nested irqs. */\ndrivers/net/ethernet/stmicro/stmmac/common.h:110:struct stmmac_pcpu_stats {\ndrivers/net/ethernet/stmicro/stmmac/common.h-111-\tstruct u64_stats_sync syncp;\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-116-/* Extra statistic and debug information exposed by ethtool */\ndrivers/net/ethernet/stmicro/stmmac/common.h:117:struct stmmac_extra_stats {\ndrivers/net/ethernet/stmicro/stmmac/common.h-118-\t/* Transmit errors */\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-237-\t/* per queue statistics */\ndrivers/net/ethernet/stmicro/stmmac/common.h:238:\tstruct stmmac_txq_stats txq_stats[MTL_MAX_TX_QUEUES];\ndrivers/net/ethernet/stmicro/stmmac/common.h:239:\tstruct stmmac_rxq_stats rxq_stats[MTL_MAX_RX_QUEUES];\ndrivers/net/ethernet/stmicro/stmmac/common.h:240:\tstruct stmmac_pcpu_stats __percpu *pcpu_stats;\ndrivers/net/ethernet/stmicro/stmmac/common.h-241-\tunsigned long rx_dropped;\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-247-/* Safety Feature statistics exposed by ethtool */\ndrivers/net/ethernet/stmicro/stmmac/common.h:248:struct stmmac_safety_stats {\ndrivers/net/ethernet/stmicro/stmmac/common.h-249-\tunsigned long mac_errors[32];\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-256-#define STMMAC_SAFETY_FEAT_SIZE\t\\\ndrivers/net/ethernet/stmicro/stmmac/common.h:257:\t(sizeof(struct stmmac_safety_stats) / sizeof(unsigned long))\ndrivers/net/ethernet/stmicro/stmmac/common.h-258-\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h=416=struct dma_features {\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-564-\ndrivers/net/ethernet/stmicro/stmmac/common.h:565:void stmmac_axi_blen_to_mask(u32 *regval, const u32 *blen, size_t len);\ndrivers/net/ethernet/stmicro/stmmac/common.h-566-\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h=613=struct mac_device_info {\ndrivers/net/ethernet/stmicro/stmmac/common.h:614:\tconst struct stmmac_ops *mac;\ndrivers/net/ethernet/stmicro/stmmac/common.h:615:\tconst struct stmmac_desc_ops *desc;\ndrivers/net/ethernet/stmicro/stmmac/common.h:616:\tconst struct stmmac_dma_ops *dma;\ndrivers/net/ethernet/stmicro/stmmac/common.h:617:\tconst struct stmmac_mode_ops *mode;\ndrivers/net/ethernet/stmicro/stmmac/common.h:618:\tconst struct stmmac_hwtimestamp *ptp;\ndrivers/net/ethernet/stmicro/stmmac/common.h:619:\tconst struct stmmac_tc_ops *tc;\ndrivers/net/ethernet/stmicro/stmmac/common.h:620:\tconst struct stmmac_mmc_ops *mmc;\ndrivers/net/ethernet/stmicro/stmmac/common.h:621:\tconst struct stmmac_est_ops *est;\ndrivers/net/ethernet/stmicro/stmmac/common.h:622:\tconst struct stmmac_vlan_ops *vlan;\ndrivers/net/ethernet/stmicro/stmmac/common.h-623-\tstruct dw_xpcs *xpcs;\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-644-\ndrivers/net/ethernet/stmicro/stmmac/common.h:645:struct stmmac_rx_routing {\ndrivers/net/ethernet/stmicro/stmmac/common.h-646-\tu32 reg_mask;\n--\ndrivers/net/ethernet/stmicro/stmmac/common.h-649-\ndrivers/net/ethernet/stmicro/stmmac/common.h:650:int dwmac100_setup(struct stmmac_priv *priv);\ndrivers/net/ethernet/stmicro/stmmac/common.h:651:int dwmac1000_setup(struct stmmac_priv *priv);\ndrivers/net/ethernet/stmicro/stmmac/common.h:652:int dwmac4_setup(struct stmmac_priv *priv);\ndrivers/net/ethernet/stmicro/stmmac/common.h:653:int dwxgmac2_setup(struct stmmac_priv *priv);\ndrivers/net/ethernet/stmicro/stmmac/common.h:654:int dwxlgmac2_setup(struct stmmac_priv *priv);\ndrivers/net/ethernet/stmicro/stmmac/common.h-655-\ndrivers/net/ethernet/stmicro/stmmac/common.h:656:void stmmac_set_mac_addr(void __iomem *ioaddr, const u8 addr[6],\ndrivers/net/ethernet/stmicro/stmmac/common.h-657-\t\t\t unsigned int high, unsigned int low);\ndrivers/net/ethernet/stmicro/stmmac/common.h:658:void stmmac_get_mac_addr(void __iomem *ioaddr, unsigned char *addr,\ndrivers/net/ethernet/stmicro/stmmac/common.h-659-\t\t\t unsigned int high, unsigned int low);\ndrivers/net/ethernet/stmicro/stmmac/common.h:660:void stmmac_set_mac(void __iomem *ioaddr, bool enable);\ndrivers/net/ethernet/stmicro/stmmac/common.h-661-\ndrivers/net/ethernet/stmicro/stmmac/common.h:662:void stmmac_dwmac4_set_mac_addr(void __iomem *ioaddr, const u8 addr[6],\ndrivers/net/ethernet/stmicro/stmmac/common.h-663-\t\t\t\tunsigned int high, unsigned int low);\ndrivers/net/ethernet/stmicro/stmmac/common.h:664:void stmmac_dwmac4_get_mac_addr(void __iomem *ioaddr, unsigned char *addr,\ndrivers/net/ethernet/stmicro/stmmac/common.h-665-\t\t\t\tunsigned int high, unsigned int low);\ndrivers/net/ethernet/stmicro/stmmac/common.h:666:void stmmac_dwmac4_set_mac(void __iomem *ioaddr, bool enable);\ndrivers/net/ethernet/stmicro/stmmac/common.h-667-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-14-#include \"stmmac.h\"\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:15:#include \"stmmac_platform.h\"\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-16-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c=93=static int anarion_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-97-\tstruct plat_stmmacenet_data *plat_dat;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:98:\tstruct stmmac_resources stmmac_res;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-99-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:100:\tret = stmmac_get_platform_resources(pdev, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-101-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-103-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:104:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-105-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-115-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:116:\treturn devm_stmmac_pltfr_probe(pdev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-117-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c=125=static struct platform_driver anarion_dwmac_driver = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-128-\t\t.name           = \"anarion-dwmac\",\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:129:\t\t.pm\t\t= \u0026stmmac_pltfr_pm_ops,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-130-\t\t.of_match_table = anarion_dwmac_match,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-23-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:24:#include \"stmmac_platform.h\"\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-25-#include \"dwmac4.h\"\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=36=static int dwc_eth_dwmac_config_dt(struct platform_device *pdev,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-43-\t\tplat_dat-\u003eaxi = devm_kzalloc(\u0026pdev-\u003edev,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:44:\t\t\t\t\t     sizeof(struct stmmac_axi),\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-45-\t\t\t\t\t     GFP_KERNEL);\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=96=static int dwc_qos_probe(struct platform_device *pdev,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-97-\t\t\t struct plat_stmmacenet_data *plat_dat,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:98:\t\t\t struct stmmac_resources *stmmac_res)\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-99-{\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:100:\tplat_dat-\u003epclk = stmmac_pltfr_find_clk(plat_dat, \"phy_ref_clk\");\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-101-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=115=static void tegra_eqos_fix_speed(void *bsp_priv, phy_interface_t interface,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-119-\tbool needs_calibration = false;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:120:\tstruct stmmac_priv *priv;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-121-\tu32 value;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-141-\t\t/* Calibration should be done with the MDIO bus idle */\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:142:\t\tstmmac_mdio_lock(priv);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-143-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-177-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:178:\t\tstmmac_mdio_unlock(priv);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-179-\t} else {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=186=static int tegra_eqos_probe(struct platform_device *pdev,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-187-\t\t\t    struct plat_stmmacenet_data *plat_dat,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:188:\t\t\t    struct stmmac_resources *res)\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-189-{\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-203-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:204:\tplat_dat-\u003eclk_tx_i = stmmac_pltfr_find_clk(plat_dat, \"tx\");\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-205-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-237-\tplat_dat-\u003efix_mac_speed = tegra_eqos_fix_speed;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:238:\tplat_dat-\u003eset_clk_tx_rate = stmmac_set_clk_tx_rate;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-239-\tplat_dat-\u003ebsp_priv = eqos;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=252=static void tegra_eqos_remove(struct platform_device *pdev)\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-253-{\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:254:\tstruct tegra_eqos *eqos = get_stmmac_bsp_priv(\u0026pdev-\u003edev);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-255-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=260=struct dwc_eth_dwmac_data {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-262-\t\t     struct plat_stmmacenet_data *plat_dat,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:263:\t\t     struct stmmac_resources *res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-264-\tvoid (*remove)(struct platform_device *pdev);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:265:\tconst char *stmmac_clk_name;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-266-};\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=268=static const struct dwc_eth_dwmac_data dwc_qos_data = {\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-269-\t.probe = dwc_qos_probe,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:270:\t.stmmac_clk_name = \"apb_pclk\",\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-271-};\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=273=static const struct dwc_eth_dwmac_data tegra_eqos_data = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-275-\t.remove = tegra_eqos_remove,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:276:\t.stmmac_clk_name = \"slave_bus\",\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-277-};\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=279=static const struct dwc_eth_dwmac_data fsd_eqos_data = {\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:280:\t.stmmac_clk_name = \"slave_bus\",\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-281-};\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=283=static int dwc_eth_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-286-\tstruct plat_stmmacenet_data *plat_dat;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:287:\tstruct stmmac_resources stmmac_res;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-288-\tint ret;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-291-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:292:\tmemset(\u0026stmmac_res, 0, sizeof(struct stmmac_resources));\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-293-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-294-\t/**\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:295:\t * Since stmmac_platform supports name IRQ only, basic platform\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-296-\t * resource initialization is done in the glue logic.\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-297-\t */\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:298:\tstmmac_res.irq = platform_get_irq(pdev, 0);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:299:\tif (stmmac_res.irq \u003c 0)\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:300:\t\treturn stmmac_res.irq;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:301:\tstmmac_res.wol_irq = stmmac_res.irq;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-302-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:303:\tstmmac_res.addr = devm_platform_ioremap_resource(pdev, 0);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:304:\tif (IS_ERR(stmmac_res.addr))\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:305:\t\treturn PTR_ERR(stmmac_res.addr);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-306-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:307:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-308-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-315-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:316:\tplat_dat-\u003estmmac_clk = stmmac_pltfr_find_clk(plat_dat,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:317:\t\t\t\t\t\t     data-\u003estmmac_clk_name);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-318-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-319-\tif (data-\u003eprobe)\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:320:\t\tret = data-\u003eprobe(pdev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-321-\tif (ret \u003c 0) {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-329-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:330:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-331-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=343=static void dwc_eth_dwmac_remove(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-346-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:347:\tstmmac_dvr_remove(\u0026pdev-\u003edev);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-348-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=361=static struct platform_driver dwc_eth_dwmac_driver = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-365-\t\t.name           = \"dwc-eth-dwmac\",\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:366:\t\t.pm             = \u0026stmmac_pltfr_pm_ops,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-367-\t\t.of_match_table = dwc_eth_dwmac_match,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-19-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c:20:#include \"stmmac_platform.h\"\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-21-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c=167=static int eic7700_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-170-\tstruct plat_stmmacenet_data *plat_dat;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c:171:\tstruct stmmac_resources stmmac_res;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-172-\tstruct eic7700_qos_priv *dwc_priv;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-175-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c:176:\tret = stmmac_get_platform_resources(pdev, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-177-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-180-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c:181:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-182-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-323-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c:324:\tplat_dat-\u003eclk_tx_i = stmmac_pltfr_find_clk(plat_dat, \"tx\");\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c:325:\tplat_dat-\u003eset_clk_tx_rate = stmmac_set_clk_tx_rate;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-326-\tplat_dat-\u003eclks_config = eic7700_clks_config;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-334-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c:335:\treturn devm_stmmac_pltfr_probe(pdev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-336-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c=362=static struct platform_driver eic7700_dwmac_driver = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-365-\t\t.name           = \"eic7700-eth-dwmac\",\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c:366:\t\t.pm             = \u0026stmmac_pltfr_pm_ops,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-367-\t\t.of_match_table = eic7700_dwmac_match,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-16-#include \"stmmac.h\"\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c:17:#include \"stmmac_platform.h\"\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-18-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c=19=static int dwmac_generic_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-21-\tstruct plat_stmmacenet_data *plat_dat;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c:22:\tstruct stmmac_resources stmmac_res;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-23-\tint ret;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-24-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c:25:\tret = stmmac_get_platform_resources(pdev, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-26-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-29-\tif (pdev-\u003edev.of_node) {\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c:30:\t\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-31-\t\tif (IS_ERR(plat_dat)) {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-48-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c:49:\treturn devm_stmmac_pltfr_probe(pdev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-50-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c=69=static struct platform_driver dwmac_generic_driver = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-72-\t\t.name           = STMMAC_RESOURCE_NAME,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c:73:\t\t.pm\t\t= \u0026stmmac_pltfr_pm_ops,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-74-\t\t.of_match_table = dwmac_generic_match,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-22-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:23:#include \"stmmac_platform.h\"\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-24-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c=44=struct imx_dwmac_ops {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-48-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:49:\tint (*fix_soc_reset)(struct stmmac_priv *priv);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-50-\tint (*set_intf_mode)(struct imx_priv_data *dwmac, u8 phy_intf_sel);\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c=154=static int imx_dwmac_set_clk_tx_rate(void *bsp_priv, struct clk *clk_tx_i,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-160-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:161:\treturn stmmac_set_clk_tx_rate(bsp_priv, clk_tx_i, interface, speed);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-162-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c=190=static void imx93_dwmac_fix_speed(void *priv, phy_interface_t interface,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-228-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:229:static int imx_dwmac_mx93_reset(struct stmmac_priv *priv)\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-230-{\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c=293=static int imx_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-295-\tstruct plat_stmmacenet_data *plat_dat;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:296:\tstruct stmmac_resources stmmac_res;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-297-\tstruct imx_priv_data *dwmac;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-300-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:301:\tret = stmmac_get_platform_resources(pdev, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-302-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-308-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:309:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-310-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-338-\tdwmac-\u003eplat_dat = plat_dat;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:339:\tdwmac-\u003ebase_addr = stmmac_res.addr;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-340-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-353-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:354:\tret = stmmac_pltfr_probe(pdev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-355-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c=392=static struct platform_driver imx_dwmac_driver = {\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-393-\t.probe  = imx_dwmac_probe,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:394:\t.remove = stmmac_pltfr_remove,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-395-\t.driver = {\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-396-\t\t.name           = \"imx-dwmac\",\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:397:\t\t.pm\t\t= \u0026stmmac_pltfr_pm_ops,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-398-\t\t.of_match_table = imx_dwmac_match,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-20-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c:21:#include \"stmmac_platform.h\"\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-22-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c=154=static int ingenic_mac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-156-\tstruct plat_stmmacenet_data *plat_dat;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c:157:\tstruct stmmac_resources stmmac_res;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-158-\tstruct ingenic_mac *mac;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-162-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c:163:\tret = stmmac_get_platform_resources(pdev, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-164-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-166-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c:167:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-168-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-214-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c:215:\treturn devm_stmmac_pltfr_probe(pdev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-216-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c=272=static struct platform_driver ingenic_mac_driver = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-275-\t\t.name\t= \"ingenic-mac\",\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c:276:\t\t.pm\t\t= \u0026stmmac_pltfr_pm_ops,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-277-\t\t.of_match_table = ingenic_mac_of_matches,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-15-#include \"stmmac.h\"\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c:16:#include \"stmmac_platform.h\"\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-17-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c=42=static int intel_eth_plat_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-44-\tstruct plat_stmmacenet_data *plat_dat;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c:45:\tstruct stmmac_resources stmmac_res;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-46-\tstruct intel_dwmac *dwmac;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-49-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c:50:\tret = stmmac_get_platform_resources(pdev, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-51-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-53-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c:54:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-55-\tif (IS_ERR(plat_dat)) {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-114-\tplat_dat-\u003eclk_tx_i = dwmac-\u003etx_clk;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c:115:\tplat_dat-\u003eset_clk_tx_rate = stmmac_set_clk_tx_rate;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-116-\tplat_dat-\u003ebsp_priv = dwmac;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-117-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c:118:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-119-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c=130=static void intel_eth_plat_remove(struct platform_device *pdev)\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-131-{\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c:132:\tstruct intel_dwmac *dwmac = get_stmmac_bsp_priv(\u0026pdev-\u003edev);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-133-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c:134:\tstmmac_pltfr_remove(pdev);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-135-\tif (dwmac-\u003edata-\u003etx_clk_en)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c=139=static struct platform_driver intel_eth_plat_driver = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-143-\t\t.name\t\t= \"intel-eth-plat\",\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c:144:\t\t.pm\t\t= \u0026stmmac_pltfr_pm_ops,\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-145-\t\t.of_match_table = intel_eth_plat_match,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-12-#include \"stmmac.h\"\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c:13:#include \"stmmac_ptp.h\"\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-14-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c=25=struct intel_priv_data {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-39- */\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c:40:struct stmmac_pci_func_data {\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-41-\tunsigned int func;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-44-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c:45:struct stmmac_pci_dmi_data {\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c:46:\tconst struct stmmac_pci_func_data *func;\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-47-\tsize_t nfuncs;\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-49-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c:50:struct stmmac_pci_info {\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-51-\tint (*setup)(struct pci_dev *pdev, struct plat_stmmacenet_data *plat);\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c=91=static const int adln_tsn_lane_regs[] = {6};\n\n"
}

5/2 2026/09/04 15:21 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 19028
							output: 43
							thoughts: 26
						

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

**Investigating STMMAC Hardware Configuration**

Alright, let's dive in. My immediate thought is to check the core configuration files to understand the hardware footprint of the `stmmac` driver. Specifically, I need to look at `stmmac_pci.c` and the associated `Kconfig` files. These are the usual suspects. I expect `stmmac_pci.c` to contain the PCI-specific initialization code, probe functions, and device ID tables. That will give me the first clue about which PCI devices are supported and how they're identified. Then, I'll hit `Kconfig`. That's where the conditional compilation magic happens. I'm looking for the dependencies, `CONFIG_STMMAC_ETH`, `CONFIG_STMMAC_PCI`, and any specific device-related options. The `Kconfig` file will tell me which configurations enable the PCI variants of `stmmac`. I also need to be aware of any potential cross-dependencies and platform-specific configurations in these files as well, so I can start to understand the complete set of hardware supported by `stmmac` and how to build a usable driver for the given hardware. Essentially, I'm trying to map the driver code back to the hardware it supports and figure out which configurations are necessary. From there, I can formulate a plan for how to move forward with configuring the driver on the target hardware.



6/2 2026/09/04 15:21 tool read-file
0m Args:
{
  "File": "drivers/net/ethernet/stmicro/stmmac/Kconfig",
  "FirstLine": 1,
  "LineCount": 100
}

Results:
{
  "Contents": "   1:\t# SPDX-License-Identifier: GPL-2.0-only\n   2:\tconfig STMMAC_ETH\n   3:\t\ttristate \"STMicroelectronics Multi-Gigabit Ethernet driver\"\n   4:\t\tdepends on HAS_IOMEM \u0026\u0026 HAS_DMA\n   5:\t\tdepends on PTP_1588_CLOCK_OPTIONAL\n   6:\t\tdepends on ETHTOOL_NETLINK\n   7:\t\tselect MII\n   8:\t\tselect PCS_XPCS\n   9:\t\tselect PAGE_POOL\n  10:\t\tselect PHYLINK\n  11:\t\tselect CRC32\n  12:\t\tselect RESET_CONTROLLER\n  13:\t\tselect NET_DEVLINK\n  14:\t\thelp\n  15:\t\t  This is the driver for the Ethernet IPs built around a\n  16:\t\t  Synopsys IP Core.\n  17:\t\n  18:\tif STMMAC_ETH\n  19:\t\n  20:\tconfig STMMAC_SELFTESTS\n  21:\t\tbool \"Support for STMMAC Selftests\"\n  22:\t\tdepends on INET\n  23:\t\tdefault n\n  24:\t\thelp\n  25:\t\t  This adds support for STMMAC Selftests using ethtool. Enable this\n  26:\t\t  feature if you are facing problems with your HW and submit the test\n  27:\t\t  results to the netdev Mailing List.\n  28:\t\n  29:\tconfig STMMAC_PLATFORM\n  30:\t\ttristate \"STMMAC Platform bus support\"\n  31:\t\tselect MFD_SYSCON\n  32:\t\tdefault y\n  33:\t\thelp\n  34:\t\t  This selects the platform specific bus support for the stmmac driver.\n  35:\t\t  This is the driver used on several SoCs:\n  36:\t\t  STi, Allwinner, Amlogic Meson, Altera SOCFPGA.\n  37:\t\n  38:\t\t  If you have a controller with this interface, say Y or M here.\n  39:\t\n  40:\t\t  If unsure, say N.\n  41:\t\n  42:\tif STMMAC_PLATFORM\n  43:\t\n  44:\tconfig DWMAC_DWC_QOS_ETH\n  45:\t\ttristate \"Support for snps,dwc-qos-ethernet.txt DT binding.\"\n  46:\t\tselect CRC32\n  47:\t\tselect MII\n  48:\t\tdepends on OF \u0026\u0026 HAS_DMA\n  49:\t\thelp\n  50:\t\t  Support for chips using the snps,dwc-qos-ethernet.txt DT binding.\n  51:\t\n  52:\tconfig DWMAC_GENERIC\n  53:\t\ttristate \"Generic driver for DWMAC\"\n  54:\t\tdefault STMMAC_PLATFORM\n  55:\t\thelp\n  56:\t\t  Generic DWMAC driver for platforms that don't require any\n  57:\t\t  platform specific code to function or is using platform\n  58:\t\t  data for setup.\n  59:\t\n  60:\tconfig DWMAC_ANARION\n  61:\t\ttristate \"Adaptrum Anarion GMAC support\"\n  62:\t\tdefault ARC\n  63:\t\tdepends on OF \u0026\u0026 (ARC || COMPILE_TEST)\n  64:\t\thelp\n  65:\t\t  Support for Adaptrum Anarion GMAC Ethernet controller.\n  66:\t\n  67:\t\t  This selects the Anarion SoC glue layer support for the stmmac driver.\n  68:\t\n  69:\tconfig DWMAC_EIC7700\n  70:\t\ttristate \"Support for Eswin eic7700 ethernet driver\"\n  71:\t\tdepends on OF \u0026\u0026 HAS_DMA \u0026\u0026 ARCH_ESWIN || COMPILE_TEST\n  72:\t\thelp\n  73:\t\t  This driver supports the Eswin EIC7700 Ethernet controller,\n  74:\t\t  which integrates Synopsys DesignWare QoS features. It enables\n  75:\t\t  high-speed networking with DMA acceleration and is optimized\n  76:\t\t  for embedded systems.\n  77:\t\n  78:\tconfig DWMAC_INGENIC\n  79:\t\ttristate \"Ingenic MAC support\"\n  80:\t\tdefault MACH_INGENIC\n  81:\t\tdepends on OF \u0026\u0026 HAS_IOMEM \u0026\u0026 (MACH_INGENIC || COMPILE_TEST)\n  82:\t\tselect MFD_SYSCON\n  83:\t\thelp\n  84:\t\t  Support for ethernet controller on Ingenic SoCs.\n  85:\t\n  86:\t\t  This selects Ingenic SoCs glue layer support for the stmmac\n  87:\t\t  device driver. This driver is used on for the Ingenic SoCs\n  88:\t\t  MAC ethernet controller.\n  89:\t\n  90:\tconfig DWMAC_IPQ806X\n  91:\t\ttristate \"QCA IPQ806x DWMAC support\"\n  92:\t\tdefault ARCH_QCOM\n  93:\t\tdepends on OF \u0026\u0026 (ARCH_QCOM || COMPILE_TEST)\n  94:\t\tselect MFD_SYSCON\n  95:\t\thelp\n  96:\t\t  Support for QCA IPQ806X DWMAC Ethernet.\n  97:\t\n  98:\t\t  This selects the IPQ806x SoC glue layer support for the stmmac\n  99:\t\t  device driver. This driver does not use any of the hardware\n 100:\t\t  acceleration features available on this SoC. Network devices\n"
}

7/2 2026/09/04 15:21 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 20808
							output: 45
							thoughts: 15
						

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

**Kconfig Deep Dive: PCI and Beyond**

Okay, so we've addressed that initial point, but I'm thinking we need a more comprehensive sweep through the Kconfig landscape. Specifically, I'm going to shift gears and drill down into the PCI configuration options. I want to see if any assumptions I've been making are valid at a deeper level. I'm especially interested in looking at the dependencies, defaults, and potentially conflicting configurations in that area. More broadly, though, the "others" part of this should also be investigated. Let's see if we can find other areas that merit similar scrutiny. The key here is not to just address the initial item, but to anticipate related issues and edge cases before they become problems. Let's make sure we haven't missed anything obvious.



8/2 2026/09/04 15:21 tool read-file
0m Args:
{
  "File": "drivers/net/ethernet/stmicro/stmmac/Kconfig",
  "FirstLine": 101,
  "LineCount": 100
}

Results:
{
  "Contents": " 101:\t\t  will behave like standard non-accelerated ethernet interfaces.\n 102:\t\n 103:\t\t  Select the QCOM_SOCINFO config flag to enable specific dwmac\n 104:\t\t  fixup based on the ipq806x SoC revision.\n 105:\t\n 106:\tconfig DWMAC_LPC18XX\n 107:\t\ttristate \"NXP LPC18xx/43xx DWMAC support\"\n 108:\t\tdefault ARCH_LPC18XX\n 109:\t\tdepends on OF \u0026\u0026 (ARCH_LPC18XX || COMPILE_TEST)\n 110:\t\tselect MFD_SYSCON\n 111:\t\thelp\n 112:\t\t  Support for NXP LPC18xx/43xx DWMAC Ethernet.\n 113:\t\n 114:\tconfig DWMAC_MEDIATEK\n 115:\t\ttristate \"MediaTek MT27xx GMAC support\"\n 116:\t\tdepends on OF \u0026\u0026 (ARCH_MEDIATEK || COMPILE_TEST)\n 117:\t\thelp\n 118:\t\t  Support for MediaTek GMAC Ethernet controller.\n 119:\t\n 120:\t\t  This selects the MT2712 SoC support for the stmmac driver.\n 121:\t\n 122:\tconfig DWMAC_MESON\n 123:\t\ttristate \"Amlogic Meson dwmac support\"\n 124:\t\tdefault ARCH_MESON\n 125:\t\tdepends on OF \u0026\u0026 COMMON_CLK \u0026\u0026 (ARCH_MESON || COMPILE_TEST)\n 126:\t\thelp\n 127:\t\t  Support for Ethernet controller on Amlogic Meson SoCs.\n 128:\t\n 129:\t\t  This selects the Amlogic Meson SoC glue layer support for\n 130:\t\t  the stmmac device driver. This driver is used for Meson6,\n 131:\t\t  Meson8, Meson8b and GXBB SoCs.\n 132:\t\n 133:\tconfig DWMAC_NUVOTON\n 134:\t\ttristate \"Nuvoton MA35 dwmac support\"\n 135:\t\tdefault ARCH_MA35\n 136:\t\tdepends on OF \u0026\u0026 (ARCH_MA35 || COMPILE_TEST)\n 137:\t\tselect MFD_SYSCON\n 138:\t\thelp\n 139:\t\t  Support for Ethernet controller on Nuvoton MA35 series SoC.\n 140:\t\n 141:\t\t  This selects the Nuvoton MA35 series SoC glue layer support\n 142:\t\t  for the stmmac device driver. The nuvoton-dwmac driver is\n 143:\t\t  used for MA35 series SoCs.\n 144:\t\n 145:\tconfig DWMAC_QCOM_ETHQOS\n 146:\t\ttristate \"Qualcomm ETHQOS support\"\n 147:\t\tdefault ARCH_QCOM\n 148:\t\tdepends on OF \u0026\u0026 (ARCH_QCOM || COMPILE_TEST)\n 149:\t\thelp\n 150:\t\t  Support for the Qualcomm ETHQOS core.\n 151:\t\n 152:\t\t  This selects the Qualcomm ETHQOS glue layer support for the\n 153:\t\t  stmmac device driver.\n 154:\t\n 155:\tconfig DWMAC_RENESAS_GBETH\n 156:\t\ttristate \"Renesas RZ/V2H(P) GBETH and RZ/T2H, RZ/N2H GMAC support\"\n 157:\t\tdefault ARCH_RENESAS\n 158:\t\tdepends on OF \u0026\u0026 (ARCH_RENESAS || COMPILE_TEST)\n 159:\t\tselect PCS_RZN1_MIIC\n 160:\t\thelp\n 161:\t\t  Support for Gigabit Ethernet Interface (GBETH)/ Ethernet MAC (GMAC)\n 162:\t\t  on Renesas SoCs.\n 163:\t\n 164:\t\t  This selects Renesas SoC glue layer support for the stmmac device\n 165:\t\t  driver. This driver is used for the RZ/V2H(P) family, RZ/T2H and\n 166:\t\t  RZ/N2H SoCs.\n 167:\t\n 168:\tconfig DWMAC_ROCKCHIP\n 169:\t\ttristate \"Rockchip dwmac support\"\n 170:\t\tdefault ARCH_ROCKCHIP\n 171:\t\tdepends on OF \u0026\u0026 (ARCH_ROCKCHIP || COMPILE_TEST)\n 172:\t\tselect MFD_SYSCON\n 173:\t\thelp\n 174:\t\t  Support for Ethernet controller on Rockchip RK3288 SoC.\n 175:\t\n 176:\t\t  This selects the Rockchip RK3288 SoC glue layer support for\n 177:\t\t  the stmmac device driver.\n 178:\t\n 179:\tconfig DWMAC_RZN1\n 180:\t\ttristate \"Renesas RZ/N1 dwmac support\"\n 181:\t\tdefault ARCH_RZN1\n 182:\t\tdepends on OF \u0026\u0026 (ARCH_RZN1 || COMPILE_TEST)\n 183:\t\tselect PCS_RZN1_MIIC\n 184:\t\thelp\n 185:\t\t  Support for Ethernet controller on Renesas RZ/N1 SoC family.\n 186:\t\n 187:\t\t  This selects the Renesas RZ/N1 SoC glue layer support for\n 188:\t\t  the stmmac device driver. This support can make use of a custom MII\n 189:\t\t  converter PCS device.\n 190:\t\n 191:\tconfig DWMAC_S32\n 192:\t\ttristate \"NXP S32G/S32R GMAC support\"\n 193:\t\tdefault ARCH_S32\n 194:\t\tdepends on OF \u0026\u0026 (ARCH_S32 || COMPILE_TEST)\n 195:\t\thelp\n 196:\t\t  Support for ethernet controller on NXP S32CC SOCs.\n 197:\t\n 198:\t\t  This selects NXP SoC glue layer support for the stmmac\n 199:\t\t  device driver. This driver is used for the S32CC series\n 200:\t\t  SOCs GMAC ethernet controller, ie. S32G2xx, S32G3xx and\n"
}

9/2 2026/09/04 15:21 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 22713
							output: 45
							thoughts: 20
						

Thoughts:
Here's my summary, as though I'm reading and processing the Kconfig file:

**Diving Deeper into Kconfig (Lines 201-300)**

Okay, time to get back to it. Let's see what's further down in this Kconfig file, picking up where we left off. I need to understand the nuances of the configuration process, and digging into the specific details of these lines (201-300) is the next logical step. I'm looking for patterns, dependencies, and any new syntax or concepts that haven't been covered. I'll pay close attention to the relationships between different configuration options, the conditional logic, and how these selections ultimately influence the build process. I'm anticipating some new insights into how this particular subsystem or feature is configured.



10/2 2026/09/04 15:21 tool read-file
0m Args:
{
  "File": "drivers/net/ethernet/stmicro/stmmac/Kconfig",
  "FirstLine": 201,
  "LineCount": 100
}

Results:
{
  "Contents": " 201:\t\t  S32R45.\n 202:\t\n 203:\tconfig DWMAC_SOCFPGA\n 204:\t\ttristate \"SOCFPGA dwmac support\"\n 205:\t\tdefault ARCH_INTEL_SOCFPGA\n 206:\t\tdepends on OF \u0026\u0026 (ARCH_INTEL_SOCFPGA || COMPILE_TEST)\n 207:\t\tselect MFD_SYSCON\n 208:\t\tselect MDIO_REGMAP\n 209:\t\tselect REGMAP_MMIO\n 210:\t\tselect PCS_LYNX\n 211:\t\thelp\n 212:\t\t  Support for ethernet controller on Altera SOCFPGA\n 213:\t\n 214:\t\t  This selects the Altera SOCFPGA SoC glue layer support\n 215:\t\t  for the stmmac device driver. This driver is used for\n 216:\t\t  arria5 and cyclone5 FPGA SoCs.\n 217:\t\n 218:\tconfig DWMAC_SOPHGO\n 219:\t\ttristate \"Sophgo dwmac support\"\n 220:\t\tdepends on OF \u0026\u0026 (ARCH_SOPHGO || COMPILE_TEST)\n 221:\t\tdefault m if ARCH_SOPHGO\n 222:\t\thelp\n 223:\t\t  Support for ethernet controllers on Sophgo RISC-V SoCs\n 224:\t\n 225:\t\t  This selects the Sophgo SoC specific glue layer support\n 226:\t\t  for the stmmac device driver. This driver is used for the\n 227:\t\t  ethernet controllers on various Sophgo SoCs.\n 228:\t\n 229:\tconfig DWMAC_SPACEMIT\n 230:\t\ttristate \"Spacemit dwmac support\"\n 231:\t\tdepends on OF \u0026\u0026 (ARCH_SPACEMIT || COMPILE_TEST)\n 232:\t\tselect MFD_SYSCON\n 233:\t\tdefault m if ARCH_SPACEMIT\n 234:\t\thelp\n 235:\t\t  Support for ethernet controllers on Spacemit RISC-V SoCs\n 236:\t\n 237:\t\t  This selects the Spacemit platform specific glue layer support\n 238:\t\t  for the stmmac device driver. This driver is used for the\n 239:\t\t  Spacemit K3 ethernet controllers.\n 240:\t\n 241:\tconfig DWMAC_STARFIVE\n 242:\t\ttristate \"StarFive dwmac support\"\n 243:\t\tdepends on OF \u0026\u0026 (ARCH_STARFIVE || COMPILE_TEST)\n 244:\t\tselect MFD_SYSCON\n 245:\t\tdefault m if ARCH_STARFIVE\n 246:\t\thelp\n 247:\t\t  Support for ethernet controllers on StarFive RISC-V SoCs\n 248:\t\n 249:\t\t  This selects the StarFive platform specific glue layer support\n 250:\t\t  for the stmmac device driver. This driver is used for the\n 251:\t\t  StarFive JH7100 and JH7110 ethernet controllers.\n 252:\t\n 253:\tconfig DWMAC_STI\n 254:\t\ttristate \"STi GMAC support\"\n 255:\t\tdefault ARCH_STI\n 256:\t\tdepends on OF \u0026\u0026 (ARCH_STI || COMPILE_TEST)\n 257:\t\tselect MFD_SYSCON\n 258:\t\thelp\n 259:\t\t  Support for ethernet controller on STi SOCs.\n 260:\t\n 261:\t\t  This selects STi SoC glue layer support for the stmmac\n 262:\t\t  device driver. This driver is used on for the STi series\n 263:\t\t  SOCs GMAC ethernet controller.\n 264:\t\n 265:\tconfig DWMAC_STM32\n 266:\t\ttristate \"STM32 DWMAC support\"\n 267:\t\tdefault ARCH_STM32\n 268:\t\tdepends on OF \u0026\u0026 HAS_IOMEM \u0026\u0026 (ARCH_STM32 || COMPILE_TEST)\n 269:\t\tselect MFD_SYSCON\n 270:\t\thelp\n 271:\t\t  Support for ethernet controller on STM32 SOCs.\n 272:\t\n 273:\t\t  This selects STM32 SoC glue layer support for the stmmac\n 274:\t\t  device driver. This driver is used on for the STM32 series\n 275:\t\t  SOCs GMAC ethernet controller.\n 276:\t\n 277:\tconfig DWMAC_SUNXI\n 278:\t\ttristate \"Allwinner GMAC support\"\n 279:\t\tdefault ARCH_SUNXI\n 280:\t\tdepends on OF \u0026\u0026 (ARCH_SUNXI || COMPILE_TEST)\n 281:\t\thelp\n 282:\t\t  Support for Allwinner A20/A31 GMAC ethernet controllers.\n 283:\t\n 284:\t\t  This selects Allwinner SoC glue layer support for the\n 285:\t\t  stmmac device driver. This driver is used for A20/A31\n 286:\t\t  GMAC ethernet controller.\n 287:\t\n 288:\tconfig DWMAC_SUN8I\n 289:\t\ttristate \"Allwinner sun8i GMAC support\"\n 290:\t\tdefault ARCH_SUNXI\n 291:\t\tdepends on OF \u0026\u0026 (ARCH_SUNXI || COMPILE_TEST)\n 292:\t\tselect MDIO_BUS_MUX\n 293:\t\thelp\n 294:\t\t  Support for Allwinner H3 A83T A64 EMAC ethernet controllers.\n 295:\t\n 296:\t\t  This selects Allwinner SoC glue layer support for the\n 297:\t\t  stmmac device driver. This driver is used for H3/A83T/A64\n 298:\t\t  EMAC ethernet controller.\n 299:\t\n 300:\tconfig DWMAC_SUN55I\n"
}

11/2 2026/09/04 15:21 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 24497
							output: 45
							thoughts: 17
						

Thoughts:
Here's my summary, as though I'm reading and processing the Kconfig file:

**Diving Back into the Kconfig Depths**

Okay, time to get back to the Kconfig file. I've been working on this for a while, and need to refresh my understanding of how everything's laid out. Let's start reading from line 301, and see what the next section covers. Hopefully, it's not too complex, and I can quickly grasp what’s going on, and identify any areas that could relate to the issue I'm currently investigating.



12/2 2026/09/04 15:21 tool read-file
0m Args:
{
  "File": "drivers/net/ethernet/stmicro/stmmac/Kconfig",
  "FirstLine": 301,
  "LineCount": 100
}

Results:
{
  "Contents": " 301:\t\ttristate \"Allwinner sun55i GMAC200 support\"\n 302:\t\tdefault ARCH_SUNXI\n 303:\t\tdepends on OF \u0026\u0026 (ARCH_SUNXI || COMPILE_TEST)\n 304:\t\tselect MDIO_BUS_MUX\n 305:\t\thelp\n 306:\t\t  Support for Allwinner A523/T527 GMAC200 ethernet controllers.\n 307:\t\n 308:\t\t  This selects Allwinner SoC glue layer support for the\n 309:\t\t  stmmac device driver. This driver is used for A523/T527\n 310:\t\t  GMAC200 ethernet controller.\n 311:\t\n 312:\tconfig DWMAC_THEAD\n 313:\t\ttristate \"T-HEAD dwmac support\"\n 314:\t\tdepends on OF \u0026\u0026 (ARCH_THEAD || COMPILE_TEST)\n 315:\t\thelp\n 316:\t\t  Support for ethernet controllers on T-HEAD RISC-V SoCs\n 317:\t\n 318:\t\t  This selects the T-HEAD platform specific glue layer support for\n 319:\t\t  the stmmac device driver. This driver is used for T-HEAD TH1520\n 320:\t\t  ethernet controller.\n 321:\t\n 322:\tconfig DWMAC_IMX8\n 323:\t\ttristate \"NXP IMX8 DWMAC support\"\n 324:\t\tdefault ARCH_MXC\n 325:\t\tdepends on OF \u0026\u0026 (ARCH_MXC || COMPILE_TEST)\n 326:\t\tselect MFD_SYSCON\n 327:\t\thelp\n 328:\t\t  Support for ethernet controller on NXP i.MX8 SOCs.\n 329:\t\n 330:\t\t  This selects NXP SoC glue layer support for the stmmac\n 331:\t\t  device driver. This driver is used for i.MX8 series like\n 332:\t\t  iMX8MP/iMX8DXL GMAC ethernet controller.\n 333:\t\n 334:\tconfig DWMAC_INTEL_PLAT\n 335:\t\ttristate \"Intel dwmac support\"\n 336:\t\tdepends on OF \u0026\u0026 COMMON_CLK\n 337:\t\thelp\n 338:\t\t  Support for ethernet controllers on Intel SoCs\n 339:\t\n 340:\t\t  This selects the Intel platform specific glue layer support for\n 341:\t\t  the stmmac device driver. This driver is used for the Intel Keem Bay\n 342:\t\t  SoC.\n 343:\t\n 344:\tconfig DWMAC_LOONGSON1\n 345:\t\ttristate \"Loongson1 GMAC support\"\n 346:\t\tdefault MACH_LOONGSON32\n 347:\t\tdepends on OF \u0026\u0026 (MACH_LOONGSON32 || COMPILE_TEST)\n 348:\t\thelp\n 349:\t\t  Support for ethernet controller on Loongson1 SoC.\n 350:\t\n 351:\t\t  This selects Loongson1 SoC glue layer support for the stmmac\n 352:\t\t  device driver. This driver is used for Loongson1-based boards\n 353:\t\t  like Loongson LS1B/LS1C.\n 354:\t\n 355:\tconfig DWMAC_TEGRA\n 356:\t\ttristate \"NVIDIA Tegra MGBE support\"\n 357:\t\tdepends on ARCH_TEGRA || COMPILE_TEST\n 358:\t\thelp\n 359:\t\t  This selects the Multi-GigaBit Ethernet (MGBE) Controller that is\n 360:\t\t  found on the NVIDIA Tegra SoC devices. This driver provides the glue\n 361:\t\t  layer on top of the stmmac driver required for these NVIDIA Tegra SoC\n 362:\t\t  devices.\n 363:\t\n 364:\tconfig DWMAC_VISCONTI\n 365:\t\ttristate \"Toshiba Visconti DWMAC support\"\n 366:\t\tdefault ARCH_VISCONTI\n 367:\t\tdepends on OF \u0026\u0026 COMMON_CLK \u0026\u0026 (ARCH_VISCONTI || COMPILE_TEST)\n 368:\t\thelp\n 369:\t\t  Support for ethernet controller on Visconti SoCs.\n 370:\t\n 371:\tendif # STMMAC_PLATFORM\n 372:\t\n 373:\tconfig STMMAC_LIBPCI\n 374:\t\ttristate\n 375:\t\thelp\n 376:\t\t  This option enables the PCI bus helpers for the stmmac driver.\n 377:\t\n 378:\tconfig DWMAC_INTEL\n 379:\t\ttristate \"Intel GMAC support\"\n 380:\t\tdefault X86\n 381:\t\tdepends on X86 \u0026\u0026 PCI\n 382:\t\tdepends on COMMON_CLK\n 383:\t\tdepends on ACPI\n 384:\t\thelp\n 385:\t\t  This selects the Intel platform specific bus support for the\n 386:\t\t  stmmac driver. This driver is used for Intel Quark/EHL/TGL.\n 387:\t\n 388:\tconfig DWMAC_LOONGSON\n 389:\t\ttristate \"Loongson PCI DWMAC support\"\n 390:\t\tdefault MACH_LOONGSON64\n 391:\t\tdepends on (MACH_LOONGSON64 || COMPILE_TEST) \u0026\u0026 PCI\n 392:\t\tdepends on COMMON_CLK\n 393:\t\tselect STMMAC_LIBPCI\n 394:\t\thelp\n 395:\t\t  This selects the LOONGSON PCI bus support for the stmmac driver,\n 396:\t\t  Support for ethernet controller on Loongson-2K1000 SoC and LS7A1000 bridge.\n 397:\t\n 398:\tconfig DWMAC_MOTORCOMM\n 399:\t\ttristate \"Motorcomm PCI DWMAC support\"\n 400:\t\tdepends on PCI\n"
}

13/2 2026/09/04 15:21 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 26246
							output: 44
							thoughts: 16
						

Thoughts:
Okay, here's my attempt at summarizing the thought process, as requested, geared toward an expert audience, and written in the first person:

**Focusing In: Examining Specific Code Lines**

Alright, I'm diving back into this code. I need to make sure I'm not missing anything critical in this analysis. I've been looking at the section related to [ *insert relevant topic the user would know from context* ] but I'm feeling like I need to double-check a specific area. Let me zero in on lines 401 through 430. I'm thinking there could be an interaction I've overlooked, a nuance in the conditional logic, or perhaps an edge case related to data validation in this region. This range is often where we find [ *insert relevant technical detail the user would be familiar with* ] and that's precisely where my concern currently lies. Gotta be thorough. Time to meticulously re-examine those lines and make sure my assumptions hold.



14/2 2026/09/04 15:21 tool read-file
0m Args:
{
  "File": "drivers/net/ethernet/stmicro/stmmac/Kconfig",
  "FirstLine": 401,
  "LineCount": 50
}

Results:
{
  "Contents": " 401:\t\tselect MOTORCOMM_PHY\n 402:\t\tselect STMMAC_LIBPCI\n 403:\t\thelp\n 404:\t\t  This enables glue driver for Motorcomm DWMAC-based PCI Ethernet\n 405:\t\t  controllers. Currently only YT6801 is supported.\n 406:\t\n 407:\tconfig STMMAC_PCI\n 408:\t\ttristate \"STMMAC PCI bus support\"\n 409:\t\tdepends on PCI\n 410:\t\tdepends on COMMON_CLK\n 411:\t\tselect STMMAC_LIBPCI\n 412:\t\thelp\n 413:\t\t  This selects the platform specific bus support for the stmmac driver.\n 414:\t\t  This driver was tested on XLINX XC2V3000 FF1152AMT0221\n 415:\t\t  D1215994A VIRTEX FPGA board and SNPS QoS IPK Prototyping Kit.\n 416:\t\n 417:\t\t  If you have a controller with this interface, say Y or M here.\n 418:\t\n 419:\t\t  If unsure, say N.\n 420:\tendif # STMMAC_ETH\n"
}

15/2 2026/09/04 15:21 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 26840
							output: 50
							thoughts: 628
						

Thoughts:
**My Assessment of the `stmmac` Driver for Fuzzing Suitability**

Okay, let's break this down. I'm looking at `drivers/net/ethernet/stmicro/stmmac/`, which I know is the driver for those STMicroelectronics/Synopsys DesignWare MAC Ethernet controllers. These are found in a whole host of SoCs and PCI cards, like Intel Quark/EHL/TGL, STM32, Allwinner, Rockchip, Tegra, the Motorcomm YT6801, and SNPS QoS IPK prototyping kit, and so on.

The critical question here is whether this hardware is realistically *emulated* in my standard testing environments, like QEMU or even Google Compute Engine VMs. If I can't reach it, there's no point in fuzzing it.

I've got to check what QEMU actually *does* emulate in a standard, virtualized setup. The usual suspects come to mind: e1000/e1000e/igb, rtl8139, virtio-net, vmxnet3, and things like pcnet/ne2k_pci, sungem. On ARM systems, specific board-level drivers like imx, cadens GEM, smc91c111, lan9118 exist, too. Does QEMU, on AMD64, emulate the `stmmac` or Synopsys DWMAC? Nope. That's a deal-breaker.

And is there any kind of virtual bus or USB emulation for `stmmac` that could help? No, because it's not a USB device driver.

Time to revisit those fuzzing criteria in Section 2, the "Return WorthFuzzing=false" rules. "Structurally unreachable hardware" is a key one. Specifically: vendor-specific PCIe switches, SmartNICs, or GPU drivers that need dedicated, physical ASIC/PCIe cards that *aren't* emulated in standard QEMU. That's *exactly* what I'm concerned about here. If the code modifies such drivers, it must not be fuzzed.

Then there's the unreachable execution paths criteria, like teardown callbacks, triggered only during physical PCI hot-unplug or manual sysfs driver unbinding. Or code paths specific to non-target architectures.

I've got to circle back to Section 1, the core principle: *REACHABILITY*. Fuzzing has to be able to find bugs in code that can actually *run* in standard virtualized environments. If the code is structurally unreachable, it doesn't matter how complex or assertion-laden it is. It's not worth my time.

So, let's get into the specifics of the *modified* code. Specifically, the file `drivers/net/ethernet/stmicro/stmmac/stmmac_main.c`. I have to dig into `stmmac_change_mtu` to see exactly what's changed and then decide on the next steps.



16/2 2026/09/04 15:21 tool read-file
0m Args:
{
  "File": "drivers/net/ethernet/stmicro/stmmac/stmmac_main.c",
  "FirstLine": 6115,
  "LineCount": 40
}

Results:
{
  "Contents": "6115:\t\t/* If condition true, FIFO is too small or MTU too large */\n6116:\t\tif ((txfifosz \u003c new_mtu) || (new_mtu \u003e BUF_SIZE_16KiB))\n6117:\t\t\treturn -EINVAL;\n6118:\t\n6119:\t\tif (netif_running(dev)) {\n6120:\t\t\tnetdev_dbg(priv-\u003edev, \"restarting interface to change its MTU\\n\");\n6121:\t\t\t/* Try to allocate the new DMA conf with the new mtu */\n6122:\t\t\tdma_conf = stmmac_setup_dma_desc(priv, mtu);\n6123:\t\t\tif (IS_ERR(dma_conf)) {\n6124:\t\t\t\tnetdev_err(priv-\u003edev, \"failed allocating new dma conf for new MTU %d\\n\",\n6125:\t\t\t\t\t   mtu);\n6126:\t\t\t\treturn PTR_ERR(dma_conf);\n6127:\t\t\t}\n6128:\t\n6129:\t\t\t__stmmac_release(dev);\n6130:\t\n6131:\t\t\tret = __stmmac_open(dev, dma_conf);\n6132:\t\t\tif (ret) {\n6133:\t\t\t\tfree_dma_desc_resources(priv, dma_conf);\n6134:\t\t\t\tkfree(dma_conf);\n6135:\t\t\t\tmemset(\u0026priv-\u003edma_conf, 0, sizeof(priv-\u003edma_conf));\n6136:\t\t\t\tnetdev_err(priv-\u003edev, \"failed reopening the interface after MTU change\\n\");\n6137:\t\t\t\treturn ret;\n6138:\t\t\t}\n6139:\t\n6140:\t\t\tkfree(dma_conf);\n6141:\t\n6142:\t\t\tstmmac_set_rx_mode(dev);\n6143:\t\t}\n6144:\t\n6145:\t\tWRITE_ONCE(dev-\u003emtu, mtu);\n6146:\t\tnetdev_update_features(dev);\n6147:\t\n6148:\t\treturn 0;\n6149:\t}\n6150:\t\n6151:\tstatic netdev_features_t stmmac_fix_features(struct net_device *dev,\n6152:\t\t\t\t\t\t     netdev_features_t features)\n6153:\t{\n6154:\t\tstruct stmmac_priv *priv = netdev_priv(dev);\n"
}

17/2 2026/09/04 15:21 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 28828
							output: 48
							thoughts: 110
						

Thoughts:
**Investigating stmmac's MTU Change Mechanism**

Okay, so `stmmac_change_mtu` is the function that handles MTU changes within the `stmmac` driver. That makes sense; it's the one called when someone, presumably through `dev_set_mtu` or `ndo_change_mtu`, wants to alter the MTU of a network device registered by the `stmmac` driver. So, naturally, to even get to that point, we must be dealing with a properly instantiated `stmmac` network device.

Now, my real question is, does `stmmac` support any kind of virtual or dummy device mode? Something where it isn't tied to physical hardware, perhaps for testing or simulation purposes? If so, the path to `stmmac_change_mtu` might be different in those scenarios. Time to crack open the codebase and see if there's any evidence of virtual instantiation or a dummy device setup for `stmmac`. I'll start with a thorough search.



18/2 2026/09/04 15:21 tool grepper
0m Args:
{
  "Expression": "stmmac_probe|stmmac_dvr_probe",
  "PathPrefix": "drivers/net/ethernet/stmicro/stmmac/"
}

Results:
{
  "Output": "drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c=93=static int anarion_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-103-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:104:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-105-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=283=static int dwc_eth_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-306-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:307:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-308-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-329-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:330:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-331-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c=167=static int eic7700_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-180-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c:181:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-182-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c=19=static int dwmac_generic_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-29-\tif (pdev-\u003edev.of_node) {\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c:30:\t\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-31-\t\tif (IS_ERR(plat_dat)) {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c=293=static int imx_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-308-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:309:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-310-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c=154=static int ingenic_mac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-166-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c:167:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-168-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c=42=static int intel_eth_plat_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-53-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c:54:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-55-\tif (IS_ERR(plat_dat)) {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-117-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c:118:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-119-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c=1263=static int intel_eth_pci_probe(struct pci_dev *pdev,\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-1340-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c:1341:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat, \u0026res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-1342-\tif (ret) {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c=374=static int ipq806x_gmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c-386-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c:387:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c-388-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c-482-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c:483:\treturn stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c-484-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c=498=static int loongson_dwmac_probe(struct pci_dev *pdev, const struct pci_device_id *id)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-561-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:562:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat, \u0026res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-563-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c=158=static int ls1x_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c-187-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c:188:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c-189-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c=42=static int lpc18xx_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c-52-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c:53:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c-54-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c-67-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c:68:\treturn stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c-69-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c=599=static int mediatek_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c-630-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c:631:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c-632-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c-641-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c:642:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c-643-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c=47=static int meson6_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c-57-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c:58:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c-59-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c-72-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c:73:\treturn stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c-74-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c=382=static int meson8b_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c-392-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c:393:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c-394-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c-463-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c:464:\treturn stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c-465-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c=293=static int motorcomm_probe(struct pci_dev *pdev, const struct pci_device_id *id)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c-358-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c:359:\treturn stmmac_dvr_probe(\u0026pdev-\u003edev, plat, \u0026res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c-360-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c=82=static int nvt_gmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c-93-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c:94:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c-95-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c=684=static int qcom_ethqos_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c-698-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c:699:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c-700-\tif (IS_ERR(plat_dat)) {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c=131=static int renesas_gbeth_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c-145-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c:146:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c-147-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c=1568=static int rk_gmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c-1584-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c:1585:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c-1586-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c=48=static int rzn1_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c-58-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c:59:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c-60-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c-67-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c:68:\tret = stmmac_dvr_probe(dev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c-69-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c=144=static int s32_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c-162-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c:163:\tplat = devm_stmmac_probe_config_dt(pdev, res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c-164-\tif (IS_ERR(plat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c=596=static int socfpga_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c-614-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c:615:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c-616-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c=35=static int sophgo_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c-47-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c:48:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c-49-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c-64-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c:65:\treturn stmmac_dvr_probe(dev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c-66-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c=147=static int spacemit_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c-168-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c:169:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c-170-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c-206-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c:207:\treturn stmmac_dvr_probe(dev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c-208-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c=90=static int starfive_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c-102-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c:103:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c-104-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c-152-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c:153:\treturn stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c-154-}\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c=249=static int sti_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c-266-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c:267:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c-268-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c=525=static int stm32_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c-536-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c:537:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c-538-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c-578-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c:579:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c-580-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c=105=static int sun55i_gmac200_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c-116-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c:117:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c-118-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c=1105=static int sun8i_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1173-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c:1174:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1175-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1201-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c:1202:\t/* the MAC is runtime suspended after stmmac_dvr_probe(), so we\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1203-\t * need to ensure the MAC resume back before other operations such\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1208-\t/* The mux must be registered after parent MDIO\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c:1209:\t * so after stmmac_dvr_probe()\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1210-\t */\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c=99=static int sun7i_gmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c-110-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c:111:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c-112-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c=214=static int tegra_mgbe_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c-319-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c:320:\tplat = devm_stmmac_probe_config_dt(pdev, res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c-321-\tif (IS_ERR(plat)) {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c-375-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c:376:\terr = stmmac_dvr_probe(\u0026pdev-\u003edev, plat, \u0026res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c-377-\tif (err \u003c 0)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c=216=static int thead_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c-229-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c:230:\tplat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c-231-\tif (IS_ERR(plat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c=205=static int visconti_eth_dwmac_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c-215-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c:216:\tplat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c-217-\tif (IS_ERR(plat_dat))\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c-236-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c:237:\tret = stmmac_dvr_probe(\u0026pdev-\u003edev, plat_dat, \u0026stmmac_res);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c-238-\tif (ret)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac.h=411=void stmmac_dvr_remove(struct device *dev);\ndrivers/net/ethernet/stmicro/stmmac/stmmac.h:412:int stmmac_dvr_probe(struct device *device,\ndrivers/net/ethernet/stmicro/stmmac/stmmac.h-413-\t\t     struct plat_stmmacenet_data *plat_dat,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c=7773=EXPORT_SYMBOL_GPL(stmmac_plat_dat_alloc);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7774-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:7775:static int __stmmac_dvr_probe(struct device *device,\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-7776-\t\t\t      struct plat_stmmacenet_data *plat_dat,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8077-/**\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:8078: * stmmac_dvr_probe\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8079- * @dev: device pointer\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8086- */\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:8087:int stmmac_dvr_probe(struct device *dev, struct plat_stmmacenet_data *plat_dat,\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8088-\t\t     struct stmmac_resources *res)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8097-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:8098:\tret = __stmmac_dvr_probe(dev, plat_dat, res);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8099-\tif (ret \u0026\u0026 plat_dat-\u003eexit)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8103-}\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c:8104:EXPORT_SYMBOL_GPL(stmmac_dvr_probe);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_main.c-8105-\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c=118=static int stmmac_pci_probe(struct pci_dev *pdev,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c-182-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:183:\treturn stmmac_dvr_probe(\u0026pdev-\u003edev, plat, \u0026res);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c-184-}\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c=393=static const char * const stmmac_gmac4_compats[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-405-/**\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:406: * stmmac_probe_config_dt - parse device-tree driver parameters\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-407- * @pdev: platform_device structure\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c=413=static struct plat_stmmacenet_data *\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:414:stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-415-{\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c=641=static void devm_stmmac_remove_config_dt(void *data)\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-651-/**\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:652: * devm_stmmac_probe_config_dt\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-653- * @pdev: platform_device structure\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-654- * @mac: MAC address to use\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:655: * Description: Devres variant of stmmac_probe_config_dt().\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-656- */\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c=657=struct plat_stmmacenet_data *\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:658:devm_stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-659-{\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-662-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:663:\tplat = stmmac_probe_config_dt(pdev, mac);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-664-\tif (IS_ERR(plat))\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c=675=struct plat_stmmacenet_data *\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:676:devm_stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac)\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-677-{\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-680-#endif /* CONFIG_OF */\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:681:EXPORT_SYMBOL_GPL(devm_stmmac_probe_config_dt);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-682-\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c=846=int stmmac_pltfr_probe(struct platform_device *pdev,\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-854-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:855:\treturn stmmac_dvr_probe(\u0026pdev-\u003edev, plat, res);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c-856-}\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.h=14=struct plat_stmmacenet_data *\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.h:15:devm_stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_platform.h-16-\n"
}

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

Args:
null

Results:
null

Tokens:
							input: 39089
							output: 39
							thoughts: 110
						

Thoughts:
**Analyzing the Origins of `stmmac_dvr_probe` Calls**

Okay, so I'm thinking about how `stmmac_dvr_probe` gets called. Right now, it seems like all the calls originate from two distinct groups: the SoC platform drivers, the ones that are deeply integrated into the specific hardware like the `dwmac-rk`, `dwmac-sun8i`, and `dwmac-imx` drivers, and then the vendor PCI drivers which include `dwmac-intel.c`, `dwmac-loongson.c`, and `dwmac-motorcomm.c`, and then the `stmmac_pci.c` driver.

Given that's the landscape, I need to take a closer look at the PCI drivers, especially the `stmmac_pci.c` and the `dwmac-intel.c` drivers, and figure out what's going on with their device IDs. Time to dive in!



20/2 2026/09/04 15:21 tool grepper
0m Args:
{
  "Expression": "MODULE_DEVICE_TABLE",
  "PathPrefix": "drivers/net/ethernet/stmicro/stmmac/"
}

Results:
{
  "Output": "drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c=119=static const struct of_device_id anarion_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-122-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c:123:MODULE_DEVICE_TABLE(of, anarion_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c-124-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c=353=static const struct of_device_id dwc_eth_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-358-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c:359:MODULE_DEVICE_TABLE(of, dwc_eth_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c-360-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c=350=static const struct of_device_id eic7700_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-359-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c:360:MODULE_DEVICE_TABLE(of, eic7700_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-eic7700.c-361-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c=52=static const struct of_device_id dwmac_generic_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-66-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c:67:MODULE_DEVICE_TABLE(of, dwmac_generic_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-generic.c-68-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c=384=static const struct of_device_id imx_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-389-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:390:MODULE_DEVICE_TABLE(of, imx_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-imx.c-391-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c=262=static const struct of_device_id ingenic_mac_of_matches[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-269-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c:270:MODULE_DEVICE_TABLE(of, ingenic_mac_of_matches);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c-271-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c=36=static const struct of_device_id intel_eth_plat_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-39-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c:40:MODULE_DEVICE_TABLE(of, intel_eth_plat_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c-41-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c=1395=static const struct pci_device_id intel_eth_pci_id_table[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-1414-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c:1415:MODULE_DEVICE_TABLE(pci, intel_eth_pci_id_table);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-intel.c-1416-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c=491=static const struct of_device_id ipq806x_gmac_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c-494-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c:495:MODULE_DEVICE_TABLE(of, ipq806x_gmac_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c-496-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c=596=static const struct pci_device_id loongson_dwmac_id_table[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-601-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c:602:MODULE_DEVICE_TABLE(pci, loongson_dwmac_id_table);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c-603-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c=216=static const struct of_device_id ls1x_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c-226-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c:227:MODULE_DEVICE_TABLE(of, ls1x_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c-228-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c=71=static const struct of_device_id lpc18xx_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c-74-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c:75:MODULE_DEVICE_TABLE(of, lpc18xx_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c-76-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c=662=static const struct of_device_id mediatek_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c-669-\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c:670:MODULE_DEVICE_TABLE(of, mediatek_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c-671-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c=76=static const struct of_device_id meson6_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c-79-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c:80:MODULE_DEVICE_TABLE(of, meson6_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson.c-81-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c=482=static const struct of_device_id meson8b_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c-504-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c:505:MODULE_DEVICE_TABLE(of, meson8b_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c-506-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c=367=static const struct pci_device_id dwmac_motorcomm_pci_id_table[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c-370-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c:371:MODULE_DEVICE_TABLE(pci, dwmac_motorcomm_pci_id_table);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c-372-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c=118=static const struct of_device_id nvt_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c-121-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c:122:MODULE_DEVICE_TABLE(of, nvt_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c-123-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c=800=static const struct of_device_id qcom_ethqos_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c-806-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c:807:MODULE_DEVICE_TABLE(of, qcom_ethqos_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c-808-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c=216=static const struct of_device_id renesas_gbeth_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c-221-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c:222:MODULE_DEVICE_TABLE(of, renesas_gbeth_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c-223-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c=1616=static const struct of_device_id rk_gmac_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c-1634-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c:1635:MODULE_DEVICE_TABLE(of, rk_gmac_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rk.c-1636-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c=75=static const struct of_device_id rzn1_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c-78-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c:79:MODULE_DEVICE_TABLE(of, rzn1_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c-80-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c=216=static const struct of_device_id s32_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c-219-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c:220:MODULE_DEVICE_TABLE(of, s32_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-s32.c-221-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c=673=static const struct of_device_id socfpga_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c-678-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c:679:MODULE_DEVICE_TABLE(of, socfpga_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c-680-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c=72=static const struct of_device_id sophgo_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c-76-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c:77:MODULE_DEVICE_TABLE(of, sophgo_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c-78-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c=210=static const struct of_device_id spacemit_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c-213-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c:214:MODULE_DEVICE_TABLE(of, spacemit_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c-215-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c=160=static const struct of_device_id starfive_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c-164-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c:165:MODULE_DEVICE_TABLE(of, starfive_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c-166-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c=296=static const struct of_device_id sti_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c-299-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c:300:MODULE_DEVICE_TABLE(of, sti_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sti.c-301-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c=662=static const struct of_device_id stm32_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c-668-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c:669:MODULE_DEVICE_TABLE(of, stm32_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c-670-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c=141=static const struct of_device_id sun55i_gmac200_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c-144-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c:145:MODULE_DEVICE_TABLE(of, sun55i_gmac200_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.c-146-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c=1268=static const struct of_device_id sun8i_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1282-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c:1283:MODULE_DEVICE_TABLE(of, sun8i_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c-1284-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c=150=static const struct of_device_id sun7i_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c-153-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c:154:MODULE_DEVICE_TABLE(of, sun7i_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c-155-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c=397=static const struct of_device_id tegra_mgbe_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c-400-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c:401:MODULE_DEVICE_TABLE(of, tegra_mgbe_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c-402-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c=267=static const struct of_device_id thead_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c-270-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c:271:MODULE_DEVICE_TABLE(of, thead_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-thead.c-272-\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c=255=static const struct of_device_id visconti_eth_dwmac_match[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c-258-};\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c:259:MODULE_DEVICE_TABLE(of, visconti_eth_dwmac_match);\ndrivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c-260-\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c=203=static const struct pci_device_id stmmac_id_table[] = {\n--\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c-209-\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c:210:MODULE_DEVICE_TABLE(pci, stmmac_id_table);\ndrivers/net/ethernet/stmicro/stmmac/stmmac_pci.c-211-\n"
}

21/2 2026/09/04 15:21 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 44811
							output: 50
							thoughts: 33
						

Thoughts:
Okay, let's dive into this. Here's how I'd approach this task, as if these were my internal thoughts:

**Investigating STMMAC and Intel DWMAC Driver Identification**

Right, I need to understand how the STMMAC driver identifies its hardware, specifically looking at PCI devices. My first step is to locate the relevant device ID tables. I'm going to zero in on `stmmac_id_table` within the `stmmac_pci.c` source file, as that's the natural place for PCI-specific device ID handling within the STMMAC framework. After that, I will check the `dwmac-intel.c` file as well because it's relevant to the Intel DWMAC. By comparing the contents of these two files, I will learn what they have in common, and where they diverge. This will guide my understanding of the STMMAC driver's detection process in the context of Intel hardware. I'm expecting to find PCI vendor and device IDs here, likely used in a matching process to determine which hardware the driver is compatible with. I'm hoping to quickly identify the key data structures and any associated probing functions that are involved.



22/2 2026/09/04 15:21 tool read-file
0m Args:
{
  "File": "drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c",
  "FirstLine": 195,
  "LineCount": 25
}

Results:
{
  "Contents": " 195:\t}\n 196:\t\n 197:\t/* synthetic ID, no official vendor */\n 198:\t#define PCI_VENDOR_ID_STMMAC\t\t0x0700\n 199:\t\n 200:\t#define PCI_DEVICE_ID_STMMAC_STMMAC\t\t0x1108\n 201:\t#define PCI_DEVICE_ID_SYNOPSYS_GMAC5_ID\t\t0x7102\n 202:\t\n 203:\tstatic const struct pci_device_id stmmac_id_table[] = {\n 204:\t\t{ PCI_DEVICE_DATA(STMMAC, STMMAC, \u0026stmmac_pci_info) },\n 205:\t\t{ PCI_DEVICE_DATA(STMICRO, MAC, \u0026stmmac_pci_info) },\n 206:\t\t{ PCI_DEVICE_DATA(SYNOPSYS, GMAC5_ID, \u0026snps_gmac5_pci_info) },\n 207:\t\t{}\n 208:\t};\n 209:\t\n 210:\tMODULE_DEVICE_TABLE(pci, stmmac_id_table);\n 211:\t\n 212:\tstatic struct pci_driver stmmac_pci_driver = {\n 213:\t\t.name = STMMAC_RESOURCE_NAME,\n 214:\t\t.id_table = stmmac_id_table,\n 215:\t\t.probe = stmmac_pci_probe,\n 216:\t\t.remove = stmmac_pci_remove,\n 217:\t\t.driver         = {\n 218:\t\t\t.pm     = \u0026stmmac_simple_pm_ops,\n 219:\t\t},\n"
}

23/2 2026/09/04 15:21 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 45617
							output: 49
							thoughts: 14
						

Thoughts:
Here's my take:

**Investigating Potential MAC Driver Issues**

Okay, I'm already deep into this network driver issue, but before I go too much further down this rabbit hole, I should probably expand my scope just a bit. My initial hunch has me looking closely at the specific driver, let's call it `dwmac-realtek.c`, but it's always wise to check related code. Therefore, I should also take a look at `dwmac-intel.c`. Might be some shared logic or a similar architecture that is relevant to the problem. Seeing how the Intel driver handles similar scenarios could give me another perspective and lead to a quicker resolution. It's time to fire up the editor and compare the implementations.



24/2 2026/09/04 15:22 tool read-file
0m Args:
{
  "File": "drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c",
  "FirstLine": 1390,
  "LineCount": 35
}

Results:
{
  "Contents": "1390:\t#define PCI_DEVICE_ID_INTEL_ADLS_SGMII1G_0\t0x7aac\n1391:\t#define PCI_DEVICE_ID_INTEL_ADLS_SGMII1G_1\t0x7aad\n1392:\t#define PCI_DEVICE_ID_INTEL_ADLN_SGMII1G\t0x54ac\n1393:\t#define PCI_DEVICE_ID_INTEL_RPLP_SGMII1G\t0x51ac\n1394:\t\n1395:\tstatic const struct pci_device_id intel_eth_pci_id_table[] = {\n1396:\t\t{ PCI_DEVICE_DATA(INTEL, QUARK, \u0026quark_info) },\n1397:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_RGMII1G, \u0026ehl_rgmii1g_info) },\n1398:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_SGMII1G, \u0026ehl_sgmii1g_info) },\n1399:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_SGMII2G5, \u0026ehl_sgmii1g_info) },\n1400:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE0_RGMII1G, \u0026ehl_pse0_rgmii1g_info) },\n1401:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE0_SGMII1G, \u0026ehl_pse0_sgmii1g_info) },\n1402:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE0_SGMII2G5, \u0026ehl_pse0_sgmii1g_info) },\n1403:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE1_RGMII1G, \u0026ehl_pse1_rgmii1g_info) },\n1404:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE1_SGMII1G, \u0026ehl_pse1_sgmii1g_info) },\n1405:\t\t{ PCI_DEVICE_DATA(INTEL, EHL_PSE1_SGMII2G5, \u0026ehl_pse1_sgmii1g_info) },\n1406:\t\t{ PCI_DEVICE_DATA(INTEL, TGL_SGMII1G, \u0026tgl_sgmii1g_phy0_info) },\n1407:\t\t{ PCI_DEVICE_DATA(INTEL, TGLH_SGMII1G_0, \u0026tgl_sgmii1g_phy0_info) },\n1408:\t\t{ PCI_DEVICE_DATA(INTEL, TGLH_SGMII1G_1, \u0026tgl_sgmii1g_phy1_info) },\n1409:\t\t{ PCI_DEVICE_DATA(INTEL, ADLS_SGMII1G_0, \u0026adls_sgmii1g_phy0_info) },\n1410:\t\t{ PCI_DEVICE_DATA(INTEL, ADLS_SGMII1G_1, \u0026adls_sgmii1g_phy1_info) },\n1411:\t\t{ PCI_DEVICE_DATA(INTEL, ADLN_SGMII1G, \u0026adln_sgmii1g_phy0_info) },\n1412:\t\t{ PCI_DEVICE_DATA(INTEL, RPLP_SGMII1G, \u0026adln_sgmii1g_phy0_info) },\n1413:\t\t{}\n1414:\t};\n1415:\tMODULE_DEVICE_TABLE(pci, intel_eth_pci_id_table);\n1416:\t\n1417:\tstatic struct pci_driver intel_eth_pci_driver = {\n1418:\t\t.name = \"intel-eth-pci\",\n1419:\t\t.id_table = intel_eth_pci_id_table,\n1420:\t\t.probe = intel_eth_pci_probe,\n1421:\t\t.remove = intel_eth_pci_remove,\n1422:\t\t.driver         = {\n1423:\t\t\t.pm     = \u0026stmmac_simple_pm_ops,\n1424:\t\t},\n"
}

25/2 2026/09/04 15:22 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 46905
							output: 125
							thoughts: 798
						

Thoughts:
**My Assessment: stmmac Driver Unfuzzable in Standard Environments**

Okay, so I've been looking at this `stmmac` driver. It's for Synopsys DWMAC hardware, which is used in a bunch of embedded SoCs – Intel, Rockchip, STM32, the whole lot. The issue is, these devices aren't emulated by the standard QEMU setup that we use for syzkaller fuzzing, nor are they available in the virtualized environments the fuzzing VMs use.

I went back and checked the guidance, specifically that section on "Structurally unreachable hardware." It explicitly mentions things like vendor-specific PCIe switches, SmartNICs, and GPU drivers. Essentially, anything that needs a physical ASIC or a PCIe card that QEMU doesn't emulate.

Then I confirmed my suspicions: syzkaller runs in standard VMs (QEMU or GCE) on amd64 or arm64. These don't include Synopsys DWMAC hardware or anything comparable. The only network drivers we *can* reach through physical/PCI emulation in these environments are things like virtio-net, e1000, rtl8139, or software-based virtual devices. The `stmmac` driver relies on physical SoC/ASIC registers from the Synopsys DWMAC/DWXGMAC and therefore can't be probed or instantiated without the underlying hardware, devicetree or PCI device present. This means `stmmac_change_mtu` – and the whole `stmmac` driver itself – is effectively unreachable in our fuzzing setup.

I then revisited the core triage philosophy and those "NEGATIVE CRITERIA." Reachability is *the* key. If the code is unreachable in standard VMs, it shouldn't be fuzzed, no matter what.

It all lines up perfectly. The `stmmac_change_mtu()` function is in `drivers/net/ethernet/stmicro/stmmac/stmmac_main.c`, and it's part of the STMicroelectronics/Synopsys DesignWare Ethernet MAC driver. It requires hardware that we *don't* have. Therefore, the conclusion is: **`WorthFuzzing` is `false`**. No specific configurations or focus symbols are needed here because it's fundamentally unreachable.

Time to call `set-results`.



26/2 2026/09/04 15:22 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [],
  "Reasoning": "The patch modifies stmmac_change_mtu() in drivers/net/ethernet/stmicro/stmmac/stmmac_main.c, which is part of the STMicroelectronics / Synopsys DesignWare Ethernet MAC (stmmac) driver. This driver controls physical SoC/ASIC or PCI network hardware that is not emulated in standard QEMU or GCE virtual fuzzing environments, making the modified code structurally unreachable.",
  "WorthFuzzing": false
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch modifies stmmac_change_mtu() in drivers/net/ethernet/stmicro/stmmac/stmmac_main.c, which is part of the STMicroelectronics / Synopsys DesignWare Ethernet MAC (stmmac) driver. This driver controls physical SoC/ASIC or PCI network hardware that is not emulated in standard QEMU or GCE virtual fuzzing environments, making the modified code structurally unreachable.",
  "WorthFuzzing": false
}

27/1 2026/09/04 15:22 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)