]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: reset only targeted phy
authorJérôme Pouiller <jezz@sysmic.org>
Thu, 3 Dec 2015 09:02:35 +0000 (10:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 20:26:13 +0000 (15:26 -0500)
commit5b9fe61fc0084509ccd383f6d72cae22a5d31eea
tree32f7b797da77ecb96c17ab5b7fee48cbbd562ff1
parentd5347fa491e0e3f41f32f6d9de3283e63cb16e8f
net: phy: reset only targeted phy

It is possible to address another chip on same MDIO bus. The case is
correctly handled for media advertising. It is taken into account
only if mii_data->phy_id == phydev->addr. However, this condition
was missing for reset case.

Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c