mdiobus_scan(9)

mdiobus_scan9

Scan a bus for mdio devices.

Usage

struct phy_device * mdiobus_scan(struct mii_bus * bus, int addr);

Arguments

bus

mii_bus to scan

addr

address on bus to scan

Overview

This function scans the MDIO bus, looking for devices which can be identified using a vendor/product ID in registers 2 and 3. Not all MDIO devices have such registers, but PHY devices typically do. Hence this function assumes anything found is a PHY, or can be treated as a PHY. Other MDIO devices, such as switches, will probably not be found during the scan.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.