OSDN Git Service

net: mdio: Add helper functions for accessing MDIO devices
authorSean Anderson <sean.anderson@seco.com>
Fri, 22 Oct 2021 15:59:12 +0000 (11:59 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Oct 2021 12:40:33 +0000 (13:40 +0100)
commit0ebecb2644c834d8a69f07c5d44a130835950171
tree4be2a7e816d95f96937064832b4acfafd0192525
parentdb690aecafd1a5ef230d2544a00d4ed2ffa83dea
net: mdio: Add helper functions for accessing MDIO devices

This adds some helpers for accessing non-phy MDIO devices. They are
analogous to phy_(read|write|modify), except that they take an mdio_device
and not a phy_device.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mdio.h