AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/09/08 14:02 flow patch-triage
0m Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "KMSANReasoning": "",
  "NeedsKMSAN": false,
  "Reasoning": "The patch modifies drivers/net/phy/dp83867.c to preserve LED polarity configuration across hardware resets. The DP83867 PHY driver requires physical Texas Instruments Ethernet PHY hardware (typically used on embedded ARM/SoC boards) not emulated in standard virtualized fuzzing environments (QEMU/GCE on amd64), making the modified code structurally unreachable.",
  "WorthFuzzing": false
}

1/1 2026/09/08 14:02 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit 6ed4d485508a080ce1aa2cc943054711a26b3279\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Tue Sep 8 14:02:20 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c\nindex 88255e92b4cdb..c9c3b0062cc7a 100644\n--- a/drivers/net/phy/dp83867.c\n+++ b/drivers/net/phy/dp83867.c\n@@ -196,6 +196,8 @@ struct dp83867_private {\n \tbool set_clk_output;\n \tu32 clk_output_sel;\n \tbool sgmii_ref_clk_en;\n+\tu16 led_polarity;\n+\tu16 led_polarity_mask;\n };\n \n static int dp83867_ack_interrupt(struct phy_device *phydev)\n@@ -896,6 +898,15 @@ static int dp83867_config_init(struct phy_device *phydev)\n \t\t\t       mask, val);\n \t}\n \n+\t/* Restore the LED polarity dropped by the soft reset in phy_init_hw() */\n+\tif (dp83867-\u003eled_polarity_mask) {\n+\t\tret = phy_modify(phydev, DP83867_LEDCR2,\n+\t\t\t\t dp83867-\u003eled_polarity_mask,\n+\t\t\t\t dp83867-\u003eled_polarity);\n+\t\tif (ret)\n+\t\t\treturn ret;\n+\t}\n+\n \treturn 0;\n }\n \n@@ -1141,8 +1152,10 @@ static int dp83867_led_hw_control_get(struct phy_device *phydev, u8 index,\n static int dp83867_led_polarity_set(struct phy_device *phydev, int index,\n \t\t\t\t    unsigned long modes)\n {\n+\tstruct dp83867_private *dp83867 = phydev-\u003epriv;\n+\tu16 mask = DP83867_LED_POLARITY(index);\n \t/* Default active high */\n-\tu16 polarity = DP83867_LED_POLARITY(index);\n+\tu16 polarity = mask;\n \tu32 mode;\n \n \tfor_each_set_bit(mode, \u0026modes, __PHY_LED_MODES_NUM) {\n@@ -1154,8 +1167,11 @@ static int dp83867_led_polarity_set(struct phy_device *phydev, int index,\n \t\t\treturn -EINVAL;\n \t\t}\n \t}\n-\treturn phy_modify(phydev, DP83867_LEDCR2,\n-\t\t\t  DP83867_LED_POLARITY(index), polarity);\n+\n+\tdp83867-\u003eled_polarity_mask |= mask;\n+\tdp83867-\u003eled_polarity = (dp83867-\u003eled_polarity \u0026 ~mask) | polarity;\n+\n+\treturn phy_modify(phydev, DP83867_LEDCR2, mask, polarity);\n }\n \n static unsigned int dp83867_inband_caps(struct phy_device *phydev,\n"
}

2/1 2026/09/08 14:02 agent patch-evaluator
0m Model:
core

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch modifies drivers/net/phy/dp83867.c to preserve LED polarity configuration across hardware resets. The DP83867 PHY driver requires physical Texas Instruments Ethernet PHY hardware (typically used on embedded ARM/SoC boards) not emulated in standard virtualized fuzzing environments (QEMU/GCE on amd64), 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 6ed4d485508a080ce1aa2cc943054711a26b3279
Author: syz-cluster <triage@syzkaller.com>
Date:   Tue Sep 8 14:02:20 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c
index 88255e92b4cdb..c9c3b0062cc7a 100644
--- a/drivers/net/phy/dp83867.c
+++ b/drivers/net/phy/dp83867.c
@@ -196,6 +196,8 @@ struct dp83867_private {
 	bool set_clk_output;
 	u32 clk_output_sel;
 	bool sgmii_ref_clk_en;
+	u16 led_polarity;
+	u16 led_polarity_mask;
 };
 
 static int dp83867_ack_interrupt(struct phy_device *phydev)
@@ -896,6 +898,15 @@ static int dp83867_config_init(struct phy_device *phydev)
 			       mask, val);
 	}
 
+	/* Restore the LED polarity dropped by the soft reset in phy_init_hw() */
+	if (dp83867->led_polarity_mask) {
+		ret = phy_modify(phydev, DP83867_LEDCR2,
+				 dp83867->led_polarity_mask,
+				 dp83867->led_polarity);
+		if (ret)
+			return ret;
+	}
+
 	return 0;
 }
 
