diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2018-01-02 10:58:27 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-03 11:00:22 -0500 |
commit | 34dc08e4be208539b7c4aa8154a610e1736705e8 (patch) | |
tree | ceb0598c56a9cfd22404214bc48f42e8cbb01ad7 /include/linux/mdio.h | |
parent | be6e36d916b1f7e6b0aec42d49cb5d5ea9590dff (diff) | |
download | lwn-34dc08e4be208539b7c4aa8154a610e1736705e8.tar.gz lwn-34dc08e4be208539b7c4aa8154a610e1736705e8.zip |
net: mdiobus: add unlocked accessors
Add unlocked versions of the bus accessors, which allows access to the
bus with all the tracing. These accessors validate that the bus mutex
is held, which is a basic requirement for all mii bus accesses.
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mdio.h')
-rw-r--r-- | include/linux/mdio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mdio.h b/include/linux/mdio.h index 268aad47ecd3..2cfffe586885 100644 --- a/include/linux/mdio.h +++ b/include/linux/mdio.h @@ -262,6 +262,9 @@ static inline u16 ethtool_adv_to_mmd_eee_adv_t(u32 adv) return reg; } +int __mdiobus_read(struct mii_bus *bus, int addr, u32 regnum); +int __mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val); + int mdiobus_read(struct mii_bus *bus, int addr, u32 regnum); int mdiobus_read_nested(struct mii_bus *bus, int addr, u32 regnum); int mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val); |