projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: phy: mdio_device: Reset device only when necessary
[linux-2.6-block.git]
/
drivers
/
net
/
phy
/
phy_device.c
diff --git
a/drivers/net/phy/phy_device.c
b/drivers/net/phy/phy_device.c
index 400fb09d9cd6b103900faf17ee90a228f5319cab..d8e9335d415ca5a28ee0098d006164e7b8b015ad 100644
(file)
--- a/
drivers/net/phy/phy_device.c
+++ b/
drivers/net/phy/phy_device.c
@@
-654,6
+654,7
@@
struct phy_device *phy_device_create(struct mii_bus *bus, int addr, u32 phy_id,
mdiodev->flags = MDIO_DEVICE_FLAG_PHY;
mdiodev->device_free = phy_mdio_device_free;
mdiodev->device_remove = phy_mdio_device_remove;
+ mdiodev->reset_state = -1;
dev->speed = SPEED_UNKNOWN;
dev->duplex = DUPLEX_UNKNOWN;