@@ -1141,8 +1152,10 @@ static int dp83867_led_hw_control_get(struct phy_device *phydev, u8 index,
 static int dp83867_led_polarity_set(struct phy_device *phydev, int index,
 				    unsigned long modes)
 {
+	struct dp83867_private *dp83867 = phydev->priv;
+	u16 mask = DP83867_LED_POLARITY(index);
 	/* Default active high */
-	u16 polarity = DP83867_LED_POLARITY(index);
+	u16 polarity = mask;
 	u32 mode;
 
 	for_each_set_bit(mode, &modes, __PHY_LED_MODES_NUM) {
@@ -1154,8 +1167,11 @@ static int dp83867_led_polarity_set(struct phy_device *phydev, int index,
 			return -EINVAL;
 		}
 	}
-	return phy_modify(phydev, DP83867_LEDCR2,
-			  DP83867_LED_POLARITY(index), polarity);
+
+	dp83867->led_polarity_mask |= mask;
+	dp83867->led_polarity = (dp83867->led_polarity & ~mask) | polarity;
+
+	return phy_modify(phydev, DP83867_LEDCR2, mask, polarity);
 }
 
 static unsigned int dp83867_inband_caps(struct phy_device *phydev,

3/2 2026/09/08 14:02 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 3472
							output: 32
							thoughts: 103
						

Thoughts:
**Analyzing This Patch**

Okay, let's dive into this patch. My immediate thought is to zero in on the modification – it's within `drivers/net/phy/dp83867.c`. Right, that's the driver for the Texas Instruments DP83867 Gigabit Ethernet PHY. My next step, as always with these types of changes, is to quickly assess its scope. I need to understand the hardware requirements or reachability implications of this change. Is this a common PHY, or something more specialized?

To get a better handle on the config, I'm going to reach for `grepper` or check the `drivers/net/phy/Kconfig` file. That will quickly clarify the config options and help me categorize it within the larger PHY driver landscape.



4/2 2026/09/08 14:02 tool grepper
0m Args:
{
  "Expression": "DP83867",
  "PathPrefix": "drivers/net/phy/"
}

Results:
{
  "Output": "\nFull output is too long, showing 500 out of 798 lines.\nUse more precise expression if possible.\n\ndrivers/net/phy/Kconfig=446=config DP83848_PHY\n--\ndrivers/net/phy/Kconfig-450-\ndrivers/net/phy/Kconfig:451:config DP83867_PHY\ndrivers/net/phy/Kconfig:452:\ttristate \"Texas Instruments DP83867 Gigabit PHY\"\ndrivers/net/phy/Kconfig-453-\thelp\ndrivers/net/phy/Kconfig:454:\t  Currently supports the DP83867 PHY.\ndrivers/net/phy/Kconfig-455-\n--\ndrivers/net/phy/Makefile=60=obj-$(CONFIG_DP83848_PHY)\t+= dp83848.o\ndrivers/net/phy/Makefile:61:obj-$(CONFIG_DP83867_PHY)\t+= dp83867.o\ndrivers/net/phy/Makefile-62-obj-$(CONFIG_DP83869_PHY)\t+= dp83869.o\n--\ndrivers/net/phy/dp83867.c-1-// SPDX-License-Identifier: GPL-2.0\ndrivers/net/phy/dp83867.c:2:/* Driver for the Texas Instruments DP83867 PHY\ndrivers/net/phy/dp83867.c-3- *\n--\ndrivers/net/phy/dp83867.c-20-\ndrivers/net/phy/dp83867.c:21:#define DP83867_PHY_ID\t\t0x2000a231\ndrivers/net/phy/dp83867.c:22:#define DP83867_DEVADDR\t\t0x1f\ndrivers/net/phy/dp83867.c-23-\ndrivers/net/phy/dp83867.c:24:#define MII_DP83867_PHYCTRL\t0x10\ndrivers/net/phy/dp83867.c:25:#define MII_DP83867_PHYSTS\t0x11\ndrivers/net/phy/dp83867.c:26:#define MII_DP83867_MICR\t0x12\ndrivers/net/phy/dp83867.c:27:#define MII_DP83867_ISR\t\t0x13\ndrivers/net/phy/dp83867.c:28:#define DP83867_CFG2\t\t0x14\ndrivers/net/phy/dp83867.c:29:#define DP83867_LEDCR1\t\t0x18\ndrivers/net/phy/dp83867.c:30:#define DP83867_LEDCR2\t\t0x19\ndrivers/net/phy/dp83867.c:31:#define DP83867_CFG3\t\t0x1e\ndrivers/net/phy/dp83867.c:32:#define DP83867_CTRL\t\t0x1f\ndrivers/net/phy/dp83867.c-33-\ndrivers/net/phy/dp83867.c-34-/* Extended Registers */\ndrivers/net/phy/dp83867.c:35:#define DP83867_FLD_THR_CFG\t0x002e\ndrivers/net/phy/dp83867.c:36:#define DP83867_CFG4\t\t0x0031\ndrivers/net/phy/dp83867.c:37:#define DP83867_CFG4_SGMII_ANEG_MASK (BIT(5) | BIT(6))\ndrivers/net/phy/dp83867.c:38:#define DP83867_CFG4_SGMII_ANEG_TIMER_11MS   (3 \u003c\u003c 5)\ndrivers/net/phy/dp83867.c:39:#define DP83867_CFG4_SGMII_ANEG_TIMER_800US  (2 \u003c\u003c 5)\ndrivers/net/phy/dp83867.c:40:#define DP83867_CFG4_SGMII_ANEG_TIMER_2US    (1 \u003c\u003c 5)\ndrivers/net/phy/dp83867.c:41:#define DP83867_CFG4_SGMII_ANEG_TIMER_16MS   (0 \u003c\u003c 5)\ndrivers/net/phy/dp83867.c-42-\ndrivers/net/phy/dp83867.c:43:#define DP83867_RGMIICTL\t0x0032\ndrivers/net/phy/dp83867.c:44:#define DP83867_STRAP_STS1\t0x006E\ndrivers/net/phy/dp83867.c:45:#define DP83867_STRAP_STS2\t0x006f\ndrivers/net/phy/dp83867.c:46:#define DP83867_RGMIIDCTL\t0x0086\ndrivers/net/phy/dp83867.c:47:#define DP83867_DSP_FFE_CFG\t0x012c\ndrivers/net/phy/dp83867.c:48:#define DP83867_RXFCFG\t\t0x0134\ndrivers/net/phy/dp83867.c:49:#define DP83867_RXFPMD1\t0x0136\ndrivers/net/phy/dp83867.c:50:#define DP83867_RXFPMD2\t0x0137\ndrivers/net/phy/dp83867.c:51:#define DP83867_RXFPMD3\t0x0138\ndrivers/net/phy/dp83867.c:52:#define DP83867_RXFSOP1\t0x0139\ndrivers/net/phy/dp83867.c:53:#define DP83867_RXFSOP2\t0x013A\ndrivers/net/phy/dp83867.c:54:#define DP83867_RXFSOP3\t0x013B\ndrivers/net/phy/dp83867.c:55:#define DP83867_IO_MUX_CFG\t0x0170\ndrivers/net/phy/dp83867.c:56:#define DP83867_SGMIICTL\t0x00D3\ndrivers/net/phy/dp83867.c:57:#define DP83867_10M_SGMII_CFG   0x016F\ndrivers/net/phy/dp83867.c:58:#define DP83867_10M_SGMII_RATE_ADAPT_MASK BIT(7)\ndrivers/net/phy/dp83867.c-59-\ndrivers/net/phy/dp83867.c:60:#define DP83867_SW_RESET\tBIT(15)\ndrivers/net/phy/dp83867.c:61:#define DP83867_SW_RESTART\tBIT(14)\ndrivers/net/phy/dp83867.c-62-\ndrivers/net/phy/dp83867.c-63-/* MICR Interrupt bits */\ndrivers/net/phy/dp83867.c:64:#define MII_DP83867_MICR_AN_ERR_INT_EN\t\tBIT(15)\ndrivers/net/phy/dp83867.c:65:#define MII_DP83867_MICR_SPEED_CHNG_INT_EN\tBIT(14)\ndrivers/net/phy/dp83867.c:66:#define MII_DP83867_MICR_DUP_MODE_CHNG_INT_EN\tBIT(13)\ndrivers/net/phy/dp83867.c:67:#define MII_DP83867_MICR_PAGE_RXD_INT_EN\tBIT(12)\ndrivers/net/phy/dp83867.c:68:#define MII_DP83867_MICR_AUTONEG_COMP_INT_EN\tBIT(11)\ndrivers/net/phy/dp83867.c:69:#define MII_DP83867_MICR_LINK_STS_CHNG_INT_EN\tBIT(10)\ndrivers/net/phy/dp83867.c:70:#define MII_DP83867_MICR_FALSE_CARRIER_INT_EN\tBIT(8)\ndrivers/net/phy/dp83867.c:71:#define MII_DP83867_MICR_SLEEP_MODE_CHNG_INT_EN\tBIT(4)\ndrivers/net/phy/dp83867.c:72:#define MII_DP83867_MICR_WOL_INT_EN\t\tBIT(3)\ndrivers/net/phy/dp83867.c:73:#define MII_DP83867_MICR_XGMII_ERR_INT_EN\tBIT(2)\ndrivers/net/phy/dp83867.c:74:#define MII_DP83867_MICR_POL_CHNG_INT_EN\tBIT(1)\ndrivers/net/phy/dp83867.c:75:#define MII_DP83867_MICR_JABBER_INT_EN\t\tBIT(0)\ndrivers/net/phy/dp83867.c-76-\ndrivers/net/phy/dp83867.c-77-/* RGMIICTL bits */\ndrivers/net/phy/dp83867.c:78:#define DP83867_RGMII_EN\t\t\tBIT(7)\ndrivers/net/phy/dp83867.c:79:#define DP83867_RGMII_TX_CLK_DELAY_EN\t\tBIT(1)\ndrivers/net/phy/dp83867.c:80:#define DP83867_RGMII_RX_CLK_DELAY_EN\t\tBIT(0)\ndrivers/net/phy/dp83867.c-81-\ndrivers/net/phy/dp83867.c-82-/* SGMIICTL bits */\ndrivers/net/phy/dp83867.c:83:#define DP83867_SGMII_TYPE\t\tBIT(14)\ndrivers/net/phy/dp83867.c-84-\ndrivers/net/phy/dp83867.c-85-/* RXFCFG bits*/\ndrivers/net/phy/dp83867.c:86:#define DP83867_WOL_MAGIC_EN\t\tBIT(0)\ndrivers/net/phy/dp83867.c:87:#define DP83867_WOL_BCAST_EN\t\tBIT(2)\ndrivers/net/phy/dp83867.c:88:#define DP83867_WOL_UCAST_EN\t\tBIT(4)\ndrivers/net/phy/dp83867.c:89:#define DP83867_WOL_SEC_EN\t\tBIT(5)\ndrivers/net/phy/dp83867.c:90:#define DP83867_WOL_ENH_MAC\t\tBIT(7)\ndrivers/net/phy/dp83867.c-91-\ndrivers/net/phy/dp83867.c-92-/* STRAP_STS1 bits */\ndrivers/net/phy/dp83867.c:93:#define DP83867_STRAP_STS1_RESERVED\t\tBIT(11)\ndrivers/net/phy/dp83867.c-94-\ndrivers/net/phy/dp83867.c-95-/* STRAP_STS2 bits */\ndrivers/net/phy/dp83867.c:96:#define DP83867_STRAP_STS2_STRAP_FLD\t\tBIT(10)\ndrivers/net/phy/dp83867.c-97-\ndrivers/net/phy/dp83867.c-98-/* PHY CTRL bits */\ndrivers/net/phy/dp83867.c:99:#define DP83867_PHYCR_TX_FIFO_DEPTH_SHIFT\t14\ndrivers/net/phy/dp83867.c:100:#define DP83867_PHYCR_RX_FIFO_DEPTH_SHIFT\t12\ndrivers/net/phy/dp83867.c:101:#define DP83867_PHYCR_FIFO_DEPTH_MAX\t\t0x03\ndrivers/net/phy/dp83867.c:102:#define DP83867_PHYCR_TX_FIFO_DEPTH_MASK\tGENMASK(15, 14)\ndrivers/net/phy/dp83867.c:103:#define DP83867_PHYCR_RX_FIFO_DEPTH_MASK\tGENMASK(13, 12)\ndrivers/net/phy/dp83867.c:104:#define DP83867_PHYCR_SGMII_EN\t\t\tBIT(11)\ndrivers/net/phy/dp83867.c:105:#define DP83867_PHYCR_FORCE_LINK_GOOD\t\tBIT(10)\ndrivers/net/phy/dp83867.c:106:#define DP83867_PHYCR_MDIX_MASK\t\t\tGENMASK(6, 5)\ndrivers/net/phy/dp83867.c:107:#define DP83867_PHYCR_MDIX_MDI\t\t\t(0x0 \u003c\u003c 5)\ndrivers/net/phy/dp83867.c:108:#define DP83867_PHYCR_MDIX_MDIX\t\t\t(0x1 \u003c\u003c 5)\ndrivers/net/phy/dp83867.c:109:#define DP83867_PHYCR_MDIX_AUTO\t\t\t(0x3 \u003c\u003c 5)\ndrivers/net/phy/dp83867.c-110-\ndrivers/net/phy/dp83867.c-111-/* RGMIIDCTL bits */\ndrivers/net/phy/dp83867.c:112:#define DP83867_RGMII_TX_CLK_DELAY_MAX\t\t0xf\ndrivers/net/phy/dp83867.c:113:#define DP83867_RGMII_TX_CLK_DELAY_SHIFT\t4\ndrivers/net/phy/dp83867.c:114:#define DP83867_RGMII_RX_CLK_DELAY_MAX\t\t0xf\ndrivers/net/phy/dp83867.c:115:#define DP83867_RGMII_RX_CLK_DELAY_SHIFT\t0\ndrivers/net/phy/dp83867.c-116-\ndrivers/net/phy/dp83867.c-117-/* IO_MUX_CFG bits */\ndrivers/net/phy/dp83867.c:118:#define DP83867_IO_MUX_CFG_IO_IMPEDANCE_MASK\t0x1f\ndrivers/net/phy/dp83867.c:119:#define DP83867_IO_MUX_CFG_IO_IMPEDANCE_MAX\t0x0\ndrivers/net/phy/dp83867.c:120:#define DP83867_IO_MUX_CFG_IO_IMPEDANCE_MIN\t0x1f\ndrivers/net/phy/dp83867.c:121:#define DP83867_IO_MUX_CFG_CLK_O_DISABLE\tBIT(6)\ndrivers/net/phy/dp83867.c:122:#define DP83867_IO_MUX_CFG_CLK_O_SEL_MASK\t(0x1f \u003c\u003c 8)\ndrivers/net/phy/dp83867.c:123:#define DP83867_IO_MUX_CFG_CLK_O_SEL_SHIFT\t8\ndrivers/net/phy/dp83867.c-124-\ndrivers/net/phy/dp83867.c-125-/* PHY STS bits */\ndrivers/net/phy/dp83867.c:126:#define DP83867_PHYSTS_1000\t\t\tBIT(15)\ndrivers/net/phy/dp83867.c:127:#define DP83867_PHYSTS_100\t\t\tBIT(14)\ndrivers/net/phy/dp83867.c:128:#define DP83867_PHYSTS_DUPLEX\t\t\tBIT(13)\ndrivers/net/phy/dp83867.c:129:#define DP83867_PHYSTS_LINK\t\t\tBIT(10)\ndrivers/net/phy/dp83867.c:130:#define DP83867_PHYSTS_MDIX_CD\t\t\tBIT(9)\ndrivers/net/phy/dp83867.c:131:#define DP83867_PHYSTS_MDIX_AB\t\t\tBIT(8)\ndrivers/net/phy/dp83867.c:132:#define DP83867_PHYSTS_MDIX_MASK\t\t(DP83867_PHYSTS_MDIX_AB | \\\ndrivers/net/phy/dp83867.c:133:\t\t\t\t\t\tDP83867_PHYSTS_MDIX_CD)\ndrivers/net/phy/dp83867.c-134-\ndrivers/net/phy/dp83867.c-135-/* CFG2 bits */\ndrivers/net/phy/dp83867.c:136:#define DP83867_DOWNSHIFT_EN\t\t(BIT(8) | BIT(9))\ndrivers/net/phy/dp83867.c:137:#define DP83867_DOWNSHIFT_ATTEMPT_MASK\t(BIT(10) | BIT(11))\ndrivers/net/phy/dp83867.c:138:#define DP83867_DOWNSHIFT_1_COUNT_VAL\t0\ndrivers/net/phy/dp83867.c:139:#define DP83867_DOWNSHIFT_2_COUNT_VAL\t1\ndrivers/net/phy/dp83867.c:140:#define DP83867_DOWNSHIFT_4_COUNT_VAL\t2\ndrivers/net/phy/dp83867.c:141:#define DP83867_DOWNSHIFT_8_COUNT_VAL\t3\ndrivers/net/phy/dp83867.c:142:#define DP83867_DOWNSHIFT_1_COUNT\t1\ndrivers/net/phy/dp83867.c:143:#define DP83867_DOWNSHIFT_2_COUNT\t2\ndrivers/net/phy/dp83867.c:144:#define DP83867_DOWNSHIFT_4_COUNT\t4\ndrivers/net/phy/dp83867.c:145:#define DP83867_DOWNSHIFT_8_COUNT\t8\ndrivers/net/phy/dp83867.c:146:#define DP83867_SGMII_AUTONEG_EN\tBIT(7)\ndrivers/net/phy/dp83867.c-147-\ndrivers/net/phy/dp83867.c-148-/* CFG3 bits */\ndrivers/net/phy/dp83867.c:149:#define DP83867_CFG3_INT_OE\t\t\tBIT(7)\ndrivers/net/phy/dp83867.c:150:#define DP83867_CFG3_ROBUST_AUTO_MDIX\t\tBIT(9)\ndrivers/net/phy/dp83867.c-151-\ndrivers/net/phy/dp83867.c-152-/* CFG4 bits */\ndrivers/net/phy/dp83867.c:153:#define DP83867_CFG4_PORT_MIRROR_EN              BIT(0)\ndrivers/net/phy/dp83867.c-154-\ndrivers/net/phy/dp83867.c-155-/* FLD_THR_CFG */\ndrivers/net/phy/dp83867.c:156:#define DP83867_FLD_THR_CFG_ENERGY_LOST_THR_MASK\t0x7\ndrivers/net/phy/dp83867.c-157-\ndrivers/net/phy/dp83867.c:158:#define DP83867_LED_COUNT\t4\ndrivers/net/phy/dp83867.c-159-\ndrivers/net/phy/dp83867.c-160-/* LED_DRV bits */\ndrivers/net/phy/dp83867.c:161:#define DP83867_LED_DRV_EN(x)\tBIT((x) * 4)\ndrivers/net/phy/dp83867.c:162:#define DP83867_LED_DRV_VAL(x)\tBIT((x) * 4 + 1)\ndrivers/net/phy/dp83867.c:163:#define DP83867_LED_POLARITY(x)\tBIT((x) * 4 + 2)\ndrivers/net/phy/dp83867.c-164-\ndrivers/net/phy/dp83867.c:165:#define DP83867_LED_FN(idx, val)\t(((val) \u0026 0xf) \u003c\u003c ((idx) * 4))\ndrivers/net/phy/dp83867.c:166:#define DP83867_LED_FN_MASK(idx)\t(0xf \u003c\u003c ((idx) * 4))\ndrivers/net/phy/dp83867.c:167:#define DP83867_LED_FN_RX_ERR\t\t0xe /* Receive Error */\ndrivers/net/phy/dp83867.c:168:#define DP83867_LED_FN_RX_TX_ERR\t0xd /* Receive Error or Transmit Error */\ndrivers/net/phy/dp83867.c:169:#define DP83867_LED_FN_LINK_RX_TX\t0xb /* Link established, blink for rx or tx activity */\ndrivers/net/phy/dp83867.c:170:#define DP83867_LED_FN_FULL_DUPLEX\t0xa /* Full duplex */\ndrivers/net/phy/dp83867.c:171:#define DP83867_LED_FN_LINK_100_1000_BT\t0x9 /* 100/1000BT link established */\ndrivers/net/phy/dp83867.c:172:#define DP83867_LED_FN_LINK_10_100_BT\t0x8 /* 10/100BT link established */\ndrivers/net/phy/dp83867.c:173:#define DP83867_LED_FN_LINK_10_BT\t0x7 /* 10BT link established */\ndrivers/net/phy/dp83867.c:174:#define DP83867_LED_FN_LINK_100_BTX\t0x6 /* 100 BTX link established */\ndrivers/net/phy/dp83867.c:175:#define DP83867_LED_FN_LINK_1000_BT\t0x5 /* 1000 BT link established */\ndrivers/net/phy/dp83867.c:176:#define DP83867_LED_FN_COLLISION\t0x4 /* Collision detected */\ndrivers/net/phy/dp83867.c:177:#define DP83867_LED_FN_RX\t\t0x3 /* Receive activity */\ndrivers/net/phy/dp83867.c:178:#define DP83867_LED_FN_TX\t\t0x2 /* Transmit activity */\ndrivers/net/phy/dp83867.c:179:#define DP83867_LED_FN_RX_TX\t\t0x1 /* Receive or Transmit activity */\ndrivers/net/phy/dp83867.c:180:#define DP83867_LED_FN_LINK\t\t0x0 /* Link established */\ndrivers/net/phy/dp83867.c-181-\ndrivers/net/phy/dp83867.c=182=enum {\ndrivers/net/phy/dp83867.c:183:\tDP83867_PORT_MIRROING_KEEP,\ndrivers/net/phy/dp83867.c:184:\tDP83867_PORT_MIRROING_EN,\ndrivers/net/phy/dp83867.c:185:\tDP83867_PORT_MIRROING_DIS,\ndrivers/net/phy/dp83867.c-186-};\n--\ndrivers/net/phy/dp83867.c=203=static int dp83867_ack_interrupt(struct phy_device *phydev)\ndrivers/net/phy/dp83867.c-204-{\ndrivers/net/phy/dp83867.c:205:\tint err = phy_read(phydev, MII_DP83867_ISR);\ndrivers/net/phy/dp83867.c-206-\n--\ndrivers/net/phy/dp83867.c=213=static int dp83867_set_wol(struct phy_device *phydev,\n--\ndrivers/net/phy/dp83867.c-219-\ndrivers/net/phy/dp83867.c:220:\tval_rxcfg = phy_read_mmd(phydev, DP83867_DEVADDR, DP83867_RXFCFG);\ndrivers/net/phy/dp83867.c:221:\tval_micr = phy_read(phydev, MII_DP83867_MICR);\ndrivers/net/phy/dp83867.c-222-\n--\ndrivers/net/phy/dp83867.c-224-\t\t\t    WAKE_BCAST)) {\ndrivers/net/phy/dp83867.c:225:\t\tval_rxcfg |= DP83867_WOL_ENH_MAC;\ndrivers/net/phy/dp83867.c:226:\t\tval_micr |= MII_DP83867_MICR_WOL_INT_EN;\ndrivers/net/phy/dp83867.c-227-\n--\ndrivers/net/phy/dp83867.c-233-\ndrivers/net/phy/dp83867.c:234:\t\t\tphy_write_mmd(phydev, DP83867_DEVADDR, DP83867_RXFPMD1,\ndrivers/net/phy/dp83867.c-235-\t\t\t\t      (mac[1] \u003c\u003c 8 | mac[0]));\ndrivers/net/phy/dp83867.c:236:\t\t\tphy_write_mmd(phydev, DP83867_DEVADDR, DP83867_RXFPMD2,\ndrivers/net/phy/dp83867.c-237-\t\t\t\t      (mac[3] \u003c\u003c 8 | mac[2]));\ndrivers/net/phy/dp83867.c:238:\t\t\tphy_write_mmd(phydev, DP83867_DEVADDR, DP83867_RXFPMD3,\ndrivers/net/phy/dp83867.c-239-\t\t\t\t      (mac[5] \u003c\u003c 8 | mac[4]));\ndrivers/net/phy/dp83867.c-240-\ndrivers/net/phy/dp83867.c:241:\t\t\tval_rxcfg |= DP83867_WOL_MAGIC_EN;\ndrivers/net/phy/dp83867.c-242-\t\t} else {\ndrivers/net/phy/dp83867.c:243:\t\t\tval_rxcfg \u0026= ~DP83867_WOL_MAGIC_EN;\ndrivers/net/phy/dp83867.c-244-\t\t}\n--\ndrivers/net/phy/dp83867.c-246-\t\tif (wol-\u003ewolopts \u0026 WAKE_MAGICSECURE) {\ndrivers/net/phy/dp83867.c:247:\t\t\tphy_write_mmd(phydev, DP83867_DEVADDR, DP83867_RXFSOP1,\ndrivers/net/phy/dp83867.c-248-\t\t\t\t      (wol-\u003esopass[1] \u003c\u003c 8) | wol-\u003esopass[0]);\ndrivers/net/phy/dp83867.c:249:\t\t\tphy_write_mmd(phydev, DP83867_DEVADDR, DP83867_RXFSOP2,\ndrivers/net/phy/dp83867.c-250-\t\t\t\t      (wol-\u003esopass[3] \u003c\u003c 8) | wol-\u003esopass[2]);\ndrivers/net/phy/dp83867.c:251:\t\t\tphy_write_mmd(phydev, DP83867_DEVADDR, DP83867_RXFSOP3,\ndrivers/net/phy/dp83867.c-252-\t\t\t\t      (wol-\u003esopass[5] \u003c\u003c 8) | wol-\u003esopass[4]);\ndrivers/net/phy/dp83867.c-253-\ndrivers/net/phy/dp83867.c:254:\t\t\tval_rxcfg |= DP83867_WOL_SEC_EN;\ndrivers/net/phy/dp83867.c-255-\t\t} else {\ndrivers/net/phy/dp83867.c:256:\t\t\tval_rxcfg \u0026= ~DP83867_WOL_SEC_EN;\ndrivers/net/phy/dp83867.c-257-\t\t}\n--\ndrivers/net/phy/dp83867.c-259-\t\tif (wol-\u003ewolopts \u0026 WAKE_UCAST)\ndrivers/net/phy/dp83867.c:260:\t\t\tval_rxcfg |= DP83867_WOL_UCAST_EN;\ndrivers/net/phy/dp83867.c-261-\t\telse\ndrivers/net/phy/dp83867.c:262:\t\t\tval_rxcfg \u0026= ~DP83867_WOL_UCAST_EN;\ndrivers/net/phy/dp83867.c-263-\ndrivers/net/phy/dp83867.c-264-\t\tif (wol-\u003ewolopts \u0026 WAKE_BCAST)\ndrivers/net/phy/dp83867.c:265:\t\t\tval_rxcfg |= DP83867_WOL_BCAST_EN;\ndrivers/net/phy/dp83867.c-266-\t\telse\ndrivers/net/phy/dp83867.c:267:\t\t\tval_rxcfg \u0026= ~DP83867_WOL_BCAST_EN;\ndrivers/net/phy/dp83867.c-268-\t} else {\ndrivers/net/phy/dp83867.c:269:\t\tval_rxcfg \u0026= ~DP83867_WOL_ENH_MAC;\ndrivers/net/phy/dp83867.c:270:\t\tval_micr \u0026= ~MII_DP83867_MICR_WOL_INT_EN;\ndrivers/net/phy/dp83867.c-271-\t}\ndrivers/net/phy/dp83867.c-272-\ndrivers/net/phy/dp83867.c:273:\tphy_write_mmd(phydev, DP83867_DEVADDR, DP83867_RXFCFG, val_rxcfg);\ndrivers/net/phy/dp83867.c:274:\tphy_write(phydev, MII_DP83867_MICR, val_micr);\ndrivers/net/phy/dp83867.c-275-\n--\ndrivers/net/phy/dp83867.c=279=static void dp83867_get_wol(struct phy_device *phydev,\n--\ndrivers/net/phy/dp83867.c-287-\ndrivers/net/phy/dp83867.c:288:\tvalue = phy_read_mmd(phydev, DP83867_DEVADDR, DP83867_RXFCFG);\ndrivers/net/phy/dp83867.c-289-\ndrivers/net/phy/dp83867.c:290:\tif (value \u0026 DP83867_WOL_UCAST_EN)\ndrivers/net/phy/dp83867.c-291-\t\twol-\u003ewolopts |= WAKE_UCAST;\ndrivers/net/phy/dp83867.c-292-\ndrivers/net/phy/dp83867.c:293:\tif (value \u0026 DP83867_WOL_BCAST_EN)\ndrivers/net/phy/dp83867.c-294-\t\twol-\u003ewolopts |= WAKE_BCAST;\ndrivers/net/phy/dp83867.c-295-\ndrivers/net/phy/dp83867.c:296:\tif (value \u0026 DP83867_WOL_MAGIC_EN)\ndrivers/net/phy/dp83867.c-297-\t\twol-\u003ewolopts |= WAKE_MAGIC;\ndrivers/net/phy/dp83867.c-298-\ndrivers/net/phy/dp83867.c:299:\tif (value \u0026 DP83867_WOL_SEC_EN) {\ndrivers/net/phy/dp83867.c:300:\t\tsopass_val = phy_read_mmd(phydev, DP83867_DEVADDR,\ndrivers/net/phy/dp83867.c:301:\t\t\t\t\t  DP83867_RXFSOP1);\ndrivers/net/phy/dp83867.c-302-\t\twol-\u003esopass[0] = (sopass_val \u0026 0xff);\n--\ndrivers/net/phy/dp83867.c-304-\ndrivers/net/phy/dp83867.c:305:\t\tsopass_val = phy_read_mmd(phydev, DP83867_DEVADDR,\ndrivers/net/phy/dp83867.c:306:\t\t\t\t\t  DP83867_RXFSOP2);\ndrivers/net/phy/dp83867.c-307-\t\twol-\u003esopass[2] = (sopass_val \u0026 0xff);\n--\ndrivers/net/phy/dp83867.c-309-\ndrivers/net/phy/dp83867.c:310:\t\tsopass_val = phy_read_mmd(phydev, DP83867_DEVADDR,\ndrivers/net/phy/dp83867.c:311:\t\t\t\t\t  DP83867_RXFSOP3);\ndrivers/net/phy/dp83867.c-312-\t\twol-\u003esopass[4] = (sopass_val \u0026 0xff);\n--\ndrivers/net/phy/dp83867.c-317-\ndrivers/net/phy/dp83867.c:318:\tif (!(value \u0026 DP83867_WOL_ENH_MAC))\ndrivers/net/phy/dp83867.c-319-\t\twol-\u003ewolopts = 0;\n--\ndrivers/net/phy/dp83867.c=322=static int dp83867_config_intr(struct phy_device *phydev)\n--\ndrivers/net/phy/dp83867.c-330-\ndrivers/net/phy/dp83867.c:331:\t\tmicr_status = phy_read(phydev, MII_DP83867_MICR);\ndrivers/net/phy/dp83867.c-332-\t\tif (micr_status \u003c 0)\n--\ndrivers/net/phy/dp83867.c-335-\t\tmicr_status |=\ndrivers/net/phy/dp83867.c:336:\t\t\t(MII_DP83867_MICR_AN_ERR_INT_EN |\ndrivers/net/phy/dp83867.c:337:\t\t\tMII_DP83867_MICR_SPEED_CHNG_INT_EN |\ndrivers/net/phy/dp83867.c:338:\t\t\tMII_DP83867_MICR_AUTONEG_COMP_INT_EN |\ndrivers/net/phy/dp83867.c:339:\t\t\tMII_DP83867_MICR_LINK_STS_CHNG_INT_EN |\ndrivers/net/phy/dp83867.c:340:\t\t\tMII_DP83867_MICR_DUP_MODE_CHNG_INT_EN |\ndrivers/net/phy/dp83867.c:341:\t\t\tMII_DP83867_MICR_SLEEP_MODE_CHNG_INT_EN);\ndrivers/net/phy/dp83867.c-342-\ndrivers/net/phy/dp83867.c:343:\t\terr = phy_write(phydev, MII_DP83867_MICR, micr_status);\ndrivers/net/phy/dp83867.c-344-\t} else {\ndrivers/net/phy/dp83867.c-345-\t\tmicr_status = 0x0;\ndrivers/net/phy/dp83867.c:346:\t\terr = phy_write(phydev, MII_DP83867_MICR, micr_status);\ndrivers/net/phy/dp83867.c-347-\t\tif (err)\n--\ndrivers/net/phy/dp83867.c=356=static irqreturn_t dp83867_handle_interrupt(struct phy_device *phydev)\n--\ndrivers/net/phy/dp83867.c-359-\ndrivers/net/phy/dp83867.c:360:\tirq_status = phy_read(phydev, MII_DP83867_ISR);\ndrivers/net/phy/dp83867.c-361-\tif (irq_status \u003c 0) {\n--\ndrivers/net/phy/dp83867.c-365-\ndrivers/net/phy/dp83867.c:366:\tirq_enabled = phy_read(phydev, MII_DP83867_MICR);\ndrivers/net/phy/dp83867.c-367-\tif (irq_enabled \u003c 0) {\n--\ndrivers/net/phy/dp83867.c=380=static int dp83867_read_status(struct phy_device *phydev)\ndrivers/net/phy/dp83867.c-381-{\ndrivers/net/phy/dp83867.c:382:\tint status = phy_read(phydev, MII_DP83867_PHYSTS);\ndrivers/net/phy/dp83867.c-383-\tint ret;\n--\ndrivers/net/phy/dp83867.c-391-\ndrivers/net/phy/dp83867.c:392:\tif (status \u0026 DP83867_PHYSTS_DUPLEX)\ndrivers/net/phy/dp83867.c-393-\t\tphydev-\u003eduplex = DUPLEX_FULL;\n--\ndrivers/net/phy/dp83867.c-396-\ndrivers/net/phy/dp83867.c:397:\tif (status \u0026 DP83867_PHYSTS_1000)\ndrivers/net/phy/dp83867.c-398-\t\tphydev-\u003espeed = SPEED_1000;\ndrivers/net/phy/dp83867.c:399:\telse if (status \u0026 DP83867_PHYSTS_100)\ndrivers/net/phy/dp83867.c-400-\t\tphydev-\u003espeed = SPEED_100;\n--\ndrivers/net/phy/dp83867.c-403-\ndrivers/net/phy/dp83867.c:404:\tif (!(status \u0026 DP83867_PHYSTS_LINK)) {\ndrivers/net/phy/dp83867.c-405-\t\tphydev-\u003emdix = ETH_TP_MDI_INVALID;\ndrivers/net/phy/dp83867.c-406-\t} else {\ndrivers/net/phy/dp83867.c:407:\t\tswitch (status \u0026 DP83867_PHYSTS_MDIX_MASK) {\ndrivers/net/phy/dp83867.c-408-\t\tcase 0:\n--\ndrivers/net/phy/dp83867.c-410-\t\t\tbreak;\ndrivers/net/phy/dp83867.c:411:\t\tcase DP83867_PHYSTS_MDIX_MASK:\ndrivers/net/phy/dp83867.c-412-\t\t\tphydev-\u003emdix = ETH_TP_MDI_X;\n--\ndrivers/net/phy/dp83867.c=423=static int dp83867_get_downshift(struct phy_device *phydev, u8 *data)\n--\ndrivers/net/phy/dp83867.c-426-\ndrivers/net/phy/dp83867.c:427:\tval = phy_read(phydev, DP83867_CFG2);\ndrivers/net/phy/dp83867.c-428-\tif (val \u003c 0)\n--\ndrivers/net/phy/dp83867.c-430-\ndrivers/net/phy/dp83867.c:431:\tenable = FIELD_GET(DP83867_DOWNSHIFT_EN, val);\ndrivers/net/phy/dp83867.c:432:\tcnt = FIELD_GET(DP83867_DOWNSHIFT_ATTEMPT_MASK, val);\ndrivers/net/phy/dp83867.c-433-\ndrivers/net/phy/dp83867.c-434-\tswitch (cnt) {\ndrivers/net/phy/dp83867.c:435:\tcase DP83867_DOWNSHIFT_1_COUNT_VAL:\ndrivers/net/phy/dp83867.c:436:\t\tcount = DP83867_DOWNSHIFT_1_COUNT;\ndrivers/net/phy/dp83867.c-437-\t\tbreak;\ndrivers/net/phy/dp83867.c:438:\tcase DP83867_DOWNSHIFT_2_COUNT_VAL:\ndrivers/net/phy/dp83867.c:439:\t\tcount = DP83867_DOWNSHIFT_2_COUNT;\ndrivers/net/phy/dp83867.c-440-\t\tbreak;\ndrivers/net/phy/dp83867.c:441:\tcase DP83867_DOWNSHIFT_4_COUNT_VAL:\ndrivers/net/phy/dp83867.c:442:\t\tcount = DP83867_DOWNSHIFT_4_COUNT;\ndrivers/net/phy/dp83867.c-443-\t\tbreak;\ndrivers/net/phy/dp83867.c:444:\tcase DP83867_DOWNSHIFT_8_COUNT_VAL:\ndrivers/net/phy/dp83867.c:445:\t\tcount = DP83867_DOWNSHIFT_8_COUNT;\ndrivers/net/phy/dp83867.c-446-\t\tbreak;\n--\ndrivers/net/phy/dp83867.c=456=static int dp83867_set_downshift(struct phy_device *phydev, u8 cnt)\n--\ndrivers/net/phy/dp83867.c-459-\ndrivers/net/phy/dp83867.c:460:\tif (cnt \u003e DP83867_DOWNSHIFT_8_COUNT)\ndrivers/net/phy/dp83867.c-461-\t\treturn -E2BIG;\n--\ndrivers/net/phy/dp83867.c-463-\tif (!cnt)\ndrivers/net/phy/dp83867.c:464:\t\treturn phy_clear_bits(phydev, DP83867_CFG2,\ndrivers/net/phy/dp83867.c:465:\t\t\t\t      DP83867_DOWNSHIFT_EN);\ndrivers/net/phy/dp83867.c-466-\ndrivers/net/phy/dp83867.c-467-\tswitch (cnt) {\ndrivers/net/phy/dp83867.c:468:\tcase DP83867_DOWNSHIFT_1_COUNT:\ndrivers/net/phy/dp83867.c:469:\t\tcount = DP83867_DOWNSHIFT_1_COUNT_VAL;\ndrivers/net/phy/dp83867.c-470-\t\tbreak;\ndrivers/net/phy/dp83867.c:471:\tcase DP83867_DOWNSHIFT_2_COUNT:\ndrivers/net/phy/dp83867.c:472:\t\tcount = DP83867_DOWNSHIFT_2_COUNT_VAL;\ndrivers/net/phy/dp83867.c-473-\t\tbreak;\ndrivers/net/phy/dp83867.c:474:\tcase DP83867_DOWNSHIFT_4_COUNT:\ndrivers/net/phy/dp83867.c:475:\t\tcount = DP83867_DOWNSHIFT_4_COUNT_VAL;\ndrivers/net/phy/dp83867.c-476-\t\tbreak;\ndrivers/net/phy/dp83867.c:477:\tcase DP83867_DOWNSHIFT_8_COUNT:\ndrivers/net/phy/dp83867.c:478:\t\tcount = DP83867_DOWNSHIFT_8_COUNT_VAL;\ndrivers/net/phy/dp83867.c-479-\t\tbreak;\n--\ndrivers/net/phy/dp83867.c-485-\ndrivers/net/phy/dp83867.c:486:\tval = DP83867_DOWNSHIFT_EN;\ndrivers/net/phy/dp83867.c:487:\tval |= FIELD_PREP(DP83867_DOWNSHIFT_ATTEMPT_MASK, count);\ndrivers/net/phy/dp83867.c-488-\ndrivers/net/phy/dp83867.c:489:\treturn phy_modify(phydev, DP83867_CFG2,\ndrivers/net/phy/dp83867.c:490:\t\t\t  DP83867_DOWNSHIFT_EN | DP83867_DOWNSHIFT_ATTEMPT_MASK,\ndrivers/net/phy/dp83867.c-491-\t\t\t  val);\n--\ndrivers/net/phy/dp83867.c=516=static int dp83867_config_port_mirroring(struct phy_device *phydev)\n--\ndrivers/net/phy/dp83867.c-519-\ndrivers/net/phy/dp83867.c:520:\tif (dp83867-\u003eport_mirroring == DP83867_PORT_MIRROING_EN)\ndrivers/net/phy/dp83867.c:521:\t\tphy_set_bits_mmd(phydev, DP83867_DEVADDR, DP83867_CFG4,\ndrivers/net/phy/dp83867.c:522:\t\t\t\t DP83867_CFG4_PORT_MIRROR_EN);\ndrivers/net/phy/dp83867.c-523-\telse\ndrivers/net/phy/dp83867.c:524:\t\tphy_clear_bits_mmd(phydev, DP83867_DEVADDR, DP83867_CFG4,\ndrivers/net/phy/dp83867.c:525:\t\t\t\t   DP83867_CFG4_PORT_MIRROR_EN);\ndrivers/net/phy/dp83867.c-526-\treturn 0;\n--\ndrivers/net/phy/dp83867.c=530=static int dp83867_of_init_io_impedance(struct phy_device *phydev)\n--\ndrivers/net/phy/dp83867.c-547-\t\tif (of_property_read_bool(of_node, \"ti,max-output-impedance\"))\ndrivers/net/phy/dp83867.c:548:\t\t\tdp83867-\u003eio_impedance = DP83867_IO_MUX_CFG_IO_IMPEDANCE_MAX;\ndrivers/net/phy/dp83867.c-549-\t\telse if (of_property_read_bool(of_node, \"ti,min-output-impedance\"))\ndrivers/net/phy/dp83867.c:550:\t\t\tdp83867-\u003eio_impedance = DP83867_IO_MUX_CFG_IO_IMPEDANCE_MIN;\ndrivers/net/phy/dp83867.c-551-\t\telse\n--\ndrivers/net/phy/dp83867.c-565-\ndrivers/net/phy/dp83867.c:566:\tif ((val \u0026 DP83867_IO_MUX_CFG_IO_IMPEDANCE_MASK) != val) {\ndrivers/net/phy/dp83867.c-567-\t\tphydev_err(phydev, \"nvmem cell 'io_impedance_ctrl' contents out of range\\n\");\n--\ndrivers/net/phy/dp83867.c=575=static int dp83867_of_init(struct phy_device *phydev)\n--\ndrivers/net/phy/dp83867.c-590-\t\tdp83867-\u003eset_clk_output = true;\ndrivers/net/phy/dp83867.c:591:\t\t/* Valid values are 0 to DP83867_CLK_O_SEL_REF_CLK or\ndrivers/net/phy/dp83867.c:592:\t\t * DP83867_CLK_O_SEL_OFF.\ndrivers/net/phy/dp83867.c-593-\t\t */\ndrivers/net/phy/dp83867.c:594:\t\tif (dp83867-\u003eclk_output_sel \u003e DP83867_CLK_O_SEL_REF_CLK \u0026\u0026\ndrivers/net/phy/dp83867.c:595:\t\t    dp83867-\u003eclk_output_sel != DP83867_CLK_O_SEL_OFF) {\ndrivers/net/phy/dp83867.c-596-\t\t\tphydev_err(phydev, \"ti,clk-output-sel value %u out of range\\n\",\n--\ndrivers/net/phy/dp83867.c-611-\ndrivers/net/phy/dp83867.c:612:\tdp83867-\u003erx_id_delay = DP83867_RGMIIDCTL_2_00_NS;\ndrivers/net/phy/dp83867.c-613-\tret = of_property_read_u32(of_node, \"ti,rx-internal-delay\",\ndrivers/net/phy/dp83867.c-614-\t\t\t\t   \u0026dp83867-\u003erx_id_delay);\ndrivers/net/phy/dp83867.c:615:\tif (!ret \u0026\u0026 dp83867-\u003erx_id_delay \u003e DP83867_RGMII_RX_CLK_DELAY_MAX) {\ndrivers/net/phy/dp83867.c-616-\t\tphydev_err(phydev,\n--\ndrivers/net/phy/dp83867.c-621-\ndrivers/net/phy/dp83867.c:622:\tdp83867-\u003etx_id_delay = DP83867_RGMIIDCTL_2_00_NS;\ndrivers/net/phy/dp83867.c-623-\tret = of_property_read_u32(of_node, \"ti,tx-internal-delay\",\ndrivers/net/phy/dp83867.c-624-\t\t\t\t   \u0026dp83867-\u003etx_id_delay);\ndrivers/net/phy/dp83867.c:625:\tif (!ret \u0026\u0026 dp83867-\u003etx_id_delay \u003e DP83867_RGMII_TX_CLK_DELAY_MAX) {\ndrivers/net/phy/dp83867.c-626-\t\tphydev_err(phydev,\n--\ndrivers/net/phy/dp83867.c-632-\tif (of_property_read_bool(of_node, \"enet-phy-lane-swap\"))\ndrivers/net/phy/dp83867.c:633:\t\tdp83867-\u003eport_mirroring = DP83867_PORT_MIRROING_EN;\ndrivers/net/phy/dp83867.c-634-\ndrivers/net/phy/dp83867.c-635-\tif (of_property_read_bool(of_node, \"enet-phy-lane-no-swap\"))\ndrivers/net/phy/dp83867.c:636:\t\tdp83867-\u003eport_mirroring = DP83867_PORT_MIRROING_DIS;\ndrivers/net/phy/dp83867.c-637-\n--\ndrivers/net/phy/dp83867.c-644-\t\t\tdp83867-\u003etx_fifo_depth =\ndrivers/net/phy/dp83867.c:645:\t\t\t\t\tDP83867_PHYCR_FIFO_DEPTH_4_B_NIB;\ndrivers/net/phy/dp83867.c-646-\t}\ndrivers/net/phy/dp83867.c-647-\ndrivers/net/phy/dp83867.c:648:\tif (dp83867-\u003etx_fifo_depth \u003e DP83867_PHYCR_FIFO_DEPTH_MAX) {\ndrivers/net/phy/dp83867.c-649-\t\tphydev_err(phydev, \"tx-fifo-depth value %u out of range\\n\",\n--\ndrivers/net/phy/dp83867.c-656-\tif (ret)\ndrivers/net/phy/dp83867.c:657:\t\tdp83867-\u003erx_fifo_depth = DP83867_PHYCR_FIFO_DEPTH_4_B_NIB;\ndrivers/net/phy/dp83867.c-658-\ndrivers/net/phy/dp83867.c:659:\tif (dp83867-\u003erx_fifo_depth \u003e DP83867_PHYCR_FIFO_DEPTH_MAX) {\ndrivers/net/phy/dp83867.c-660-\t\tphydev_err(phydev, \"rx-fifo-depth value %u out of range\\n\",\n--\ndrivers/net/phy/dp83867.c=668=static int dp83867_of_init(struct phy_device *phydev)\n--\ndrivers/net/phy/dp83867.c-677-\t */\ndrivers/net/phy/dp83867.c:678:\tdelay = phy_read_mmd(phydev, DP83867_DEVADDR, DP83867_RGMIIDCTL);\ndrivers/net/phy/dp83867.c:679:\tdp83867-\u003erx_id_delay = delay \u0026 DP83867_RGMII_RX_CLK_DELAY_MAX;\ndrivers/net/phy/dp83867.c:680:\tdp83867-\u003etx_id_delay = (delay \u003e\u003e DP83867_RGMII_TX_CLK_DELAY_SHIFT) \u0026\ndrivers/net/phy/dp83867.c:681:\t\t\t       DP83867_RGMII_TX_CLK_DELAY_MAX;\ndrivers/net/phy/dp83867.c-682-\n--\ndrivers/net/phy/dp83867.c-686-\t */\ndrivers/net/phy/dp83867.c:687:\tdp83867-\u003eio_impedance = DP83867_IO_MUX_CFG_IO_IMPEDANCE_MIN / 2;\ndrivers/net/phy/dp83867.c-688-\n--\ndrivers/net/phy/dp83867.c-692-\t */\ndrivers/net/phy/dp83867.c:693:\tdp83867-\u003etx_fifo_depth = DP83867_PHYCR_FIFO_DEPTH_4_B_NIB;\ndrivers/net/phy/dp83867.c:694:\tdp83867-\u003erx_fifo_depth = DP83867_PHYCR_FIFO_DEPTH_4_B_NIB;\ndrivers/net/phy/dp83867.c-695-\n--\ndrivers/net/phy/dp83867.c=738=static int dp83867_config_init(struct phy_device *phydev)\n--\ndrivers/net/phy/dp83867.c-745-\t/* Force speed optimization for the PHY even if it strapped */\ndrivers/net/phy/dp83867.c:746:\tret = phy_modify(phydev, DP83867_CFG2, DP83867_DOWNSHIFT_EN,\ndrivers/net/phy/dp83867.c:747:\t\t\t DP83867_DOWNSHIFT_EN);\ndrivers/net/phy/dp83867.c-748-\tif (ret)\n--\ndrivers/net/phy/dp83867.c-752-\tif (dp83867-\u003erxctrl_strap_quirk)\ndrivers/net/phy/dp83867.c:753:\t\tphy_clear_bits_mmd(phydev, DP83867_DEVADDR, DP83867_CFG4,\ndrivers/net/phy/dp83867.c-754-\t\t\t\t   BIT(7));\ndrivers/net/phy/dp83867.c-755-\ndrivers/net/phy/dp83867.c:756:\tbs = phy_read_mmd(phydev, DP83867_DEVADDR, DP83867_STRAP_STS2);\ndrivers/net/phy/dp83867.c:757:\tif (bs \u0026 DP83867_STRAP_STS2_STRAP_FLD) {\ndrivers/net/phy/dp83867.c-758-\t\t/* When using strap to enable FLD, the ENERGY_LOST_FLD_THR will\n--\ndrivers/net/phy/dp83867.c-761-\t\t */\ndrivers/net/phy/dp83867.c:762:\t\tret = phy_modify_mmd(phydev, DP83867_DEVADDR,\ndrivers/net/phy/dp83867.c:763:\t\t\t\t     DP83867_FLD_THR_CFG,\ndrivers/net/phy/dp83867.c:764:\t\t\t\t     DP83867_FLD_THR_CFG_ENERGY_LOST_THR_MASK,\ndrivers/net/phy/dp83867.c-765-\t\t\t\t     0x1);\n--\ndrivers/net/phy/dp83867.c-769-\ndrivers/net/phy/dp83867.c:770:\t/* Although the DP83867 reports EEE capability through the\ndrivers/net/phy/dp83867.c-771-\t * MDIO_PCS_EEE_ABLE and MDIO_AN_EEE_ADV registers, the feature\n\n"
}

5/2 2026/09/08 14:02 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 20080
							output: 43
							thoughts: 28
						

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

**Diving into the PHY Driver Implementation**

Okay, so I want to understand the lifecycle of this PHY driver, `dp83867.c`. I'm going straight to the bottom of the file. No need for a high-level overview right now; I'm assuming familiarity. I'm looking for the registration and instantiation details – the critical bits that tie this driver into the networking stack. I'm expecting to find the standard `module_init` or similar functions, and I'll need to see how the driver structure is filled and connected to the broader system. I'm particularly interested in how it identifies the device and whether it uses any platform-specific information. Let's see how they handle probe and remove as well. I'm expecting some standard definitions for the DP83867 driver.



6/2 2026/09/08 14:02 tool read-file
0m Args:
{
  "File": "drivers/net/phy/dp83867.c",
  "FirstLine": 1160,
  "LineCount": 80
}

Results:
{
  "Contents": "1160:\t\n1161:\t\tfor_each_set_bit(mode, \u0026modes, __PHY_LED_MODES_NUM) {\n1162:\t\t\tswitch (mode) {\n1163:\t\t\tcase PHY_LED_ACTIVE_LOW:\n1164:\t\t\t\tpolarity = 0;\n1165:\t\t\t\tbreak;\n1166:\t\t\tdefault:\n1167:\t\t\t\treturn -EINVAL;\n1168:\t\t\t}\n1169:\t\t}\n1170:\t\n1171:\t\tdp83867-\u003eled_polarity_mask |= mask;\n1172:\t\tdp83867-\u003eled_polarity = (dp83867-\u003eled_polarity \u0026 ~mask) | polarity;\n1173:\t\n1174:\t\treturn phy_modify(phydev, DP83867_LEDCR2, mask, polarity);\n1175:\t}\n1176:\t\n1177:\tstatic unsigned int dp83867_inband_caps(struct phy_device *phydev,\n1178:\t\t\t\t\t\tphy_interface_t interface)\n1179:\t{\n1180:\t\tif (interface == PHY_INTERFACE_MODE_SGMII)\n1181:\t\t\treturn LINK_INBAND_ENABLE | LINK_INBAND_DISABLE;\n1182:\t\n1183:\t\treturn 0;\n1184:\t}\n1185:\t\n1186:\tstatic int dp83867_config_inband(struct phy_device *phydev, unsigned int modes)\n1187:\t{\n1188:\t\tint val = 0;\n1189:\t\n1190:\t\tif (modes == LINK_INBAND_ENABLE)\n1191:\t\t\tval = DP83867_SGMII_AUTONEG_EN;\n1192:\t\n1193:\t\treturn phy_modify(phydev, DP83867_CFG2, DP83867_SGMII_AUTONEG_EN, val);\n1194:\t}\n1195:\t\n1196:\tstatic struct phy_driver dp83867_driver[] = {\n1197:\t\t{\n1198:\t\t\t.phy_id\t\t= DP83867_PHY_ID,\n1199:\t\t\t.phy_id_mask\t= 0xfffffff0,\n1200:\t\t\t.name\t\t= \"TI DP83867\",\n1201:\t\t\t/* PHY_GBIT_FEATURES */\n1202:\t\n1203:\t\t\t.probe          = dp83867_probe,\n1204:\t\t\t.config_init\t= dp83867_config_init,\n1205:\t\t\t.config_aneg\t= dp83867_config_aneg,\n1206:\t\t\t.soft_reset\t= dp83867_phy_reset,\n1207:\t\n1208:\t\t\t.read_status\t= dp83867_read_status,\n1209:\t\t\t.get_tunable\t= dp83867_get_tunable,\n1210:\t\t\t.set_tunable\t= dp83867_set_tunable,\n1211:\t\n1212:\t\t\t.get_wol\t= dp83867_get_wol,\n1213:\t\t\t.set_wol\t= dp83867_set_wol,\n1214:\t\n1215:\t\t\t/* IRQ related */\n1216:\t\t\t.config_intr\t= dp83867_config_intr,\n1217:\t\t\t.handle_interrupt = dp83867_handle_interrupt,\n1218:\t\n1219:\t\t\t.suspend\t= dp83867_suspend,\n1220:\t\t\t.resume\t\t= dp83867_resume,\n1221:\t\n1222:\t\t\t.link_change_notify = dp83867_link_change_notify,\n1223:\t\t\t.set_loopback\t= dp83867_loopback,\n1224:\t\n1225:\t\t\t.led_brightness_set = dp83867_led_brightness_set,\n1226:\t\t\t.led_hw_is_supported = dp83867_led_hw_is_supported,\n1227:\t\t\t.led_hw_control_set = dp83867_led_hw_control_set,\n1228:\t\t\t.led_hw_control_get = dp83867_led_hw_control_get,\n1229:\t\t\t.led_polarity_set = dp83867_led_polarity_set,\n1230:\t\n1231:\t\t\t.inband_caps\t= dp83867_inband_caps,\n1232:\t\t\t.config_inband\t= dp83867_config_inband,\n1233:\t\t},\n1234:\t};\n1235:\tmodule_phy_driver(dp83867_driver);\n1236:\t\n1237:\tstatic const struct mdio_device_id __maybe_unused dp83867_tbl[] = {\n1238:\t\t{ DP83867_PHY_ID, 0xfffffff0 },\n1239:\t\t{ }\n"
}

7/2 2026/09/08 14:02 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 21744
							output: 45
							thoughts: 213
						

Thoughts:
**Investigating PHY Driver Reachability in a Virtualized Environment**

Okay, so I need to figure out how to interact with PHY drivers like the DP83867 within a virtualized setup, especially considering environments used by syzkaller. The first question is, can I even access the DP83867 without actual hardware?

I need to understand how these PHY drivers are instantiated. Are they connected to an MDIO bus, and if so, which one? Is it a standard MDIO, perhaps via mdio-netlink, mdio-gpio, a "fake" MDIO bus, or maybe even through devlink or netlink?

Now, how are these PHY devices actually probed? I seem to recall that a `phy_device` is probed when the MDIO bus is scanned, and it discovers an MDIO device with a specific PHY ID. In the case of the DP83867, that ID is 0x2000a231.

The critical question now is, can I create an MDIO bus with this specific PHY ID (0x2000a231) using user space tools, or through virtual devices? Can this be done through netlink, or by using a mock framework, or with a device like `netdevsim`, `virtio_net`, or even the `dummy` network device?

To find out, I'll need to do some focused grepping. I'll search the code for instances of "mdio" or "phy_device" within the relevant device drivers like `netdevsim` and others on the list. This should give me some clues as to how this is all orchestrated, and potentially provide a pathway to virtualized testing.



8/2 2026/09/08 14:02 tool grepper
0m Args:
{
  "Expression": "phy_device_create|phy_device_register|mdiobus_register|mock_phy",
  "PathPrefix": "drivers/net/"
}

Results:
{
  "Output": "\nFull output is too long, showing 500 out of 1148 lines.\nUse more precise expression if possible.\n\ndrivers/net/dsa/bcm_sf2.c=607=static int bcm_sf2_mdio_register(struct dsa_switch *ds)\n--\ndrivers/net/dsa/bcm_sf2.c-683-\ndrivers/net/dsa/bcm_sf2.c:684:\terr = mdiobus_register(priv-\u003euser_mii_bus);\ndrivers/net/dsa/bcm_sf2.c-685-\tif (err)\n--\ndrivers/net/dsa/lantiq/lantiq_gswip_common.c=187=static int gswip_mdio(struct gswip_priv *priv)\n--\ndrivers/net/dsa/lantiq/lantiq_gswip_common.c-213-\ndrivers/net/dsa/lantiq/lantiq_gswip_common.c:214:\terr = devm_of_mdiobus_register(dev, bus, mdio_np);\ndrivers/net/dsa/lantiq/lantiq_gswip_common.c-215-\n--\ndrivers/net/dsa/microchip/ksz9477.c=321=static int ksz9477_pcs_create(struct ksz_device *dev)\n--\ndrivers/net/dsa/microchip/ksz9477.c-341-\ndrivers/net/dsa/microchip/ksz9477.c:342:\tret = devm_mdiobus_register(dev-\u003edev, bus);\ndrivers/net/dsa/microchip/ksz9477.c-343-\tif (ret)\n--\ndrivers/net/dsa/microchip/ksz_common.c=2321=int ksz_mdio_register(struct ksz_device *dev)\n--\ndrivers/net/dsa/microchip/ksz_common.c-2392-\ndrivers/net/dsa/microchip/ksz_common.c:2393:\tret = devm_of_mdiobus_register(ds-\u003edev, bus, mdio_np);\ndrivers/net/dsa/microchip/ksz_common.c-2394-\tif (ret) {\n--\ndrivers/net/dsa/microchip/lan937x_main.c=685=static int lan937x_mdio_register(struct ksz_device *dev)\n--\ndrivers/net/dsa/microchip/lan937x_main.c-755-\ndrivers/net/dsa/microchip/lan937x_main.c:756:\tret = devm_of_mdiobus_register(ds-\u003edev, bus, mdio_np);\ndrivers/net/dsa/microchip/lan937x_main.c-757-\tif (ret)\n--\ndrivers/net/dsa/mt7530.c=2409=mt7530_setup_mdio(struct mt7530_priv *priv)\n--\ndrivers/net/dsa/mt7530.c-2444-\ndrivers/net/dsa/mt7530.c:2445:\tret = devm_of_mdiobus_register(dev, bus, mnp);\ndrivers/net/dsa/mt7530.c-2446-\tif (ret) {\n--\ndrivers/net/dsa/mt7628.c=242=static int mt7628_setup_internal_mdio(struct dsa_switch *ds)\n--\ndrivers/net/dsa/mt7628.c-261-\ndrivers/net/dsa/mt7628.c:262:\treturn devm_mdiobus_register(dev, bus);\ndrivers/net/dsa/mt7628.c-263-}\n--\ndrivers/net/dsa/mv88e6xxx/chip.c=3842=static int mv88e6xxx_mdio_register(struct mv88e6xxx_chip *chip,\n--\ndrivers/net/dsa/mv88e6xxx/chip.c-3895-\ndrivers/net/dsa/mv88e6xxx/chip.c:3896:\terr = of_mdiobus_register(bus, np);\ndrivers/net/dsa/mv88e6xxx/chip.c-3897-\tif (err) {\n--\ndrivers/net/dsa/mxl862xx/mxl862xx.c=267=static int mxl862xx_setup_mdio(struct dsa_switch *ds)\n--\ndrivers/net/dsa/mxl862xx/mxl862xx.c-292-\ndrivers/net/dsa/mxl862xx/mxl862xx.c:293:\tret = devm_of_mdiobus_register(dev, bus, mdio_np);\ndrivers/net/dsa/mxl862xx/mxl862xx.c-294-\tof_node_put(mdio_np);\n--\ndrivers/net/dsa/netc/netc_main.c=149=static int netc_port_create_emdio_bus(struct netc_port *np,\n--\ndrivers/net/dsa/netc/netc_main.c-179-\ndrivers/net/dsa/netc/netc_main.c:180:\terr = devm_of_mdiobus_register(dev, bus, node);\ndrivers/net/dsa/netc/netc_main.c-181-\tif (err)\n--\ndrivers/net/dsa/ocelot/felix_vsc9959.c=957=static int vsc9959_mdio_bus_alloc(struct ocelot *ocelot)\n--\ndrivers/net/dsa/ocelot/felix_vsc9959.c-1013-\t/* Needed in order to initialize the bus mutex lock */\ndrivers/net/dsa/ocelot/felix_vsc9959.c:1014:\trc = mdiobus_register(bus);\ndrivers/net/dsa/ocelot/felix_vsc9959.c-1015-\tif (rc \u003c 0) {\n--\ndrivers/net/dsa/ocelot/seville_vsc9953.c=878=static int vsc9953_mdio_bus_alloc(struct ocelot *ocelot)\n--\ndrivers/net/dsa/ocelot/seville_vsc9953.c-903-\t/* Needed in order to initialize the bus mutex lock */\ndrivers/net/dsa/ocelot/seville_vsc9953.c:904:\trc = devm_of_mdiobus_register(dev, bus, NULL);\ndrivers/net/dsa/ocelot/seville_vsc9953.c-905-\tif (rc \u003c 0) {\n--\ndrivers/net/dsa/qca/ar9331.c=357=static int ar9331_sw_mbus_init(struct ar9331_sw_priv *priv)\n--\ndrivers/net/dsa/qca/ar9331.c-381-\ndrivers/net/dsa/qca/ar9331.c:382:\tret = devm_of_mdiobus_register(dev, mbus, mnp);\ndrivers/net/dsa/qca/ar9331.c-383-\tof_node_put(mnp);\n--\ndrivers/net/dsa/qca/qca8k-8xxx.c=947=qca8k_mdio_register(struct qca8k_priv *priv)\n--\ndrivers/net/dsa/qca/qca8k-8xxx.c-986-\ndrivers/net/dsa/qca/qca8k-8xxx.c:987:\tret = devm_of_mdiobus_register(dev, bus, mdio);\ndrivers/net/dsa/qca/qca8k-8xxx.c-988-\n--\ndrivers/net/dsa/realtek/rtl83xx.c=74=int rtl83xx_setup_user_mdio(struct dsa_switch *ds)\n--\ndrivers/net/dsa/realtek/rtl83xx.c-99-\ndrivers/net/dsa/realtek/rtl83xx.c:100:\tret = devm_of_mdiobus_register(priv-\u003edev, bus, mdio_np);\ndrivers/net/dsa/realtek/rtl83xx.c-101-\tif (ret) {\n--\ndrivers/net/dsa/rzn1_a5psw.c=1117=static int a5psw_probe_mdio(struct a5psw *a5psw, struct device_node *node)\n--\ndrivers/net/dsa/rzn1_a5psw.c-1143-\ndrivers/net/dsa/rzn1_a5psw.c:1144:\treturn devm_of_mdiobus_register(dev, bus, node);\ndrivers/net/dsa/rzn1_a5psw.c-1145-}\n--\ndrivers/net/dsa/sja1105/sja1105.h=307=void sja1105_frame_memory_partitioning(struct sja1105_private *priv);\n--\ndrivers/net/dsa/sja1105/sja1105.h-309-/* From sja1105_mdio.c */\ndrivers/net/dsa/sja1105/sja1105.h:310:int sja1105_mdiobus_register(struct dsa_switch *ds);\ndrivers/net/dsa/sja1105/sja1105.h-311-void sja1105_mdiobus_unregister(struct dsa_switch *ds);\n--\ndrivers/net/dsa/sja1105/sja1105_main.c=3026=static int sja1105_setup(struct dsa_switch *ds)\n--\ndrivers/net/dsa/sja1105/sja1105_main.c-3067-\ndrivers/net/dsa/sja1105/sja1105_main.c:3068:\trc = sja1105_mdiobus_register(ds);\ndrivers/net/dsa/sja1105/sja1105_main.c-3069-\tif (rc \u003c 0) {\n--\ndrivers/net/dsa/sja1105/sja1105_mdio.c=258=static int sja1105_mdiobus_base_tx_register(struct sja1105_private *priv,\n--\ndrivers/net/dsa/sja1105/sja1105_mdio.c-287-\ndrivers/net/dsa/sja1105/sja1105_mdio.c:288:\trc = of_mdiobus_register(bus, np);\ndrivers/net/dsa/sja1105/sja1105_mdio.c-289-\tif (rc) {\n--\ndrivers/net/dsa/sja1105/sja1105_mdio.c=312=static int sja1105_mdiobus_base_t1_register(struct sja1105_private *priv,\n--\ndrivers/net/dsa/sja1105/sja1105_mdio.c-343-\ndrivers/net/dsa/sja1105/sja1105_mdio.c:344:\trc = of_mdiobus_register(bus, np);\ndrivers/net/dsa/sja1105/sja1105_mdio.c-345-\tif (rc) {\n--\ndrivers/net/dsa/sja1105/sja1105_mdio.c=368=static int sja1105_mdiobus_pcs_register(struct sja1105_private *priv)\n--\ndrivers/net/dsa/sja1105/sja1105_mdio.c-395-\ndrivers/net/dsa/sja1105/sja1105_mdio.c:396:\trc = mdiobus_register(bus);\ndrivers/net/dsa/sja1105/sja1105_mdio.c-397-\tif (rc) {\n--\ndrivers/net/dsa/sja1105/sja1105_mdio.c=439=static void sja1105_mdiobus_pcs_unregister(struct sja1105_private *priv)\n--\ndrivers/net/dsa/sja1105/sja1105_mdio.c-458-\ndrivers/net/dsa/sja1105/sja1105_mdio.c:459:int sja1105_mdiobus_register(struct dsa_switch *ds)\ndrivers/net/dsa/sja1105/sja1105_mdio.c-460-{\n--\ndrivers/net/dsa/yt921x.c=595=yt921x_mbus_int_init(struct yt921x_priv *priv, struct device_node *mnp)\n--\ndrivers/net/dsa/yt921x.c-612-\ndrivers/net/dsa/yt921x.c:613:\tres = devm_of_mdiobus_register(dev, mbus, mnp);\ndrivers/net/dsa/yt921x.c-614-\tif (res)\n--\ndrivers/net/dsa/yt921x.c=726=yt921x_mbus_ext_init(struct yt921x_priv *priv, struct device_node *mnp)\n--\ndrivers/net/dsa/yt921x.c-743-\ndrivers/net/dsa/yt921x.c:744:\tres = devm_of_mdiobus_register(dev, mbus, mnp);\ndrivers/net/dsa/yt921x.c-745-\tif (res)\n--\ndrivers/net/ethernet/8390/ax88796.c=459=static int ax_mii_init(struct net_device *dev)\n--\ndrivers/net/ethernet/8390/ax88796.c-478-\ndrivers/net/ethernet/8390/ax88796.c:479:\terr = mdiobus_register(ax-\u003emii_bus);\ndrivers/net/ethernet/8390/ax88796.c-480-\tif (err)\n--\ndrivers/net/ethernet/actions/owl-emac.c=1321=static int owl_emac_mdio_init(struct net_device *netdev)\n--\ndrivers/net/ethernet/actions/owl-emac.c-1345-\ndrivers/net/ethernet/actions/owl-emac.c:1346:\tret = devm_of_mdiobus_register(dev, priv-\u003emii, mdio_node);\ndrivers/net/ethernet/actions/owl-emac.c-1347-\n--\ndrivers/net/ethernet/adi/adin1110.c=509=static int adin1110_register_mdiobus(struct adin1110_priv *priv,\n--\ndrivers/net/ethernet/adi/adin1110.c-529-\ndrivers/net/ethernet/adi/adin1110.c:530:\tret = devm_mdiobus_register(dev, mii_bus);\ndrivers/net/ethernet/adi/adin1110.c-531-\tif (ret)\n--\ndrivers/net/ethernet/adi/adin1140.c=617=static int adin1140_mdio_register(struct adin1140_priv *priv,\n--\ndrivers/net/ethernet/adi/adin1140.c-636-\ndrivers/net/ethernet/adi/adin1140.c:637:\treturn devm_mdiobus_register(\u0026spidev-\u003edev, priv-\u003emdiobus);\ndrivers/net/ethernet/adi/adin1140.c-638-}\n--\ndrivers/net/ethernet/aeroflex/greth.c=1290=static int greth_mdio_init(struct greth_private *greth)\n--\ndrivers/net/ethernet/aeroflex/greth.c-1306-\ndrivers/net/ethernet/aeroflex/greth.c:1307:\tret = mdiobus_register(greth-\u003emdio);\ndrivers/net/ethernet/aeroflex/greth.c-1308-\tif (ret) {\n--\ndrivers/net/ethernet/agere/et131x.c=3931=static int et131x_pci_setup(struct pci_dev *pdev,\n--\ndrivers/net/ethernet/agere/et131x.c-4026-\ndrivers/net/ethernet/agere/et131x.c:4027:\trc = mdiobus_register(adapter-\u003emii_bus);\ndrivers/net/ethernet/agere/et131x.c-4028-\tif (rc \u003c 0) {\n--\ndrivers/net/ethernet/altera/altera_tse_main.c=121=static int altera_tse_mdio_create(struct net_device *dev, unsigned int id)\n--\ndrivers/net/ethernet/altera/altera_tse_main.c-157-\ndrivers/net/ethernet/altera/altera_tse_main.c:158:\tret = of_mdiobus_register(mdio, mdio_node);\ndrivers/net/ethernet/altera/altera_tse_main.c-159-\tif (ret != 0) {\n--\ndrivers/net/ethernet/amd/au1000_eth.c=1061=static int au1000_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/amd/au1000_eth.c-1221-\ndrivers/net/ethernet/amd/au1000_eth.c:1222:\terr = mdiobus_register(aup-\u003emii_bus);\ndrivers/net/ethernet/amd/au1000_eth.c-1223-\tif (err) {\n--\ndrivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c=931=static int xgbe_phy_find_phy_device(struct xgbe_prv_data *pdata)\n--\ndrivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c-975-\ndrivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c:976:\tret = phy_device_register(phydev);\ndrivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c-977-\tif (ret) {\ndrivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c:978:\t\tnetdev_err(pdata-\u003enetdev, \"phy_device_register failed\\n\");\ndrivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c-979-\t\tphy_device_free(phydev);\n--\ndrivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c=3428=static int xgbe_phy_init(struct xgbe_prv_data *pdata)\n--\ndrivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c-3717-\tsnprintf(mii-\u003eid, sizeof(mii-\u003eid), \"%s\", dev_name(pdata-\u003edev));\ndrivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c:3718:\tret = mdiobus_register(mii);\ndrivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c-3719-\tif (ret) {\ndrivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c:3720:\t\tdev_err(pdata-\u003edev, \"mdiobus_register failed\\n\");\ndrivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c-3721-\t\treturn ret;\n--\ndrivers/net/ethernet/apm/xgene-v2/mdio.c=98=int xge_mdio_config(struct net_device *ndev)\n--\ndrivers/net/ethernet/apm/xgene-v2/mdio.c-118-\tmdio_bus-\u003ephy_mask = 0x1;\ndrivers/net/ethernet/apm/xgene-v2/mdio.c:119:\tret = mdiobus_register(mdio_bus);\ndrivers/net/ethernet/apm/xgene-v2/mdio.c-120-\tif (ret)\n--\ndrivers/net/ethernet/apm/xgene/xgene_enet_hw.c=837=int xgene_enet_phy_connect(struct net_device *ndev)\n--\ndrivers/net/ethernet/apm/xgene/xgene_enet_hw.c-887-\ndrivers/net/ethernet/apm/xgene/xgene_enet_hw.c:888:static int xgene_mdiobus_register(struct xgene_enet_pdata *pdata,\ndrivers/net/ethernet/apm/xgene/xgene_enet_hw.c-889-\t\t\t\t  struct mii_bus *mdio)\n--\ndrivers/net/ethernet/apm/xgene/xgene_enet_hw.c-912-\ndrivers/net/ethernet/apm/xgene/xgene_enet_hw.c:913:\t\tret = of_mdiobus_register(mdio, mdio_np);\ndrivers/net/ethernet/apm/xgene/xgene_enet_hw.c-914-\t\tof_node_put(mdio_np);\n--\ndrivers/net/ethernet/apm/xgene/xgene_enet_hw.c-921-\t/* Register the MDIO bus */\ndrivers/net/ethernet/apm/xgene/xgene_enet_hw.c:922:\tret = mdiobus_register(mdio);\ndrivers/net/ethernet/apm/xgene/xgene_enet_hw.c-923-\tif (ret)\n--\ndrivers/net/ethernet/apm/xgene/xgene_enet_hw.c=939=int xgene_enet_mdio_config(struct xgene_enet_pdata *pdata)\n--\ndrivers/net/ethernet/apm/xgene/xgene_enet_hw.c-957-\ndrivers/net/ethernet/apm/xgene/xgene_enet_hw.c:958:\tret = xgene_mdiobus_register(pdata, mdio_bus);\ndrivers/net/ethernet/apm/xgene/xgene_enet_hw.c-959-\tif (ret) {\n--\ndrivers/net/ethernet/arc/emac_mdio.c=131=int arc_mdio_probe(struct arc_emac_priv *priv)\n--\ndrivers/net/ethernet/arc/emac_mdio.c-172-\ndrivers/net/ethernet/arc/emac_mdio.c:173:\terror = of_mdiobus_register(bus, mdio_node);\ndrivers/net/ethernet/arc/emac_mdio.c-174-\tof_node_put(mdio_node);\n--\ndrivers/net/ethernet/asix/ax88796c_main.c=966=static int ax88796c_probe(struct spi_device *spi)\n--\ndrivers/net/ethernet/asix/ax88796c_main.c-1010-\ndrivers/net/ethernet/asix/ax88796c_main.c:1011:\tret = devm_mdiobus_register(\u0026spi-\u003edev, ax_local-\u003emdiobus);\ndrivers/net/ethernet/asix/ax88796c_main.c-1012-\tif (ret \u003c 0) {\n--\ndrivers/net/ethernet/atheros/ag71xx.c=687=static int ag71xx_mdio_probe(struct ag71xx *ag)\n--\ndrivers/net/ethernet/atheros/ag71xx.c-727-\tmnp = of_get_child_by_name(np, \"mdio\");\ndrivers/net/ethernet/atheros/ag71xx.c:728:\terr = devm_of_mdiobus_register(dev, mii_bus, mnp);\ndrivers/net/ethernet/atheros/ag71xx.c-729-\tof_node_put(mnp);\n--\ndrivers/net/ethernet/broadcom/b44.c=2234=static int b44_register_phy_one(struct b44 *bp)\n--\ndrivers/net/ethernet/broadcom/b44.c-2259-\ndrivers/net/ethernet/broadcom/b44.c:2260:\terr = mdiobus_register(mii_bus);\ndrivers/net/ethernet/broadcom/b44.c-2261-\tif (err) {\n--\ndrivers/net/ethernet/broadcom/bcm63xx_enet.c=1713=static int bcm_enet_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/broadcom/bcm63xx_enet.c-1829-\ndrivers/net/ethernet/broadcom/bcm63xx_enet.c:1830:\t\tret = mdiobus_register(bus);\ndrivers/net/ethernet/broadcom/bcm63xx_enet.c-1831-\t\tif (ret) {\n--\ndrivers/net/ethernet/broadcom/bgmac-bcma-mdio.c=211=struct mii_bus *bcma_mdio_mii_register(struct bgmac *bgmac)\n--\ndrivers/net/ethernet/broadcom/bgmac-bcma-mdio.c-235-\ndrivers/net/ethernet/broadcom/bgmac-bcma-mdio.c:236:\terr = of_mdiobus_register(mii_bus, np);\ndrivers/net/ethernet/broadcom/bgmac-bcma-mdio.c-237-\tof_node_put(np);\n--\ndrivers/net/ethernet/broadcom/genet/bcmmii.c=193=int bcmgenet_mii_config(struct net_device *dev, bool init)\n--\ndrivers/net/ethernet/broadcom/genet/bcmmii.c-233-\t\tphy_name = \"external RvMII\";\ndrivers/net/ethernet/broadcom/genet/bcmmii.c:234:\t\t/* of_mdiobus_register took care of reading the 'max-speed'\ndrivers/net/ethernet/broadcom/genet/bcmmii.c-235-\t\t * PHY property for us, effectively limiting the PHY supported\n--\ndrivers/net/ethernet/broadcom/sb1250-mac.c=2157=static int sbmac_init(struct platform_device *pldev, long long base)\n--\ndrivers/net/ethernet/broadcom/sb1250-mac.c-2227-\t */\ndrivers/net/ethernet/broadcom/sb1250-mac.c:2228:\terr = mdiobus_register(sc-\u003emii_bus);\ndrivers/net/ethernet/broadcom/sb1250-mac.c-2229-\tif (err) {\n--\ndrivers/net/ethernet/broadcom/tg3.c=1505=static int tg3_mdio_init(struct tg3 *tp)\n--\ndrivers/net/ethernet/broadcom/tg3.c-1557-\ndrivers/net/ethernet/broadcom/tg3.c:1558:\ti = mdiobus_register(tp-\u003emdio_bus);\ndrivers/net/ethernet/broadcom/tg3.c-1559-\tif (i) {\n--\ndrivers/net/ethernet/cadence/macb_main.c=1023=static int macb_mii_probe(struct net_device *netdev)\n--\ndrivers/net/ethernet/cadence/macb_main.c-1096-\ndrivers/net/ethernet/cadence/macb_main.c:1097:static int macb_mdiobus_register(struct macb *bp, struct device_node *mdio_np)\ndrivers/net/ethernet/cadence/macb_main.c-1098-{\n--\ndrivers/net/ethernet/cadence/macb_main.c-1104-\tif (mdio_np)\ndrivers/net/ethernet/cadence/macb_main.c:1105:\t\treturn of_mdiobus_register(bp-\u003emii_bus, mdio_np);\ndrivers/net/ethernet/cadence/macb_main.c-1106-\n--\ndrivers/net/ethernet/cadence/macb_main.c-1118-\ndrivers/net/ethernet/cadence/macb_main.c:1119:\t\t\treturn of_mdiobus_register(bp-\u003emii_bus, np);\ndrivers/net/ethernet/cadence/macb_main.c-1120-\t\t}\ndrivers/net/ethernet/cadence/macb_main.c-1121-\ndrivers/net/ethernet/cadence/macb_main.c:1122:\treturn mdiobus_register(bp-\u003emii_bus);\ndrivers/net/ethernet/cadence/macb_main.c-1123-}\n--\ndrivers/net/ethernet/cadence/macb_main.c=1125=static int macb_mii_init(struct macb *bp)\n--\ndrivers/net/ethernet/cadence/macb_main.c-1158-\ndrivers/net/ethernet/cadence/macb_main.c:1159:\terr = macb_mdiobus_register(bp, mdio_np);\ndrivers/net/ethernet/cadence/macb_main.c-1160-\tif (err)\n--\ndrivers/net/ethernet/davicom/dm9051.c=1107=static int dm9051_mdio_register(struct board_info *db)\n--\ndrivers/net/ethernet/davicom/dm9051.c-1124-\ndrivers/net/ethernet/davicom/dm9051.c:1125:\tret = devm_mdiobus_register(\u0026spi-\u003edev, db-\u003emdiobus);\ndrivers/net/ethernet/davicom/dm9051.c-1126-\tif (ret)\n--\ndrivers/net/ethernet/engleder/tsnep_main.c=2423=static int tsnep_mdio_init(struct tsnep_adapter *adapter)\n--\ndrivers/net/ethernet/engleder/tsnep_main.c-2454-\ndrivers/net/ethernet/engleder/tsnep_main.c:2455:\tretval = of_mdiobus_register(adapter-\u003emdiobus, np);\ndrivers/net/ethernet/engleder/tsnep_main.c-2456-\n--\ndrivers/net/ethernet/ethoc.c=1024=static int ethoc_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/ethoc.c-1207-\ndrivers/net/ethernet/ethoc.c:1208:\tret = mdiobus_register(priv-\u003emdio);\ndrivers/net/ethernet/ethoc.c-1209-\tif (ret) {\n--\ndrivers/net/ethernet/faraday/ftgmac100.c=1734=static int ftgmac100_setup_mdio(struct net_device *netdev)\n--\ndrivers/net/ethernet/faraday/ftgmac100.c-1769-\ndrivers/net/ethernet/faraday/ftgmac100.c:1770:\terr = devm_of_mdiobus_register(priv-\u003edev, priv-\u003emii_bus, mdio_np);\ndrivers/net/ethernet/faraday/ftgmac100.c-1771-\tof_node_put(mdio_np);\n--\ndrivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c=36=static int enetc_pci_mdio_probe(struct pci_dev *pdev,\n--\ndrivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c-90-\ndrivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c:91:\terr = of_mdiobus_register(bus, dev-\u003eof_node);\ndrivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c-92-\tif (err)\n--\ndrivers/net/ethernet/freescale/enetc/enetc_pf_common.c=266=static int enetc_mdio_probe(struct enetc_pf *pf, struct device_node *np)\n--\ndrivers/net/ethernet/freescale/enetc/enetc_pf_common.c-292-\ndrivers/net/ethernet/freescale/enetc/enetc_pf_common.c:293:\terr = of_mdiobus_register(bus, np);\ndrivers/net/ethernet/freescale/enetc/enetc_pf_common.c-294-\tif (err)\n--\ndrivers/net/ethernet/freescale/enetc/enetc_pf_common.c=308=static int enetc_imdio_create(struct enetc_pf *pf)\n--\ndrivers/net/ethernet/freescale/enetc/enetc_pf_common.c-342-\ndrivers/net/ethernet/freescale/enetc/enetc_pf_common.c:343:\terr = mdiobus_register(bus);\ndrivers/net/ethernet/freescale/enetc/enetc_pf_common.c-344-\tif (err) {\n--\ndrivers/net/ethernet/freescale/fec_main.c=3042=static int fec_enet_mii_init(struct platform_device *pdev)\n--\ndrivers/net/ethernet/freescale/fec_main.c-3160-\ndrivers/net/ethernet/freescale/fec_main.c:3161:\terr = of_mdiobus_register(fep-\u003emii_bus, node);\ndrivers/net/ethernet/freescale/fec_main.c-3162-\tif (err)\n--\ndrivers/net/ethernet/freescale/fec_mpc52xx_phy.c=65=static int mpc52xx_fec_mdio_probe(struct platform_device *of)\n--\ndrivers/net/ethernet/freescale/fec_mpc52xx_phy.c-105-\ndrivers/net/ethernet/freescale/fec_mpc52xx_phy.c:106:\terr = of_mdiobus_register(bus, np);\ndrivers/net/ethernet/freescale/fec_mpc52xx_phy.c-107-\tif (err)\n--\ndrivers/net/ethernet/freescale/fs_enet/mii-bitbang.c=149=static int fs_enet_mdio_probe(struct platform_device *ofdev)\n--\ndrivers/net/ethernet/freescale/fs_enet/mii-bitbang.c-175-\ndrivers/net/ethernet/freescale/fs_enet/mii-bitbang.c:176:\tret = of_mdiobus_register(new_bus, ofdev-\u003edev.of_node);\ndrivers/net/ethernet/freescale/fs_enet/mii-bitbang.c-177-\tif (ret)\n--\ndrivers/net/ethernet/freescale/fs_enet/mii-fec.c=97=static int fs_enet_mdio_probe(struct platform_device *ofdev)\n--\ndrivers/net/ethernet/freescale/fs_enet/mii-fec.c-166-\ndrivers/net/ethernet/freescale/fs_enet/mii-fec.c:167:\tret = of_mdiobus_register(new_bus, ofdev-\u003edev.of_node);\ndrivers/net/ethernet/freescale/fs_enet/mii-fec.c-168-\tif (ret)\n--\ndrivers/net/ethernet/freescale/fsl_pq_mdio.c=409=static int fsl_pq_mdio_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/freescale/fsl_pq_mdio.c-493-\ndrivers/net/ethernet/freescale/fsl_pq_mdio.c:494:\terr = of_mdiobus_register(new_bus, np);\ndrivers/net/ethernet/freescale/fsl_pq_mdio.c-495-\tif (err) {\n--\ndrivers/net/ethernet/freescale/xgmac_mdio.c=371=static int xgmac_mdio_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/freescale/xgmac_mdio.c-426-\tif (is_of_node(fwnode))\ndrivers/net/ethernet/freescale/xgmac_mdio.c:427:\t\tret = of_mdiobus_register(bus, to_of_node(fwnode));\ndrivers/net/ethernet/freescale/xgmac_mdio.c-428-\telse if (is_acpi_node(fwnode))\ndrivers/net/ethernet/freescale/xgmac_mdio.c:429:\t\tret = acpi_mdiobus_register(bus, fwnode);\ndrivers/net/ethernet/freescale/xgmac_mdio.c-430-\telse\n--\ndrivers/net/ethernet/hisilicon/hibmcge/hbg_mdio.c=266=int hbg_mdio_init(struct hbg_priv *priv)\n--\ndrivers/net/ethernet/hisilicon/hibmcge/hbg_mdio.c-291-\ndrivers/net/ethernet/hisilicon/hibmcge/hbg_mdio.c:292:\tret = devm_mdiobus_register(dev, mdio_bus);\ndrivers/net/ethernet/hisilicon/hibmcge/hbg_mdio.c-293-\tif (ret)\n--\ndrivers/net/ethernet/hisilicon/hix5hd2_gmac.c=1094=static int hix5hd2_dev_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/hisilicon/hix5hd2_gmac.c-1185-\ndrivers/net/ethernet/hisilicon/hix5hd2_gmac.c:1186:\tret = of_mdiobus_register(bus, node);\ndrivers/net/ethernet/hisilicon/hix5hd2_gmac.c-1187-\tif (ret)\n--\ndrivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c=716=hns_mac_register_phydev(struct mii_bus *mdio, struct hns_mac_cb *mac_cb,\n--\ndrivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c-744-\t */\ndrivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c:745:\trc = phy_device_register(phy);\ndrivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c-746-\tif (rc) {\n--\ndrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c=123=int hclge_mac_mdio_config(struct hclge_dev *hdev)\n--\ndrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c-154-\tmdio_bus-\u003ephy_mask = ~(1U \u003c\u003c mac-\u003ephy_addr);\ndrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c:155:\tret = mdiobus_register(mdio_bus);\ndrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c-156-\tif (ret) {\n--\ndrivers/net/ethernet/hisilicon/hns_mdio.c=495=static int hns_mdio_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/hisilicon/hns_mdio.c-583-\ndrivers/net/ethernet/hisilicon/hns_mdio.c:584:\t\tret = of_mdiobus_register(new_bus, pdev-\u003edev.of_node);\ndrivers/net/ethernet/hisilicon/hns_mdio.c-585-\t} else if (is_acpi_node(pdev-\u003edev.fwnode)) {\n--\ndrivers/net/ethernet/hisilicon/hns_mdio.c-592-\t\t/* Register the MDIO bus */\ndrivers/net/ethernet/hisilicon/hns_mdio.c:593:\t\tret = mdiobus_register(new_bus);\ndrivers/net/ethernet/hisilicon/hns_mdio.c-594-\t} else {\n--\ndrivers/net/ethernet/ibm/emac/core.c=2560=static int emac_dt_mdio_probe(struct emac_instance *dev)\n--\ndrivers/net/ethernet/ibm/emac/core.c-2584-\tsnprintf(bus-\u003eid, MII_BUS_ID_SIZE, \"%s\", dev-\u003eofdev-\u003ename);\ndrivers/net/ethernet/ibm/emac/core.c:2585:\tres = devm_of_mdiobus_register(\u0026dev-\u003eofdev-\u003edev, bus, mii_np);\ndrivers/net/ethernet/ibm/emac/core.c-2586-\tif (res) {\n--\ndrivers/net/ethernet/intel/ixgbe/ixgbe_phy.c=1026=int ixgbe_mii_bus_init(struct ixgbe_hw *hw)\n--\ndrivers/net/ethernet/intel/ixgbe/ixgbe_phy.c-1088-\tadapter-\u003emii_bus = bus;\ndrivers/net/ethernet/intel/ixgbe/ixgbe_phy.c:1089:\treturn mdiobus_register(bus);\ndrivers/net/ethernet/intel/ixgbe/ixgbe_phy.c-1090-}\n--\ndrivers/net/ethernet/lantiq_etop.c=385=ltq_etop_mdio_init(struct net_device *dev)\n--\ndrivers/net/ethernet/lantiq_etop.c-402-\t\t priv-\u003epdev-\u003ename, priv-\u003epdev-\u003eid);\ndrivers/net/ethernet/lantiq_etop.c:403:\tif (mdiobus_register(priv-\u003emii_bus)) {\ndrivers/net/ethernet/lantiq_etop.c-404-\t\terr = -ENXIO;\n--\ndrivers/net/ethernet/marvell/mvmdio.c=283=static int orion_mdio_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/marvell/mvmdio.c-381-\t/* For the platforms not supporting DT/ACPI fall-back\ndrivers/net/ethernet/marvell/mvmdio.c:382:\t * to mdiobus_register via of_mdiobus_register.\ndrivers/net/ethernet/marvell/mvmdio.c-383-\t */\ndrivers/net/ethernet/marvell/mvmdio.c-384-\tif (is_acpi_node(pdev-\u003edev.fwnode))\ndrivers/net/ethernet/marvell/mvmdio.c:385:\t\tret = acpi_mdiobus_register(bus, pdev-\u003edev.fwnode);\ndrivers/net/ethernet/marvell/mvmdio.c-386-\telse\ndrivers/net/ethernet/marvell/mvmdio.c:387:\t\tret = of_mdiobus_register(bus, pdev-\u003edev.of_node);\ndrivers/net/ethernet/marvell/mvmdio.c-388-\tif (ret \u003c 0) {\n--\ndrivers/net/ethernet/marvell/pxa168_eth.c=1387=static int pxa168_eth_probe(struct platform_device *pdev)\n--\ndrivers/net/ethernet/marvell/pxa168_eth.c-1504-\tpep-\u003esmi_bus-\u003ephy_mask = 0xffffffff;\ndrivers/net/ethernet/marvell/pxa168_eth.c:1505:\terr = mdiobus_register(pep-\u003esmi_bus);\ndrivers/net/ethernet/marvell/pxa168_eth.c-1506-\tif (err)\n--\ndrivers/net/ethernet/mediatek/mtk_eth_soc.c=998=static int mtk_mdio_init(struct mtk_eth *eth)\n--\ndrivers/net/ethernet/mediatek/mtk_eth_soc.c-1037-\tdev_dbg(eth-\u003edev, \"MDC is running on %d Hz\\n\", MDC_MAX_FREQ / eth-\u003emdc_divider);\ndrivers/net/ethernet/mediatek/mtk_eth_soc.c:1038:\tret = of_mdiobus_register(eth-\u003emii_bus, mii_np);\ndrivers/net/ethernet/mediatek/mtk_eth_soc.c-1039-\n--\ndrivers/net/ethernet/mediatek/mtk_star_emac.c=1422=static int mtk_star_mdio_init(struct net_device *ndev)\n--\ndrivers/net/ethernet/mediatek/mtk_star_emac.c-1447-\ndrivers/net/ethernet/mediatek/mtk_star_emac.c:1448:\tret = devm_of_mdiobus_register(dev, priv-\u003emii, mdio_node);\ndrivers/net/ethernet/mediatek/mtk_star_emac.c-1449-\n--\ndrivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_mdio.c=287=int mlxbf_gige_mdio_probe(struct platform_device *pdev, struct mlxbf_gige *priv)\n--\ndrivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_mdio.c-332-\ndrivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_mdio.c:333:\tret = mdiobus_register(priv-\u003emdiobus);\ndrivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_mdio.c-334-\tif (ret)\n--\ndrivers/net/ethernet/meta/fbnic/fbnic_mdio.c=253=int fbnic_mdiobus_create(struct fbnic_dev *fbd)\n--\ndrivers/net/ethernet/meta/fbnic/fbnic_mdio.c-272-\ndrivers/net/ethernet/meta/fbnic/fbnic_mdio.c:273:\terr = devm_mdiobus_register(fbd-\u003edev, bus);\ndrivers/net/ethernet/meta/fbnic/fbnic_mdio.c-274-\tif (err) {\n--\ndrivers/net/ethernet/micrel/ks8851_common.c=1036=static int ks8851_register_mdiobus(struct ks8851_net *ks, struct device *dev)\n--\ndrivers/net/ethernet/micrel/ks8851_common.c-1052-\ndrivers/net/ethernet/micrel/ks8851_common.c:1053:\tret = mdiobus_register(mii_bus);\ndrivers/net/ethernet/micrel/ks8851_common.c-1054-\tif (ret)\ndrivers/net/ethernet/micrel/ks8851_common.c:1055:\t\tgoto err_mdiobus_register;\ndrivers/net/ethernet/micrel/ks8851_common.c-1056-\n--\ndrivers/net/ethernet/micrel/ks8851_common.c-1060-\ndrivers/net/ethernet/micrel/ks8851_common.c:1061:err_mdiobus_register:\ndrivers/net/ethernet/micrel/ks8851_common.c-1062-\tmdiobus_free(mii_bus);\n--\ndrivers/net/ethernet/microchip/lan743x_main.c=1379=static int lan743x_hw_reset_phy(struct lan743x_adapter *adapter)\n--\ndrivers/net/ethernet/microchip/lan743x_main.c-1382-\ndrivers/net/ethernet/microchip/lan743x_main.c:1383:\t/* Only called with in probe, and before mdiobus_register */\n\n"
}

9/2 2026/09/08 14:02 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 35410
							output: 38
							thoughts: 597
						

Thoughts:
**WorthFuzzing Decision for DP83867 PHY Driver**

Okay, let's break this down. I'm looking at `drivers/net/phy/dp83867.c`, a PHY driver specifically for the Texas Instruments DP83867 Gigabit PHY. My immediate thought is, "Can this be fuzzed in a virtual environment?" I need to determine if it's reachable in QEMU or GCE.  The DP83867 is a *physical* PHY chip, typically found on embedded boards (like TI Sitara, AM335x, AM65x, Xilinx Zynq) or on dedicated PCIe Ethernet NICs. It's not *emulated* in standard QEMU.

Now, let's apply the rules. Section 2 says I should return `WorthFuzzing=false` if the modified code falls into certain categories, one of which is "Structurally unreachable hardware." Specifically, this includes vendor-specific PCIe switches, SmartNICs, or GPU drivers that require physical ASICs/PCIe cards *not* emulated in standard QEMU.  I need to classify `drivers/net/phy/` as a category.

So, let's dig into the driver itself. `module_phy_driver(dp83867_driver)` is how it's registered. The probe happens via `dp83867_probe()`, `dp83867_config_init()`, and `dp83867_led_polarity_set()`. The probe will match based on the PHYID registers (registers 2 and 3) from an attached PHY. The code is looking for `DP83867_PHY_ID` (0x2000a231).

A standard virtual environment (QEMU, GCE) uses standard network devices.  These devices (e.g., virtio-net, e1000, rtl8139) either don't even use the Linux PHY subsystem/MDIO interface *or* they simply don't have a DP83867 attached.  For example, e1000 has either an internal PHY or its own driver, and virtio-net doesn't have a PHY at all. There aren't any USB gadgets or virtual devices that are emulating a DP83867 PHY.

Let me just double-check, are there any virtual MDIO or mock PHY devices that could possibly be relevant? I'll search for "mock" or "mdio" in the `drivers/net/phy/` and `drivers/net/` directories.

Based on this, I'm pretty confident in my conclusion.



10/2 2026/09/08 14:02 tool grepper
0m Args:
{
  "Expression": "module_phy_driver|mdio_driver_register",
  "PathPrefix": "drivers/net/phy/"
}

Results:
{
  "Output": "drivers/net/phy/adin.c=1010=static struct phy_driver adin_driver[] = {\n--\ndrivers/net/phy/adin.c-1058-\ndrivers/net/phy/adin.c:1059:module_phy_driver(adin_driver);\ndrivers/net/phy/adin.c-1060-\n--\ndrivers/net/phy/adin1100.c=323=static struct phy_driver adin_driver[] = {\n--\ndrivers/net/phy/adin1100.c-342-\ndrivers/net/phy/adin1100.c:343:module_phy_driver(adin_driver);\ndrivers/net/phy/adin1100.c-344-\n--\ndrivers/net/phy/adin1140-phy.c=46=static struct phy_driver adin1140_driver[] = {\n--\ndrivers/net/phy/adin1140-phy.c-60-};\ndrivers/net/phy/adin1140-phy.c:61:module_phy_driver(adin1140_driver);\ndrivers/net/phy/adin1140-phy.c-62-\n--\ndrivers/net/phy/air_an8801.c=1122=static struct phy_driver airoha_driver[] = {\n--\ndrivers/net/phy/air_an8801.c-1145-} };\ndrivers/net/phy/air_an8801.c:1146:module_phy_driver(airoha_driver);\ndrivers/net/phy/air_an8801.c-1147-\n--\ndrivers/net/phy/air_en8811h.c=1512=static struct phy_driver en8811h_driver[] = {\n--\ndrivers/net/phy/air_en8811h.c-1556-\ndrivers/net/phy/air_en8811h.c:1557:module_phy_driver(en8811h_driver);\ndrivers/net/phy/air_en8811h.c-1558-\n--\ndrivers/net/phy/amd.c=91=static struct phy_driver am79c_drivers[] = {\n--\ndrivers/net/phy/amd.c-111-\ndrivers/net/phy/amd.c:112:module_phy_driver(am79c_drivers);\ndrivers/net/phy/amd.c-113-\n--\ndrivers/net/phy/aquantia/aquantia_main.c=1181=static struct phy_driver aqr_driver[] = {\n--\ndrivers/net/phy/aquantia/aquantia_main.c-1564-\ndrivers/net/phy/aquantia/aquantia_main.c:1565:module_phy_driver(aqr_driver);\ndrivers/net/phy/aquantia/aquantia_main.c-1566-\n--\ndrivers/net/phy/as21xxx.c=946=static struct phy_driver as21xxx_drivers[] = {\n--\ndrivers/net/phy/as21xxx.c-1077-};\ndrivers/net/phy/as21xxx.c:1078:module_phy_driver(as21xxx_drivers);\ndrivers/net/phy/as21xxx.c-1079-\n--\ndrivers/net/phy/ax88796b.c=97=static struct phy_driver asix_driver[] = {\n--\ndrivers/net/phy/ax88796b.c-120-\ndrivers/net/phy/ax88796b.c:121:module_phy_driver(asix_driver);\ndrivers/net/phy/ax88796b.c-122-\n--\ndrivers/net/phy/ax88796b_rust.rs-12-\ndrivers/net/phy/ax88796b_rust.rs:13:kernel::module_phy_driver! {\ndrivers/net/phy/ax88796b_rust.rs-14-    drivers: [PhyAX88772A, PhyAX88772C, PhyAX88796B],\n--\ndrivers/net/phy/bcm-cygnus.c=286=MODULE_DEVICE_TABLE(mdio, bcm_cygnus_phy_tbl);\ndrivers/net/phy/bcm-cygnus.c-287-\ndrivers/net/phy/bcm-cygnus.c:288:module_phy_driver(bcm_cygnus_phy_driver);\ndrivers/net/phy/bcm-cygnus.c-289-\n--\ndrivers/net/phy/bcm54140.c=865=static struct phy_driver bcm54140_drivers[] = {\n--\ndrivers/net/phy/bcm54140.c-884-};\ndrivers/net/phy/bcm54140.c:885:module_phy_driver(bcm54140_drivers);\ndrivers/net/phy/bcm54140.c-886-\n--\ndrivers/net/phy/bcm63xx.c=72=static struct phy_driver bcm63xx_driver[] = {\n--\ndrivers/net/phy/bcm63xx.c-93-\ndrivers/net/phy/bcm63xx.c:94:module_phy_driver(bcm63xx_driver);\ndrivers/net/phy/bcm63xx.c-95-\n--\ndrivers/net/phy/bcm7xxx.c=946=static const struct mdio_device_id __maybe_unused bcm7xxx_tbl[] = {\n--\ndrivers/net/phy/bcm7xxx.c-969-\ndrivers/net/phy/bcm7xxx.c:970:module_phy_driver(bcm7xxx_driver);\ndrivers/net/phy/bcm7xxx.c-971-\n--\ndrivers/net/phy/bcm84881.c=419=static struct phy_driver bcm84881_drivers[] = {\n--\ndrivers/net/phy/bcm84881.c-461-\ndrivers/net/phy/bcm84881.c:462:module_phy_driver(bcm84881_drivers);\ndrivers/net/phy/bcm84881.c-463-\n--\ndrivers/net/phy/bcm87xx.c=194=static struct phy_driver bcm87xx_driver[] = {\n--\ndrivers/net/phy/bcm87xx.c-218-\ndrivers/net/phy/bcm87xx.c:219:module_phy_driver(bcm87xx_driver);\ndrivers/net/phy/bcm87xx.c-220-\n--\ndrivers/net/phy/broadcom.c=1466=static struct phy_driver broadcom_drivers[] = {\n--\ndrivers/net/phy/broadcom.c-1753-\ndrivers/net/phy/broadcom.c:1754:module_phy_driver(broadcom_drivers);\ndrivers/net/phy/broadcom.c-1755-\n--\ndrivers/net/phy/cicada.c=127=static struct phy_driver cis820x_driver[] = {\n--\ndrivers/net/phy/cicada.c-145-\ndrivers/net/phy/cicada.c:146:module_phy_driver(cis820x_driver);\ndrivers/net/phy/cicada.c-147-\n--\ndrivers/net/phy/cortina.c=76=static struct phy_driver cortina_driver[] = {\n--\ndrivers/net/phy/cortina.c-87-\ndrivers/net/phy/cortina.c:88:module_phy_driver(cortina_driver);\ndrivers/net/phy/cortina.c-89-\n--\ndrivers/net/phy/dap8211r.c=196=static struct phy_driver dap8211r_driver[] = {\n--\ndrivers/net/phy/dap8211r.c-208-};\ndrivers/net/phy/dap8211r.c:209:module_phy_driver(dap8211r_driver);\ndrivers/net/phy/dap8211r.c-210-\n--\ndrivers/net/phy/davicom.c=173=static struct phy_driver dm91xx_driver[] = {\n--\ndrivers/net/phy/davicom.c-209-\ndrivers/net/phy/davicom.c:210:module_phy_driver(dm91xx_driver);\ndrivers/net/phy/davicom.c-211-\n--\ndrivers/net/phy/dp83640.c=1456=static struct phy_driver dp83640_driver[] = {\n--\ndrivers/net/phy/dp83640.c-1470-\ndrivers/net/phy/dp83640.c:1471:module_phy_driver(dp83640_driver);\ndrivers/net/phy/dp83640.c-1472-\n--\ndrivers/net/phy/dp83822.c=1236=static struct phy_driver dp83822_driver[] = {\n--\ndrivers/net/phy/dp83822.c-1244-};\ndrivers/net/phy/dp83822.c:1245:module_phy_driver(dp83822_driver);\ndrivers/net/phy/dp83822.c-1246-\n--\ndrivers/net/phy/dp83848.c=154=static struct phy_driver dp83848_driver[] = {\n--\ndrivers/net/phy/dp83848.c-163-};\ndrivers/net/phy/dp83848.c:164:module_phy_driver(dp83848_driver);\ndrivers/net/phy/dp83848.c-165-\n--\ndrivers/net/phy/dp83867.c=1196=static struct phy_driver dp83867_driver[] = {\n--\ndrivers/net/phy/dp83867.c-1234-};\ndrivers/net/phy/dp83867.c:1235:module_phy_driver(dp83867_driver);\ndrivers/net/phy/dp83867.c-1236-\n--\ndrivers/net/phy/dp83869.c=934=static struct phy_driver dp83869_driver[] = {\n--\ndrivers/net/phy/dp83869.c-938-};\ndrivers/net/phy/dp83869.c:939:module_phy_driver(dp83869_driver);\ndrivers/net/phy/dp83869.c-940-\n--\ndrivers/net/phy/dp83tc811.c=387=static struct phy_driver dp83811_driver[] = {\n--\ndrivers/net/phy/dp83tc811.c-404-};\ndrivers/net/phy/dp83tc811.c:405:module_phy_driver(dp83811_driver);\ndrivers/net/phy/dp83tc811.c-406-\n--\ndrivers/net/phy/dp83td510.c=936=static struct phy_driver dp83td510_driver[] = {\n--\ndrivers/net/phy/dp83td510.c-966-} };\ndrivers/net/phy/dp83td510.c:967:module_phy_driver(dp83td510_driver);\ndrivers/net/phy/dp83td510.c-968-\n--\ndrivers/net/phy/dp83tg720.c=644=static struct phy_driver dp83tg720_driver[] = {\n--\ndrivers/net/phy/dp83tg720.c-667-} };\ndrivers/net/phy/dp83tg720.c:668:module_phy_driver(dp83tg720_driver);\ndrivers/net/phy/dp83tg720.c-669-\n--\ndrivers/net/phy/et1011c.c=86=static struct phy_driver et1011c_driver[] = { {\n--\ndrivers/net/phy/et1011c.c-94-\ndrivers/net/phy/et1011c.c:95:module_phy_driver(et1011c_driver);\ndrivers/net/phy/et1011c.c-96-\n--\ndrivers/net/phy/icplus.c=575=static struct phy_driver icplus_driver[] = {\n--\ndrivers/net/phy/icplus.c-625-\ndrivers/net/phy/icplus.c:626:module_phy_driver(icplus_driver);\ndrivers/net/phy/icplus.c-627-\n--\ndrivers/net/phy/intel-xway.c=584=static struct phy_driver xway_gphy[] = {\n--\ndrivers/net/phy/intel-xway.c-770-};\ndrivers/net/phy/intel-xway.c:771:module_phy_driver(xway_gphy);\ndrivers/net/phy/intel-xway.c-772-\n--\ndrivers/net/phy/lxt.c=308=static struct phy_driver lxt97x_driver[] = {\n--\ndrivers/net/phy/lxt.c-348-\ndrivers/net/phy/lxt.c:349:module_phy_driver(lxt97x_driver);\ndrivers/net/phy/lxt.c-350-\n--\ndrivers/net/phy/marvell-88q2xxx.c=1102=static struct phy_driver mv88q2xxx_driver[] = {\n--\ndrivers/net/phy/marvell-88q2xxx.c-1143-\ndrivers/net/phy/marvell-88q2xxx.c:1144:module_phy_driver(mv88q2xxx_driver);\ndrivers/net/phy/marvell-88q2xxx.c-1145-\n--\ndrivers/net/phy/marvell-88x2222.c=578=static struct phy_driver mv2222_drivers[] = {\n--\ndrivers/net/phy/marvell-88x2222.c-594-};\ndrivers/net/phy/marvell-88x2222.c:595:module_phy_driver(mv2222_drivers);\ndrivers/net/phy/marvell-88x2222.c-596-\n--\ndrivers/net/phy/marvell.c=3667=static struct phy_driver marvell_drivers[] = {\n--\ndrivers/net/phy/marvell.c-4176-\ndrivers/net/phy/marvell.c:4177:module_phy_driver(marvell_drivers);\ndrivers/net/phy/marvell.c-4178-\n--\ndrivers/net/phy/marvell10g.c=1388=static struct phy_driver mv3310_drivers[] = {\n--\ndrivers/net/phy/marvell10g.c-1476-\ndrivers/net/phy/marvell10g.c:1477:module_phy_driver(mv3310_drivers);\ndrivers/net/phy/marvell10g.c-1478-\n--\ndrivers/net/phy/mdio_device.c=269=static void mdio_shutdown(struct device *dev)\n--\ndrivers/net/phy/mdio_device.c-279-/**\ndrivers/net/phy/mdio_device.c:280: * mdio_driver_register - register an mdio_driver with the MDIO layer\ndrivers/net/phy/mdio_device.c-281- * @drv: new mdio_driver to register\n--\ndrivers/net/phy/mdio_device.c-284- */\ndrivers/net/phy/mdio_device.c:285:int mdio_driver_register(struct mdio_driver *drv)\ndrivers/net/phy/mdio_device.c-286-{\n--\ndrivers/net/phy/mdio_device.c-306-}\ndrivers/net/phy/mdio_device.c:307:EXPORT_SYMBOL(mdio_driver_register);\ndrivers/net/phy/mdio_device.c-308-\n--\ndrivers/net/phy/mediatek/mtk-2p5ge.c=379=static struct phy_driver mtk_2p5gephy_driver[] = {\n--\ndrivers/net/phy/mediatek/mtk-2p5ge.c-400-\ndrivers/net/phy/mediatek/mtk-2p5ge.c:401:module_phy_driver(mtk_2p5gephy_driver);\ndrivers/net/phy/mediatek/mtk-2p5ge.c-402-\n--\ndrivers/net/phy/mediatek/mtk-fe-soc.c=30=static struct phy_driver mtk_soc_fe_phy_driver[] = {\n--\ndrivers/net/phy/mediatek/mtk-fe-soc.c-41-\ndrivers/net/phy/mediatek/mtk-fe-soc.c:42:module_phy_driver(mtk_soc_fe_phy_driver);\ndrivers/net/phy/mediatek/mtk-fe-soc.c-43-static const struct mdio_device_id __maybe_unused mtk_soc_fe_phy_tbl[] = {\n--\ndrivers/net/phy/mediatek/mtk-ge-soc.c=1495=static struct phy_driver mtk_socphy_driver[] = {\n--\ndrivers/net/phy/mediatek/mtk-ge-soc.c-1568-\ndrivers/net/phy/mediatek/mtk-ge-soc.c:1569:module_phy_driver(mtk_socphy_driver);\ndrivers/net/phy/mediatek/mtk-ge-soc.c-1570-\n--\ndrivers/net/phy/mediatek/mtk-ge.c=99=static struct phy_driver mtk_gephy_driver[] = {\n--\ndrivers/net/phy/mediatek/mtk-ge.c-129-\ndrivers/net/phy/mediatek/mtk-ge.c:130:module_phy_driver(mtk_gephy_driver);\ndrivers/net/phy/mediatek/mtk-ge.c-131-\n--\ndrivers/net/phy/meson-gxl.c=224=static const struct mdio_device_id __maybe_unused meson_gxl_tbl[] = {\n--\ndrivers/net/phy/meson-gxl.c-229-\ndrivers/net/phy/meson-gxl.c:230:module_phy_driver(meson_gxl_phy);\ndrivers/net/phy/meson-gxl.c-231-\n--\ndrivers/net/phy/micrel.c=6781=static struct phy_driver ksphy_driver[] = {\n--\ndrivers/net/phy/micrel.c-7108-\ndrivers/net/phy/micrel.c:7109:module_phy_driver(ksphy_driver);\ndrivers/net/phy/micrel.c-7110-\n--\ndrivers/net/phy/microchip.c=546=static struct phy_driver microchip_phy_driver[] = {\n--\ndrivers/net/phy/microchip.c-588-\ndrivers/net/phy/microchip.c:589:module_phy_driver(microchip_phy_driver);\ndrivers/net/phy/microchip.c-590-\n--\ndrivers/net/phy/microchip_t1.c=2104=static struct phy_driver microchip_t1_phy_driver[] = {\n--\ndrivers/net/phy/microchip_t1.c-2162-\ndrivers/net/phy/microchip_t1.c:2163:module_phy_driver(microchip_t1_phy_driver);\ndrivers/net/phy/microchip_t1.c-2164-\n--\ndrivers/net/phy/microchip_t1s.c=509=static struct phy_driver microchip_t1s_driver[] = {\n--\ndrivers/net/phy/microchip_t1s.c-566-\ndrivers/net/phy/microchip_t1s.c:567:module_phy_driver(microchip_t1s_driver);\ndrivers/net/phy/microchip_t1s.c-568-\n--\ndrivers/net/phy/motorcomm.c=3075=static struct phy_driver motorcomm_phy_drvs[] = {\n--\ndrivers/net/phy/motorcomm.c-3162-\ndrivers/net/phy/motorcomm.c:3163:module_phy_driver(motorcomm_phy_drvs);\ndrivers/net/phy/motorcomm.c-3164-\n--\ndrivers/net/phy/mscc/mscc_main.c=2548=static struct phy_driver vsc85xx_driver[] = {\n--\ndrivers/net/phy/mscc/mscc_main.c-2988-\ndrivers/net/phy/mscc/mscc_main.c:2989:module_phy_driver(vsc85xx_driver);\ndrivers/net/phy/mscc/mscc_main.c-2990-\n--\ndrivers/net/phy/mxl-86110.c=936=static struct phy_driver mxl_phy_drvs[] = {\n--\ndrivers/net/phy/mxl-86110.c-968-\ndrivers/net/phy/mxl-86110.c:969:module_phy_driver(mxl_phy_drvs);\ndrivers/net/phy/mxl-86110.c-970-\n--\ndrivers/net/phy/mxl-gpy.c=1102=static struct phy_driver gpy_drivers[] = {\n--\ndrivers/net/phy/mxl-gpy.c-1478-};\ndrivers/net/phy/mxl-gpy.c:1479:module_phy_driver(gpy_drivers);\ndrivers/net/phy/mxl-gpy.c-1480-\n--\ndrivers/net/phy/national.c=160=static struct phy_driver dp83865_driver[] = { {\n--\ndrivers/net/phy/national.c-169-\ndrivers/net/phy/national.c:170:module_phy_driver(dp83865_driver);\ndrivers/net/phy/national.c-171-\n--\ndrivers/net/phy/ncn26000.c=143=static struct phy_driver ncn26000_driver[] = {\n--\ndrivers/net/phy/ncn26000.c-159-\ndrivers/net/phy/ncn26000.c:160:module_phy_driver(ncn26000_driver);\ndrivers/net/phy/ncn26000.c-161-\n--\ndrivers/net/phy/nxp-c45-tja11xx.c=2073=static struct phy_driver nxp_c45_driver[] = {\n--\ndrivers/net/phy/nxp-c45-tja11xx.c-2177-\ndrivers/net/phy/nxp-c45-tja11xx.c:2178:module_phy_driver(nxp_c45_driver);\ndrivers/net/phy/nxp-c45-tja11xx.c-2179-\n--\ndrivers/net/phy/nxp-cbtx.c=197=static struct phy_driver cbtx_driver[] = {\n--\ndrivers/net/phy/nxp-cbtx.c-215-\ndrivers/net/phy/nxp-cbtx.c:216:module_phy_driver(cbtx_driver);\ndrivers/net/phy/nxp-cbtx.c-217-\n--\ndrivers/net/phy/nxp-tja11xx.c=818=static struct phy_driver tja11xx_driver[] = {\n--\ndrivers/net/phy/nxp-tja11xx.c-927-\ndrivers/net/phy/nxp-tja11xx.c:928:module_phy_driver(tja11xx_driver);\ndrivers/net/phy/nxp-tja11xx.c-929-\n--\ndrivers/net/phy/qcom/at803x.c=1113=static struct phy_driver at803x_driver[] = {\n--\ndrivers/net/phy/qcom/at803x.c-1235-\ndrivers/net/phy/qcom/at803x.c:1236:module_phy_driver(at803x_driver);\ndrivers/net/phy/qcom/at803x.c-1237-\n--\ndrivers/net/phy/qcom/qca807x.c=791=static struct phy_driver qca807x_drivers[] = {\n--\ndrivers/net/phy/qcom/qca807x.c-843-};\ndrivers/net/phy/qcom/qca807x.c:844:module_phy_driver(qca807x_drivers);\ndrivers/net/phy/qcom/qca807x.c-845-\n--\ndrivers/net/phy/qcom/qca808x.c=646=static struct phy_driver qca808x_driver[] = {\n--\ndrivers/net/phy/qcom/qca808x.c-678-\ndrivers/net/phy/qcom/qca808x.c:679:module_phy_driver(qca808x_driver);\ndrivers/net/phy/qcom/qca808x.c-680-\n--\ndrivers/net/phy/qcom/qca83xx.c=213=static struct phy_driver qca83xx_driver[] = {\n--\ndrivers/net/phy/qcom/qca83xx.c-259-\ndrivers/net/phy/qcom/qca83xx.c:260:module_phy_driver(qca83xx_driver);\ndrivers/net/phy/qcom/qca83xx.c-261-\n--\ndrivers/net/phy/qsemi.c=146=static struct phy_driver qs6612_driver[] = { {\n--\ndrivers/net/phy/qsemi.c-155-\ndrivers/net/phy/qsemi.c:156:module_phy_driver(qs6612_driver);\ndrivers/net/phy/qsemi.c-157-\n--\ndrivers/net/phy/qt2025.rs-23-\ndrivers/net/phy/qt2025.rs:24:kernel::module_phy_driver! {\ndrivers/net/phy/qt2025.rs-25-    drivers: [PhyQT2025],\n--\ndrivers/net/phy/realtek/realtek_main.c=3086=static struct phy_driver realtek_drvs[] = {\n--\ndrivers/net/phy/realtek/realtek_main.c-3418-\ndrivers/net/phy/realtek/realtek_main.c:3419:module_phy_driver(realtek_drvs);\ndrivers/net/phy/realtek/realtek_main.c-3420-\n--\ndrivers/net/phy/rockchip.c=173=static struct phy_driver rockchip_phy_driver[] = {\n--\ndrivers/net/phy/rockchip.c-188-\ndrivers/net/phy/rockchip.c:189:module_phy_driver(rockchip_phy_driver);\ndrivers/net/phy/rockchip.c-190-\n--\ndrivers/net/phy/smsc.c=687=static struct phy_driver smsc_phy_driver[] = {\n--\ndrivers/net/phy/smsc.c-882-\ndrivers/net/phy/smsc.c:883:module_phy_driver(smsc_phy_driver);\ndrivers/net/phy/smsc.c-884-\n--\ndrivers/net/phy/ste10Xp.c=102=static struct phy_driver ste10xp_pdriver[] = {\n--\ndrivers/net/phy/ste10Xp.c-124-\ndrivers/net/phy/ste10Xp.c:125:module_phy_driver(ste10xp_pdriver);\ndrivers/net/phy/ste10Xp.c-126-\n--\ndrivers/net/phy/teranetics.c=76=static struct phy_driver teranetics_driver[] = {\n--\ndrivers/net/phy/teranetics.c-88-\ndrivers/net/phy/teranetics.c:89:module_phy_driver(teranetics_driver);\ndrivers/net/phy/teranetics.c-90-\n--\ndrivers/net/phy/uPD60620.c=81=static struct phy_driver upd60620_driver[1] = { {\n--\ndrivers/net/phy/uPD60620.c-90-\ndrivers/net/phy/uPD60620.c:91:module_phy_driver(upd60620_driver);\ndrivers/net/phy/uPD60620.c-92-\n--\ndrivers/net/phy/vitesse.c=601=static struct phy_driver vsc82xx_driver[] = {\n--\ndrivers/net/phy/vitesse.c-715-\ndrivers/net/phy/vitesse.c:716:module_phy_driver(vsc82xx_driver);\ndrivers/net/phy/vitesse.c-717-\n"
}

11/2 2026/09/08 14:02 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 44511
							output: 38
							thoughts: 55
						

Thoughts:
**My MDIO Exploration**

Alright, let's dive into this. I need to figure out the status of virtual MDIO buses and any user-space mechanisms for creating MDIO devices. My first step is to perform a targeted search. I'm going to run a `grep` for "mdio" specifically within the `drivers/net/phy/`, `net/`, and `drivers/net/` directories. This is where I would expect to find the relevant driver code and any potential abstractions related to MDIO. Hopefully, this will give me a solid starting point for understanding the current implementation and potential areas for exploration. I'm expecting to find either device drivers, bus implementations, or at least some relevant documentation, or at worst, hints of other locations to investigate.



12/2 2026/09/08 14:02 tool grepper
0m Args:
{
  "Expression": "mdio_bus_class|mdiobus_register",
  "PathPrefix": "drivers/net/phy/"
}

Results:
{
  "Output": "drivers/net/phy/fixed_phy.c=195=static int __init fixed_mdio_bus_init(void)\n--\ndrivers/net/phy/fixed_phy.c-208-\ndrivers/net/phy/fixed_phy.c:209:\tret = mdiobus_register(fmb_mii_bus);\ndrivers/net/phy/fixed_phy.c-210-\tif (ret)\n--\ndrivers/net/phy/mdio_bus_provider.c=236=__ATTRIBUTE_GROUPS(mdio_bus_statistics);\ndrivers/net/phy/mdio_bus_provider.c-237-\ndrivers/net/phy/mdio_bus_provider.c:238:const struct class mdio_bus_class = {\ndrivers/net/phy/mdio_bus_provider.c-239-\t.name\t\t= \"mdio_bus\",\n--\ndrivers/net/phy/mdio_bus_provider.c=525=static bool mdiobus_prevent_c45_scan(struct mii_bus *bus)\n--\ndrivers/net/phy/mdio_bus_provider.c-539-/**\ndrivers/net/phy/mdio_bus_provider.c:540: * __mdiobus_register - bring up all the PHYs on a given bus and attach them to bus\ndrivers/net/phy/mdio_bus_provider.c-541- * @bus: target mii_bus\n--\ndrivers/net/phy/mdio_bus_provider.c-545- *   on a given bus, and attach them to the bus. Drivers should use\ndrivers/net/phy/mdio_bus_provider.c:546: *   mdiobus_register() rather than __mdiobus_register() unless they\ndrivers/net/phy/mdio_bus_provider.c-547- *   need to pass a specific owner module. MDIO devices which are not\ndrivers/net/phy/mdio_bus_provider.c-548- *   PHYs will not be brought up by this function. They are expected\ndrivers/net/phy/mdio_bus_provider.c:549: *   to be explicitly listed in DT and instantiated by of_mdiobus_register().\ndrivers/net/phy/mdio_bus_provider.c-550- *\n--\ndrivers/net/phy/mdio_bus_provider.c-552- */\ndrivers/net/phy/mdio_bus_provider.c:553:int __mdiobus_register(struct mii_bus *bus, struct module *owner)\ndrivers/net/phy/mdio_bus_provider.c-554-{\n--\ndrivers/net/phy/mdio_bus_provider.c-580-\tbus-\u003edev.parent = bus-\u003eparent;\ndrivers/net/phy/mdio_bus_provider.c:581:\tbus-\u003edev.class = \u0026mdio_bus_class;\ndrivers/net/phy/mdio_bus_provider.c-582-\tbus-\u003edev.groups = NULL;\n--\ndrivers/net/phy/mdio_bus_provider.c-666-}\ndrivers/net/phy/mdio_bus_provider.c:667:EXPORT_SYMBOL(__mdiobus_register);\ndrivers/net/phy/mdio_bus_provider.c-668-\n--\ndrivers/net/phy/mdio_bus_provider.c=727=struct mii_bus *mdio_find_bus(const char *mdio_name)\n--\ndrivers/net/phy/mdio_bus_provider.c-730-\ndrivers/net/phy/mdio_bus_provider.c:731:\td = class_find_device_by_name(\u0026mdio_bus_class, mdio_name);\ndrivers/net/phy/mdio_bus_provider.c-732-\treturn d ? to_mii_bus(d) : NULL;\n--\ndrivers/net/phy/mdio_bus_provider.c=734=EXPORT_SYMBOL(mdio_find_bus);\n--\ndrivers/net/phy/mdio_bus_provider.c-745- * Because the association of a device_node and mii_bus is made via\ndrivers/net/phy/mdio_bus_provider.c:746: * of_mdiobus_register(), the mii_bus cannot be found before it is\ndrivers/net/phy/mdio_bus_provider.c:747: * registered with of_mdiobus_register().\ndrivers/net/phy/mdio_bus_provider.c-748- *\n--\ndrivers/net/phy/mdio_bus_provider.c=750=struct mii_bus *of_mdio_find_bus(struct device_node *mdio_bus_np)\n--\ndrivers/net/phy/mdio_bus_provider.c-756-\ndrivers/net/phy/mdio_bus_provider.c:757:\td = class_find_device_by_of_node(\u0026mdio_bus_class, mdio_bus_np);\ndrivers/net/phy/mdio_bus_provider.c-758-\treturn d ? to_mii_bus(d) : NULL;\n--\ndrivers/net/phy/mdio_device.c=151=int mdio_device_register(struct mdio_device *mdiodev)\n--\ndrivers/net/phy/mdio_device.c-156-\ndrivers/net/phy/mdio_device.c:157:\terr = mdiobus_register_device(mdiodev);\ndrivers/net/phy/mdio_device.c-158-\tif (err)\n--\ndrivers/net/phy/mdio_device.c=189=EXPORT_SYMBOL(mdio_device_remove);\ndrivers/net/phy/mdio_device.c-190-\ndrivers/net/phy/mdio_device.c:191:int mdiobus_register_device(struct mdio_device *mdiodev)\ndrivers/net/phy/mdio_device.c-192-{\n--\ndrivers/net/phy/mdio_devres.c=56=static int mdiobus_devres_match(struct device *dev,\n--\ndrivers/net/phy/mdio_devres.c-65-/**\ndrivers/net/phy/mdio_devres.c:66: * __devm_mdiobus_register - Resource-managed variant of mdiobus_register()\ndrivers/net/phy/mdio_devres.c-67- * @dev:\tDevice to register mii_bus for\n--\ndrivers/net/phy/mdio_devres.c-72- */\ndrivers/net/phy/mdio_devres.c:73:int __devm_mdiobus_register(struct device *dev, struct mii_bus *bus,\ndrivers/net/phy/mdio_devres.c-74-\t\t\t    struct module *owner)\n--\ndrivers/net/phy/mdio_devres.c-86-\ndrivers/net/phy/mdio_devres.c:87:\tret = __mdiobus_register(bus, owner);\ndrivers/net/phy/mdio_devres.c-88-\tif (ret) {\n--\ndrivers/net/phy/mdio_devres.c-96-}\ndrivers/net/phy/mdio_devres.c:97:EXPORT_SYMBOL(__devm_mdiobus_register);\ndrivers/net/phy/mdio_devres.c-98-\n--\ndrivers/net/phy/mdio_devres.c-100-/**\ndrivers/net/phy/mdio_devres.c:101: * __devm_of_mdiobus_register - Resource managed variant of of_mdiobus_register()\ndrivers/net/phy/mdio_devres.c-102- * @dev:\tDevice to register mii_bus for\n--\ndrivers/net/phy/mdio_devres.c-106- */\ndrivers/net/phy/mdio_devres.c:107:int __devm_of_mdiobus_register(struct device *dev, struct mii_bus *mdio,\ndrivers/net/phy/mdio_devres.c-108-\t\t\t       struct device_node *np, struct module *owner)\n--\ndrivers/net/phy/mdio_devres.c-120-\ndrivers/net/phy/mdio_devres.c:121:\tret = __of_mdiobus_register(mdio, np, owner);\ndrivers/net/phy/mdio_devres.c-122-\tif (ret) {\n--\ndrivers/net/phy/mdio_devres.c-130-}\ndrivers/net/phy/mdio_devres.c:131:EXPORT_SYMBOL(__devm_of_mdiobus_register);\ndrivers/net/phy/mdio_devres.c-132-#endif /* CONFIG_OF_MDIO */\n--\ndrivers/net/phy/phy_device.c=1109=int phy_device_register(struct phy_device *phydev)\n--\ndrivers/net/phy/phy_device.c-1112-\ndrivers/net/phy/phy_device.c:1113:\terr = mdiobus_register_device(\u0026phydev-\u003emdio);\ndrivers/net/phy/phy_device.c-1114-\tif (err)\n--\ndrivers/net/phy/phy_device.c=3978=static int __init phy_init(void)\n--\ndrivers/net/phy/phy_device.c-3981-\ndrivers/net/phy/phy_device.c:3982:\trc = class_register(\u0026mdio_bus_class);\ndrivers/net/phy/phy_device.c-3983-\tif (rc)\n--\ndrivers/net/phy/phy_device.c-4019-err_class:\ndrivers/net/phy/phy_device.c:4020:\tclass_unregister(\u0026mdio_bus_class);\ndrivers/net/phy/phy_device.c-4021-\n--\ndrivers/net/phy/phy_device.c=4025=static void __exit phy_exit(void)\n--\ndrivers/net/phy/phy_device.c-4033-\tbus_unregister(\u0026mdio_bus_type);\ndrivers/net/phy/phy_device.c:4034:\tclass_unregister(\u0026mdio_bus_class);\ndrivers/net/phy/phy_device.c-4035-}\n--\ndrivers/net/phy/phylib-internal.h=12=extern const struct bus_type mdio_bus_type;\ndrivers/net/phy/phylib-internal.h:13:extern const struct class mdio_bus_class;\ndrivers/net/phy/phylib-internal.h-14-\n--\ndrivers/net/phy/phylib-internal.h=25=void phy_check_downshift(struct phy_device *phydev);\ndrivers/net/phy/phylib-internal.h-26-\ndrivers/net/phy/phylib-internal.h:27:int mdiobus_register_device(struct mdio_device *mdiodev);\ndrivers/net/phy/phylib-internal.h-28-int mdiobus_unregister_device(struct mdio_device *mdiodev);\n--\ndrivers/net/phy/sfp.c=970=static int sfp_i2c_mdiobus_create(struct sfp *sfp)\n--\ndrivers/net/phy/sfp.c-981-\ndrivers/net/phy/sfp.c:982:\tret = mdiobus_register(i2c_mii);\ndrivers/net/phy/sfp.c-983-\tif (ret \u003c 0) {\n"
}

13/2 2026/09/08 14:02 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 47728
							output: 39
							thoughts: 366
						

Thoughts:
**Analyzing the DP83867 PHY Device Creation for Syzkaller Integration**

Okay, let's break this down. My goal is to determine if userspace syzkaller can create or bind a DP83867 PHY device. I need to understand how these devices typically come into existence. I see three primary methods:

1.  **Physical MDIO Bus Scanning:** This is the most common, where the Ethernet MAC driver initializes the MDIO interface and probes connected PHY chips by reading the PHY ID register. This can also happen via Device Tree (`of_mdiobus_register`).
2.  **Fixed PHY:** This involves registering fixed-link PHYs using `PHY_FIXED_ID`.
3.  **ACPI/DT Descriptions:**  This relies on ACPI or Device Tree to describe MDIO devices.

Now the crux of the matter, there isn't a virtual MDIO bus or any user-space device node equivalent to what we see with USB raw gadget, netdevsim, vhost, tun/tap, or loopback in standard QEMU or GCE environments to allow direct probing of the DP83867 PHY driver.

A quick side thought: could USB Ethernet dongles potentially use the DP83867? I have to consider that. But, no. USB Ethernet dongles such as those using the ax88179, r8152, asix, and smsc95xx chipsets, all have internal or standard USB PHYs; none of them use the DP83867. The DP83867 is a discrete RGMII/SGMII Gigabit Ethernet PHY transceiver, typically connected to SoC MACs through RGMII/SGMII and MDIO.

Even if a USB dongle *did* use an external PHY, syzkaller tests via USB emulation don't emulate an MDIO bus with PHY ID 0x2000a231.

So, let's pivot. The question is, does any USB Ethernet driver register a general MDIO bus that probes for the DP83867? I'll need to check the USB Ethernet driver code. Time to `grep` for `mdiobus_register` in the `drivers/net/usb/` directory. That seems like the logical next step to figuring out how to approach this.



14/2 2026/09/08 14:02 tool grepper
0m Args:
{
  "Expression": "mdiobus_register|phy_connect|phy_attach",
  "PathPrefix": "drivers/net/usb/"
}

Results:
{
  "Output": "drivers/net/usb/asix_devices.c=669=static int ax88772_init_mdio(struct usbnet *dev)\n--\ndrivers/net/usb/asix_devices.c-686-\ndrivers/net/usb/asix_devices.c:687:\tret = mdiobus_register(priv-\u003emdio);\ndrivers/net/usb/asix_devices.c-688-\tif (ret) {\n--\ndrivers/net/usb/asix_devices.c=703=static int ax88772_init_phy(struct usbnet *dev)\n--\ndrivers/net/usb/asix_devices.c-722-\ndrivers/net/usb/asix_devices.c:723:\tphy_attached_info(priv-\u003ephydev);\ndrivers/net/usb/asix_devices.c-724-\n--\ndrivers/net/usb/ax88172a.c=61=static int ax88172a_init_mdio(struct usbnet *dev)\n--\ndrivers/net/usb/ax88172a.c-79-\ndrivers/net/usb/ax88172a.c:80:\tret = mdiobus_register(priv-\u003emdio);\ndrivers/net/usb/ax88172a.c-81-\tif (ret) {\n--\ndrivers/net/usb/ax88172a.c=261=static int ax88172a_reset(struct usbnet *dev)\n--\ndrivers/net/usb/ax88172a.c-313-\ndrivers/net/usb/ax88172a.c:314:\tpriv-\u003ephydev = phy_connect(dev-\u003enet, priv-\u003ephy_name,\ndrivers/net/usb/ax88172a.c-315-\t\t\t\t   \u0026ax88172a_adjust_link,\n--\ndrivers/net/usb/lan78xx.c=2091=static int lan78xx_mdio_init(struct lan78xx_net *dev)\n--\ndrivers/net/usb/lan78xx.c-2121-\tnode = of_get_child_by_name(dev-\u003eudev-\u003edev.of_node, \"mdio\");\ndrivers/net/usb/lan78xx.c:2122:\tret = of_mdiobus_register(dev-\u003emdiobus, node);\ndrivers/net/usb/lan78xx.c-2123-\tof_node_put(node);\n--\ndrivers/net/usb/smsc95xx.c=1147=static int smsc95xx_bind(struct usbnet *dev, struct usb_interface *intf)\n--\ndrivers/net/usb/smsc95xx.c-1241-\ndrivers/net/usb/smsc95xx.c:1242:\tret = mdiobus_register(pdata-\u003emdiobus);\ndrivers/net/usb/smsc95xx.c-1243-\tif (ret) {\n--\ndrivers/net/usb/smsc95xx.c-1284-\ndrivers/net/usb/smsc95xx.c:1285:\tret = phy_connect_direct(dev-\u003enet, pdata-\u003ephydev,\ndrivers/net/usb/smsc95xx.c-1286-\t\t\t\t \u0026smsc95xx_handle_link_change,\n--\ndrivers/net/usb/smsc95xx.c-1292-\ndrivers/net/usb/smsc95xx.c:1293:\tphy_attached_info(dev-\u003enet-\u003ephydev);\ndrivers/net/usb/smsc95xx.c-1294-\n"
}

15/2 2026/09/08 14:02 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 49597
							output: 20
							thoughts: 966
						

Thoughts:
**Assessing the Fuzzability of the DP83867 PHY Driver**

Okay, let's break this down. I'm investigating whether we should consider fuzzing the `drivers/net/phy/dp83867.c` driver. The initial thought is that the USB raw gadget could potentially emulate USB Ethernet devices, and since syzkaller uses `/dev/raw-gadget` to fuzz USB drivers, it raises the question: could this mechanism be used to reach and fuzz Ethernet PHY drivers?

To determine this, I need to consult the standard syzkaller triage philosophy. Specifically, I'll pay close attention to sections 2 and 3 regarding `WorthFuzzing` criteria. Section 2, the "NEGATIVE CRITERIA," outlines scenarios where we *shouldn't* fuzz, while section 3, the "POSITIVE CRITERIA," details the cases where fuzzing is warranted.

My immediate concern is whether `drivers/net/phy/dp83867.c` falls under "structurally unreachable hardware".  The DP83867, a Texas Instruments Gigabit PHY, is clearly a physical device.  The code itself, as I see it, binds only to physical MDIO devices with a very specific `phy_id` of `0x2000a231`. In a standard QEMU or GCE x86_64 environment, there's *no* virtual hardware that emulates this PHY ID or, crucially, its specific register layout (like `DP83867_LEDCR2`, `DP83867_CFG2`, etc.).

Furthermore, the code modifications I'm examining - namely, `dp83867_config_init` and `dp83867_led_polarity_set` - are PHY driver callbacks. These are crucial for the PHY's functionality. This means if the hardware isn't emulated or connected, then this code can't possibly be reached.

So, the conclusion I'm leaning toward is that, without very specific hardware configurations that aren't typically present in standard fuzzing environments, this driver is effectively unreachable. I'll need to check for other references to this driver, but based on this initial analysis, it's highly likely that this driver is structurally unreachable for fuzzing purposes.



16/2 2026/09/08 14:03 tool grepper
0m Args:
{
  "Expression": "dp83867"
}

Results:
{
  "Output": "\nFull output is too long, showing 500 out of 1285 lines.\nUse more precise expression if possible.\n\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-4----\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml:5:$id: http://devicetree.org/schemas/net/ti,dp83867.yaml#\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-6-$schema: http://devicetree.org/meta-schemas/core.yaml#\n--\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml=16=description: |\n--\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-27-  Specifications about the Ethernet PHY can be found at:\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml:28:    https://www.ti.com/lit/gpn/dp83867ir\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-29-\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml=30=properties:\n--\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-63-    description: |\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml:64:       Transmitt FIFO depth see dt-bindings/net/ti-dp83867.h for values\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-65-\n--\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-68-    description: |\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml:69:       Receive FIFO depth see dt-bindings/net/ti-dp83867.h for values\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-70-\n--\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-73-    description: |\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml:74:      Muxing option for CLK_OUT pin.  See dt-bindings/net/ti-dp83867.h\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-75-      for applicable values. The CLK_OUT pin can also be disabled by this\n--\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-80-    description: |\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml:81:      RGMII Receive Clock Delay - see dt-bindings/net/ti-dp83867.h\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-82-      for applicable values. Required only if interface type is\n--\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-87-    description: |\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml:88:      RGMII Transmit Clock Delay - see dt-bindings/net/ti-dp83867.h\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-89-      for applicable values. Required only if interface type is\n--\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-99-\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml:100:  ti,dp83867-rxctrl-strap-quirk:\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-101-    type: boolean\n--\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-117-    description: |\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml:118:      Transmitt FIFO depth- see dt-bindings/net/ti-dp83867.h for applicable\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-119-      values.\n--\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml=126=examples:\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-127-  - |\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml:128:    #include \u003cdt-bindings/net/ti-dp83867.h\u003e\nDocumentation/devicetree/bindings/net/ti,dp83867.yaml-129-    mdio0 {\n--\nDocumentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml=244=examples:\n--\nDocumentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml-246-    #include \u003cdt-bindings/soc/ti,sci_pm_domain.h\u003e\nDocumentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml:247:    #include \u003cdt-bindings/net/ti-dp83867.h\u003e\nDocumentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml-248-    #include \u003cdt-bindings/interrupt-controller/irq.h\u003e\n--\narch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi-13-#include \u003cdt-bindings/input/input.h\u003e\narch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi:14:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi-15-\n--\narch/arm/boot/dts/nxp/ls/ls1021a-tqmls1021a-mbls1021a.dts-14-#include \u003cdt-bindings/leds/leds-pca9532.h\u003e\narch/arm/boot/dts/nxp/ls/ls1021a-tqmls1021a-mbls1021a.dts:15:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm/boot/dts/nxp/ls/ls1021a-tqmls1021a-mbls1021a.dts-16-\n--\narch/arm/boot/dts/nxp/ls/ls1021a-tqmls1021a-mbls1021a.dts=348=\tsgmii_phy03: ethernet-phy@3 {\n--\narch/arm/boot/dts/nxp/ls/ls1021a-tqmls1021a-mbls1021a.dts-352-\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\narch/arm/boot/dts/nxp/ls/ls1021a-tqmls1021a-mbls1021a.dts:353:\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm/boot/dts/nxp/ls/ls1021a-tqmls1021a-mbls1021a.dts-354-\t};\n--\narch/arm/boot/dts/rockchip/rk3288-phycore-som.dtsi-7-\narch/arm/boot/dts/rockchip/rk3288-phycore-som.dtsi:8:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm/boot/dts/rockchip/rk3288-phycore-som.dtsi-9-#include \"rk3288.dtsi\"\n--\narch/arm/boot/dts/st/stm32mp15xx-phycore-som.dtsi-12-#include \u003cdt-bindings/mfd/st,stpmic1.h\u003e\narch/arm/boot/dts/st/stm32mp15xx-phycore-som.dtsi:13:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm/boot/dts/st/stm32mp15xx-phycore-som.dtsi-14-#include \"stm32mp15-pinctrl.dtsi\"\n--\narch/arm/boot/dts/ti/keystone/keystone-k2g-ice.dts-9-#include \"keystone-k2g.dtsi\"\narch/arm/boot/dts/ti/keystone/keystone-k2g-ice.dts:10:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm/boot/dts/ti/keystone/keystone-k2g-ice.dts-11-\n--\narch/arm/boot/dts/ti/keystone/keystone-k2g-ice.dts=433=\tethphy0: ethernet-phy@0 {\n--\narch/arm/boot/dts/ti/keystone/keystone-k2g-ice.dts-438-\t\tti,min-output-impedance;\narch/arm/boot/dts/ti/keystone/keystone-k2g-ice.dts:439:\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm/boot/dts/ti/keystone/keystone-k2g-ice.dts-440-\t};\n--\narch/arm/boot/dts/ti/omap/am335x-bonegreen-eco.dts-9-#include \"am335x-bonegreen-common.dtsi\"\narch/arm/boot/dts/ti/omap/am335x-bonegreen-eco.dts:10:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm/boot/dts/ti/omap/am335x-bonegreen-eco.dts-11-\n--\narch/arm/boot/dts/ti/omap/am335x-bonegreen-eco.dts=105=\u0026cpsw_port1 {\narch/arm/boot/dts/ti/omap/am335x-bonegreen-eco.dts-106-\tphy-mode = \"rgmii-id\";\narch/arm/boot/dts/ti/omap/am335x-bonegreen-eco.dts:107:\tphy-handle = \u003c\u0026dp83867_0\u003e;\narch/arm/boot/dts/ti/omap/am335x-bonegreen-eco.dts-108-\tti,dual-emac-pvid = \u003c1\u003e;\n--\narch/arm/boot/dts/ti/omap/am335x-bonegreen-eco.dts=116=\u0026davinci_mdio_sw {\n--\narch/arm/boot/dts/ti/omap/am335x-bonegreen-eco.dts-118-\narch/arm/boot/dts/ti/omap/am335x-bonegreen-eco.dts:119:\tdp83867_0: ethernet-phy@0 {\narch/arm/boot/dts/ti/omap/am335x-bonegreen-eco.dts-120-\t\treg = \u003c0\u003e;\n--\narch/arm/boot/dts/ti/omap/am335x-bonegreen-eco.dts-124-\t\tti,min-output-impedance;\narch/arm/boot/dts/ti/omap/am335x-bonegreen-eco.dts:125:\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm/boot/dts/ti/omap/am335x-bonegreen-eco.dts-126-\t};\n--\narch/arm/boot/dts/ti/omap/dra71-evm.dts-8-#include \"dra72x-mmc-iodelay.dtsi\"\narch/arm/boot/dts/ti/omap/dra71-evm.dts:9:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm/boot/dts/ti/omap/dra71-evm.dts-10-\n--\narch/arm/boot/dts/ti/omap/dra71-evm.dts=231=\u0026cpsw_port1 {\narch/arm/boot/dts/ti/omap/dra71-evm.dts:232:\tphy-handle = \u003c\u0026dp83867_0\u003e;\narch/arm/boot/dts/ti/omap/dra71-evm.dts-233-\tphy-mode = \"rgmii-id\";\n--\narch/arm/boot/dts/ti/omap/dra71-evm.dts=237=\u0026cpsw_port2 {\narch/arm/boot/dts/ti/omap/dra71-evm.dts:238:\tphy-handle = \u003c\u0026dp83867_1\u003e;\narch/arm/boot/dts/ti/omap/dra71-evm.dts-239-\tphy-mode = \"rgmii-id\";\n--\narch/arm/boot/dts/ti/omap/dra71-evm.dts=243=\u0026davinci_mdio_sw {\narch/arm/boot/dts/ti/omap/dra71-evm.dts:244:\tdp83867_0: ethernet-phy@2 {\narch/arm/boot/dts/ti/omap/dra71-evm.dts-245-\t\treg = \u003c2\u003e;\n--\narch/arm/boot/dts/ti/omap/dra71-evm.dts-249-\t\tti,min-output-impedance;\narch/arm/boot/dts/ti/omap/dra71-evm.dts:250:\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm/boot/dts/ti/omap/dra71-evm.dts-251-\t};\narch/arm/boot/dts/ti/omap/dra71-evm.dts-252-\narch/arm/boot/dts/ti/omap/dra71-evm.dts:253:\tdp83867_1: ethernet-phy@3 {\narch/arm/boot/dts/ti/omap/dra71-evm.dts-254-\t\treg = \u003c3\u003e;\n--\narch/arm/boot/dts/ti/omap/dra71-evm.dts-258-\t\tti,min-output-impedance;\narch/arm/boot/dts/ti/omap/dra71-evm.dts:259:\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm/boot/dts/ti/omap/dra71-evm.dts-260-\t};\n--\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts-6-#include \"dra72x-mmc-iodelay.dtsi\"\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts:7:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts-8-\n--\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts=87=\u0026cpsw_port1 {\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts:88:\tphy-handle = \u003c\u0026dp83867_0\u003e;\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts-89-\tphy-mode = \"rgmii-id\";\n--\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts=93=\u0026cpsw_port2 {\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts:94:\tphy-handle = \u003c\u0026dp83867_1\u003e;\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts-95-\tphy-mode = \"rgmii-id\";\n--\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts=99=\u0026davinci_mdio_sw {\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts:100:\tdp83867_0: ethernet-phy@2 {\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts-101-\t\treg = \u003c2\u003e;\n--\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts-107-\t\tinterrupts = \u003c16 IRQ_TYPE_EDGE_FALLING\u003e;\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts:108:\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts-109-\t};\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts-110-\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts:111:\tdp83867_1: ethernet-phy@3 {\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts-112-\t\treg = \u003c3\u003e;\n--\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts-118-\t\tinterrupts = \u003c16 IRQ_TYPE_EDGE_FALLING\u003e;\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts:119:\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm/boot/dts/ti/omap/dra72-evm-revc.dts-120-\t};\n--\narch/arm/boot/dts/ti/omap/dra76-evm.dts-9-#include \"dra76x-mmc-iodelay.dtsi\"\narch/arm/boot/dts/ti/omap/dra76-evm.dts:10:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm/boot/dts/ti/omap/dra76-evm.dts-11-\n--\narch/arm/boot/dts/ti/omap/dra76-evm.dts=455=\u0026cpsw_port1 {\narch/arm/boot/dts/ti/omap/dra76-evm.dts:456:\tphy-handle = \u003c\u0026dp83867_0\u003e;\narch/arm/boot/dts/ti/omap/dra76-evm.dts-457-\tphy-mode = \"rgmii-id\";\n--\narch/arm/boot/dts/ti/omap/dra76-evm.dts=461=\u0026cpsw_port2 {\narch/arm/boot/dts/ti/omap/dra76-evm.dts:462:\tphy-handle = \u003c\u0026dp83867_1\u003e;\narch/arm/boot/dts/ti/omap/dra76-evm.dts-463-\tphy-mode = \"rgmii-id\";\n--\narch/arm/boot/dts/ti/omap/dra76-evm.dts=467=\u0026davinci_mdio_sw {\narch/arm/boot/dts/ti/omap/dra76-evm.dts:468:\tdp83867_0: ethernet-phy@2 {\narch/arm/boot/dts/ti/omap/dra76-evm.dts-469-\t\treg = \u003c2\u003e;\n--\narch/arm/boot/dts/ti/omap/dra76-evm.dts-473-\t\tti,min-output-impedance;\narch/arm/boot/dts/ti/omap/dra76-evm.dts:474:\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm/boot/dts/ti/omap/dra76-evm.dts-475-\t};\narch/arm/boot/dts/ti/omap/dra76-evm.dts-476-\narch/arm/boot/dts/ti/omap/dra76-evm.dts:477:\tdp83867_1: ethernet-phy@3 {\narch/arm/boot/dts/ti/omap/dra76-evm.dts-478-\t\treg = \u003c3\u003e;\n--\narch/arm/boot/dts/ti/omap/dra76-evm.dts-482-\t\tti,min-output-impedance;\narch/arm/boot/dts/ti/omap/dra76-evm.dts:483:\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm/boot/dts/ti/omap/dra76-evm.dts-484-\t};\n--\narch/arm64/boot/dts/freescale/fsl-ls1012a-tqmls1012al-mbls1012al.dts-13-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/fsl-ls1012a-tqmls1012al-mbls1012al.dts:14:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/fsl-ls1012a-tqmls1012al-mbls1012al.dts-15-#include \"fsl-ls1012a-tqmls1012al.dtsi\"\n--\narch/arm64/boot/dts/freescale/fsl-ls1028a-tqmls1028a-mbls1028a.dtsi-10-#include \u003cdt-bindings/gpio/gpio.h\u003e\narch/arm64/boot/dts/freescale/fsl-ls1028a-tqmls1028a-mbls1028a.dtsi:11:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/fsl-ls1028a-tqmls1028a-mbls1028a.dtsi-12-#include \"fsl-ls1028a-tqmls1028a.dtsi\"\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-11-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts:12:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-13-\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts=99=\u0026dpmac17 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts:100:\tphy-handle = \u003c\u0026dp83867_2_3\u003e;\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-101-\tphy-connection-type = \"rgmii-id\";\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts=104=\u0026dpmac18 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts:105:\tphy-handle = \u003c\u0026dp83867_2_4\u003e;\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-106-\tphy-connection-type = \"rgmii-id\";\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts=109=\u0026emdio1 {\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-111-\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts:112:\tdp83867_1_1: ethernet-phy@1 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-113-\t\treg = \u003c1\u003e;\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-116-\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts:117:\tdp83867_1_2: ethernet-phy@2 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-118-\t\treg = \u003c2\u003e;\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-121-\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts:122:\tdp83867_1_3: ethernet-phy@3 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-123-\t\treg = \u003c3\u003e;\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-126-\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts:127:\tdp83867_1_4: ethernet-phy@4 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-128-\t\treg = \u003c4\u003e;\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-131-\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts:132:\tdp83867_1_5: ethernet-phy@5 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-133-\t\treg = \u003c5\u003e;\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-136-\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts:137:\tdp83867_1_6: ethernet-phy@6 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-138-\t\treg = \u003c6\u003e;\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts=143=\u0026emdio2 {\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-145-\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts:146:\tdp83867_2_1: ethernet-phy@1 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-147-\t\treg = \u003c1\u003e;\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-150-\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts:151:\tdp83867_2_2: ethernet-phy@2 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-152-\t\treg = \u003c2\u003e;\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-155-\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts:156:\tdp83867_2_3: ethernet-phy@3 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-157-\t\treg = \u003c3\u003e;\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-162-\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts:163:\tdp83867_2_4: ethernet-phy@4 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a.dts-164-\t\treg = \u003c4\u003e;\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_12_x_x.dtso=11=\u0026dpmac9 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_12_x_x.dtso:12:\tphy-handle = \u003c\u0026dp83867_2_1\u003e;\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_12_x_x.dtso-13-\tphy-connection-type = \"sgmii\";\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_12_x_x.dtso=17=\u0026dpmac10 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_12_x_x.dtso:18:\tphy-handle = \u003c\u0026dp83867_2_2\u003e;\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_12_x_x.dtso-19-\tphy-connection-type = \"sgmii\";\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_11_x.dtso=11=\u0026dpmac12 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_11_x.dtso:12:\tphy-handle = \u003c\u0026dp83867_1_1\u003e;\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_11_x.dtso-13-\tphy-connection-type = \"sgmii\";\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_11_x.dtso=17=\u0026dpmac13 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_11_x.dtso:18:\tphy-handle = \u003c\u0026dp83867_1_5\u003e;\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_11_x.dtso-19-\tphy-connection-type = \"sgmii\";\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_11_x.dtso=23=\u0026dpmac14 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_11_x.dtso:24:\tphy-handle = \u003c\u0026dp83867_1_6\u003e;\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_11_x.dtso-25-\tphy-connection-type = \"sgmii\";\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_11_x.dtso=29=\u0026dpmac16 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_11_x.dtso:30:\tphy-handle = \u003c\u0026dp83867_1_4\u003e;\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_11_x.dtso-31-\tphy-connection-type = \"sgmii\";\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_7_x.dtso=11=\u0026dpmac12 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_7_x.dtso:12:\tphy-handle = \u003c\u0026dp83867_1_1\u003e;\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_7_x.dtso-13-\tphy-connection-type = \"sgmii\";\n--\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_7_x.dtso=27=\u0026dpmac16 {\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_7_x.dtso:28:\tphy-handle = \u003c\u0026dp83867_1_4\u003e;\narch/arm64/boot/dts/freescale/fsl-lx2160a-tqmlx2160a-mblx2160a_x_7_x.dtso-29-\tphy-connection-type = \"sgmii\";\n--\narch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi-6-#include \"imx8mm.dtsi\"\narch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi:7:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi-8-\n--\narch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi-8-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi:9:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mm-venice-gw700x.dtsi-10-\n--\narch/arm64/boot/dts/freescale/imx8mm-venice-gw7902.dts-10-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/imx8mm-venice-gw7902.dts:11:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mm-venice-gw7902.dts-12-#include \u003cdt-bindings/phy/phy-imx8-pcie.h\u003e\n--\narch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts-10-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts:11:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts-12-\n--\narch/arm64/boot/dts/freescale/imx8mp-aristainetos3a-som-v1.dtsi-6-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-aristainetos3a-som-v1.dtsi:7:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-aristainetos3a-som-v1.dtsi-8-#include \u003cdt-bindings/phy/phy-imx8-pcie.h\u003e\n--\narch/arm64/boot/dts/freescale/imx8mp-aristainetos3a-som-v1.dtsi=88=\treg_can2_stby: regulator-can2-stby {\n--\narch/arm64/boot/dts/freescale/imx8mp-aristainetos3a-som-v1.dtsi-98-\narch/arm64/boot/dts/freescale/imx8mp-aristainetos3a-som-v1.dtsi:99:\treg_dp83867_2v5: regulator-enet {\narch/arm64/boot/dts/freescale/imx8mp-aristainetos3a-som-v1.dtsi-100-\t\tcompatible = \"regulator-fixed\";\n--\narch/arm64/boot/dts/freescale/imx8mp-aristainetos3a-som-v1.dtsi=200=\t\tethphy0: eqos-ethernet-phy@0 {\n--\narch/arm64/boot/dts/freescale/imx8mp-aristainetos3a-som-v1.dtsi-206-\t\t\tti,min-output-impedance;\narch/arm64/boot/dts/freescale/imx8mp-aristainetos3a-som-v1.dtsi:207:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx8mp-aristainetos3a-som-v1.dtsi-208-\t\t\tinterrupt-parent = \u003c\u0026gpio4\u003e;\n--\narch/arm64/boot/dts/freescale/imx8mp-aristainetos3a-som-v1.dtsi=291=\t\tethphy1: ethernet-phy@1 {\n--\narch/arm64/boot/dts/freescale/imx8mp-aristainetos3a-som-v1.dtsi-300-\t\t\tti,min-output-impedance;\narch/arm64/boot/dts/freescale/imx8mp-aristainetos3a-som-v1.dtsi:301:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx8mp-aristainetos3a-som-v1.dtsi-302-\t\t\teee-broken-1000t;\n--\narch/arm64/boot/dts/freescale/imx8mp-msc-sm2s.dtsi-8-#include \"imx8mp.dtsi\"\narch/arm64/boot/dts/freescale/imx8mp-msc-sm2s.dtsi:9:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-msc-sm2s.dtsi-10-\n--\narch/arm64/boot/dts/freescale/imx8mp-phycore-fpsc.dtsi-5-\narch/arm64/boot/dts/freescale/imx8mp-phycore-fpsc.dtsi:6:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-phycore-fpsc.dtsi-7-#include \"imx8mp.dtsi\"\n--\narch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi-5-\narch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi:6:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi-7-#include \"imx8mp.dtsi\"\n--\narch/arm64/boot/dts/freescale/imx8mp-toradex-smarc.dtsi-4-#include \u003cdt-bindings/phy/phy-imx8-pcie.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-toradex-smarc.dtsi:5:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-toradex-smarc.dtsi-6-#include \"imx8mp.dtsi\"\n--\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mp-ras314.dts-11-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mp-ras314.dts:12:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mp-ras314.dts-13-#include \u003cdt-bindings/phy/phy-imx8-pcie.h\u003e\n--\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mp-ras314.dts=197=\t\tethphy3: ethernet-phy@3 {\n--\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mp-ras314.dts-210-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mp-ras314.dts:211:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mp-ras314.dts-212-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mp-ras314.dts=293=\t\tethphy0: ethernet-phy@0 {\n--\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mp-ras314.dts-306-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mp-ras314.dts:307:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mp-ras314.dts-308-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts-10-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts:11:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts-12-#include \u003cdt-bindings/phy/phy-imx8-pcie.h\u003e\n--\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts=349=\t\tethphy3: ethernet-phy@3 {\n--\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts-354-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts:355:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts-356-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts=443=\t\tethphy0: ethernet-phy@0 {\n--\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts-448-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts:449:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts-450-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpqs.dtsi-7-\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpqs.dtsi:8:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpqs.dtsi-9-#include \u003cdt-bindings/phy/phy-imx8-pcie.h\u003e\n--\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpqs.dtsi=99=\t\tethphy0: ethernet-phy@0 {\n--\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpqs.dtsi-106-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpqs.dtsi:107:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpqs.dtsi-108-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpqs.dtsi=117=\t\tethphy3: ethernet-phy@3 {\n--\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpqs.dtsi-124-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpqs.dtsi:125:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx8mp-tqma8mpqs.dtsi-126-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx8mp-venice-gw702x.dtsi-8-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-venice-gw702x.dtsi:9:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-venice-gw702x.dtsi-10-\n--\narch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts-11-#include \u003cdt-bindings/phy/phy-imx8-pcie.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts:12:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts-13-\n--\narch/arm64/boot/dts/freescale/imx8mp-verdin-ivy.dtsi-12-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-verdin-ivy.dtsi:13:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-verdin-ivy.dtsi-14-\n--\narch/arm64/boot/dts/freescale/imx8mp-verdin-zinnia.dtsi-11-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-verdin-zinnia.dtsi:12:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mp-verdin-zinnia.dtsi-13-\n--\narch/arm64/boot/dts/freescale/imx8mq-kontron-pitx-imx8m.dts-10-#include \"imx8mq.dtsi\"\narch/arm64/boot/dts/freescale/imx8mq-kontron-pitx-imx8m.dts:11:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8mq-kontron-pitx-imx8m.dts-12-\n--\narch/arm64/boot/dts/freescale/imx8qm-tqma8qm-mba8x.dts-12-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/imx8qm-tqma8qm-mba8x.dts:13:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx8qm-tqma8qm-mba8x.dts-14-#include \u003cdt-bindings/pwm/pwm.h\u003e\n--\narch/arm64/boot/dts/freescale/imx8qm-tqma8qm-mba8x.dts=317=\t\tethphy0: ethernet-phy@0 {\n--\narch/arm64/boot/dts/freescale/imx8qm-tqma8qm-mba8x.dts-324-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx8qm-tqma8qm-mba8x.dts:325:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx8qm-tqma8qm-mba8x.dts-326-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx8qm-tqma8qm-mba8x.dts=350=\t\tethphy3: ethernet-phy@3 {\n--\narch/arm64/boot/dts/freescale/imx8qm-tqma8qm-mba8x.dts-357-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx8qm-tqma8qm-mba8x.dts:358:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx8qm-tqma8qm-mba8x.dts-359-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba91xxca.dts-11-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba91xxca.dts:12:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba91xxca.dts-13-#include \u003cdt-bindings/pwm/pwm.h\u003e\n--\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba91xxca.dts=207=\t\tethphy_eqos: ethernet-phy@0 {\n--\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba91xxca.dts-220-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba91xxca.dts:221:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba91xxca.dts-222-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba91xxca.dts=240=\t\tethphy_fec: ethernet-phy@0 {\n--\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba91xxca.dts-253-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba91xxca.dts:254:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba91xxca.dts-255-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba93xxca.dts-11-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba93xxca.dts:12:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba93xxca.dts-13-#include \u003cdt-bindings/pwm/pwm.h\u003e\n--\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba93xxca.dts=224=\t\tethphy_eqos: ethernet-phy@0 {\n--\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba93xxca.dts-237-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba93xxca.dts:238:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba93xxca.dts-239-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba93xxca.dts=257=\t\tethphy_fec: ethernet-phy@0 {\n--\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba93xxca.dts-270-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba93xxca.dts:271:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx91-tqma9131-mba93xxca.dts-272-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx93-phyboard-nash.dts-11-\narch/arm64/boot/dts/freescale/imx93-phyboard-nash.dts:12:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx93-phyboard-nash.dts-13-#include \"imx93-phycore-som.dtsi\"\n--\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba91xxca.dts-11-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba91xxca.dts:12:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba91xxca.dts-13-#include \u003cdt-bindings/pwm/pwm.h\u003e\n--\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba91xxca.dts=226=\t\tethphy_eqos: ethernet-phy@0 {\n--\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba91xxca.dts-239-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba91xxca.dts:240:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba91xxca.dts-241-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba91xxca.dts=259=\t\tethphy_fec: ethernet-phy@0 {\n--\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba91xxca.dts-272-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba91xxca.dts:273:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba91xxca.dts-274-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts-11-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts:12:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts-13-#include \u003cdt-bindings/pwm/pwm.h\u003e\n--\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts=253=\t\tethphy_eqos: ethernet-phy@0 {\n--\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts-266-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts:267:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts-268-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts=286=\t\tethphy_fec: ethernet-phy@0 {\n--\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts-299-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts:300:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts-301-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla-mini.dts-10-#include \u003cdt-bindings/leds/common.h\u003e\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla-mini.dts:11:#include \u003cdt-bindings/net/ti-dp83867.h\u003e\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla-mini.dts-12-#include \u003cdt-bindings/pwm/pwm.h\u003e\n--\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla-mini.dts=139=\t\tethphy_eqos: ethernet-phy@0 {\n--\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla-mini.dts-152-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla-mini.dts:153:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla-mini.dts-154-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla-mini.dts=172=\t\tethphy_fec: ethernet-phy@0 {\n--\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla-mini.dts-185-\t\t\tti,fifo-depth = \u003cDP83867_PHYCR_FIFO_DEPTH_4_B_NIB\u003e;\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla-mini.dts:186:\t\t\tti,dp83867-rxctrl-strap-quirk;\narch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla-mini.dts-187-\t\t\tti,clk-output-sel = \u003cDP83867_CLK_O_SEL_OFF\u003e;\n--\n\n"
}

17/2 2026/09/08 14:03 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 69921
							output: 113
							thoughts: 406
						

Thoughts:
**My Assessment of the Fuzzing Suitability**

Okay, so I've looked over this patch. It's dealing with the DP83867 Gigabit Ethernet PHY transceiver driver. And after reviewing the code, it's clear this patch specifically deals with preserving and restoring LED polarity across hardware resets. That's a strong indicator that it's embedded hardware-specific.

The crucial point here is that the DP83867 is a physical layer (PHY) component, an actual hardware transceiver. The Device Tree references all point to embedded ARM and ARM64 SoCs – i.MX8, i.MX9, Sitara, LS1028a, the usual suspects. This is not something I'm going to find emulated in a standard QEMU or GCE x86_64 environment, which is what we're targeting for fuzzing.

My triage checklist helps here: we need to consider if the hardware is structurally unreachable, or if there are code paths exclusive to architectures other than the target. The DP83867 clearly falls into the first category – vendor-specific hardware requiring actual physical ASIC/PHY hardware, like those PCIe switches, SmartNICs, or GPUs.

So, *WorthFuzzing* is definitely *false*. The *EnableConfigs* list should be empty, unless we are intentionally testing the driver in an ARM/ARM64 embedded environment. The *FocusSymbols* list will also be empty since we can't practically reach this code. The reasoning needs to be clear and concise. I'll summarize it as: "The patch modifies the Texas Instruments DP83867 Gigabit Ethernet PHY transceiver driver (`drivers/net/phy/dp83867.c`), specifically to preserve and restore LED polarity across hardware resets. This PHY driver requires specific physical PHY hardware (or Device Tree configuration on embedded ARM/ARM64 platforms) that is not emulated in standard virtualized x86_64 fuzzing environments (QEMU/GCE), making the modified code structurally unreachable."

Let's do a quick final check of the results. *WorthFuzzing*: *false*. *EnableConfigs*: []. *FocusSymbols*: []. And the reasoning is exactly what I wrote above.

Time to call `set-results`.



18/2 2026/09/08 14:03 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [],
  "Reasoning": "The patch modifies drivers/net/phy/dp83867.c to preserve LED polarity configuration across hardware resets. The DP83867 PHY driver requires physical Texas Instruments Ethernet PHY hardware (typically used on embedded ARM/SoC boards) not emulated in standard virtualized fuzzing environments (QEMU/GCE on amd64), making the modified code structurally unreachable.",
  "WorthFuzzing": false
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch modifies drivers/net/phy/dp83867.c to preserve LED polarity configuration across hardware resets. The DP83867 PHY driver requires physical Texas Instruments Ethernet PHY hardware (typically used on embedded ARM/SoC boards) not emulated in standard virtualized fuzzing environments (QEMU/GCE on amd64), making the modified code structurally unreachable.",
  "WorthFuzzing": false
}

19/1 2026/09/08 14:03 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)