diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2021-01-18 18:06:55 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-19 23:02:20 +0300 |
commit | 8eed01b5ca9c1deff329ad44f08e2041ca14842c (patch) | |
tree | 0c3c6818170fe02e215e09217cf0e0ebca070be7 /include/linux | |
parent | 7e238de8283acd32c26c2bc2a50672d0ea862ff7 (diff) | |
download | linux-8eed01b5ca9c1deff329ad44f08e2041ca14842c.tar.xz |
mdio-bitbang: Export mdiobb_{read,write}()
Export mdiobb_read() and mdiobb_write(), so Ethernet controller drivers
can call them from their MDIO read/write wrappers.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mdio-bitbang.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mdio-bitbang.h b/include/linux/mdio-bitbang.h index 5d71e8a8500f..aca4dc037b70 100644 --- a/include/linux/mdio-bitbang.h +++ b/include/linux/mdio-bitbang.h @@ -35,6 +35,9 @@ struct mdiobb_ctrl { const struct mdiobb_ops *ops; }; +int mdiobb_read(struct mii_bus *bus, int phy, int reg); +int mdiobb_write(struct mii_bus *bus, int phy, int reg, u16 val); + /* The returned bus is not yet registered with the phy layer. */ struct mii_bus *alloc_mdio_bitbang(struct mdiobb_ctrl *ctrl); |