]> git.baikalelectronics.ru Git - kernel.git/commit
netdev/phy: Use mdiobus_read() so that proper locks are taken.
authorDavid Daney <david.daney@cavium.com>
Fri, 30 Sep 2011 11:51:22 +0000 (11:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Sep 2011 22:54:08 +0000 (18:54 -0400)
commit1ad87513f54378e91c6a12bf7d3363f4f414f142
treea4bb44b76d6a96aa735b17e1375f4dfc0375ccc0
parenta7c284e016a387cca4c15f626fbd5029f3d6851d
netdev/phy: Use mdiobus_read() so that proper locks are taken.

Accesses to the mdio busses must be done with the mdio_lock to ensure
proper operation.  Conveniently we have the helper function
mdiobus_read() to do that for us.  Lets use it in get_phy_id() instead
of accessing the bus without the lock held.

Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c