]> git.baikalelectronics.ru Git - kernel.git/commit
phylib: SIOCGMIIREG/SIOCSMIIREG: allow access to all mdio addresses
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 10 Mar 2011 06:52:13 +0000 (06:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2011 22:02:14 +0000 (15:02 -0700)
commita00a042d69967b62b17f67b4617cd2cf34e2f88b
treef1651a8643c90b238b259c01dd91fa56fb9d632c
parent67e04de08bb9d30f866a6f3422c9523bea1c4c31
phylib: SIOCGMIIREG/SIOCSMIIREG: allow access to all mdio addresses

phylib would silently ignore the phy_id argument to these ioctls and
perform the read/write with the active phydev address, whereas most
non-phylib drivers seem to allow access to all mdio addresses
(E.G. pcnet_cs).

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c