net: macb: explicitly pass phy_adr to mdio read and write
authorJosef Holzmayr <holzmayr@rsi-elektrotechnik.de>
Wed, 2 Oct 2019 19:22:51 +0000 (21:22 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 9 Dec 2019 15:47:42 +0000 (09:47 -0600)
commit0d3044c210c7a7078c4150bfc67927c25ef0d958
treef0b3994434e8e3be8a2ff12753ec13a963a9de31
parent27c3f70f3b50b05051792ef97a7ee13b6a2ed40b
net: macb: explicitly pass phy_adr to mdio read and write

To support accessing arbitrary addresses the mii/mdio bus it is
necessary that the macb_mdio_read and macb_mdio_write functions
do not implicitly use the address of the connected phy.

The function signature is extended according to the Linux kernel
equivalent.

Signed-off-by: Josef Holzmayr <holzmayr@rsi-elektrotechnik.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/macb.c