]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mdio_bus: Add comment to mdiobus_scan() and __mdiobus_register()
authorAndrew Lunn <andrew@lunn.ch>
Wed, 6 Jan 2016 19:11:25 +0000 (20:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Jan 2016 19:31:27 +0000 (14:31 -0500)
commitf89df3f381f1e1247ddccdf178f203c06fddf5ce
tree06ecb444985d5741e979af3f6e8d5794bb372d7d
parentf03bc4ae552f30faa9bbee2d72bd1ee34667011a
mdio_bus: Add comment to mdiobus_scan() and __mdiobus_register()

Make it clear that mdiobus_scan () will only find devices which have a
vendor/product ID in registers 2 and 3. These are typically PHY
devices. Other sort of MDIO devices, such as switches, are not
expected to be found during the scan.

Similarly, __mdiobus_register(), which calls mdiobus_scan() will only
find PHY devices, and other sorts of MDIO devices are expected to be
instantiated from device tree.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio_bus.c