]> git.baikalelectronics.ru Git - kernel.git/commit
PHY probe not working properly for ibm_emac (PPC4xx)
authorHynek Petrak <hynek@swac.cz>
Tue, 19 Dec 2006 21:08:49 +0000 (13:08 -0800)
committerJeff Garzik <jeff@garzik.org>
Tue, 26 Dec 2006 21:41:08 +0000 (16:41 -0500)
commit67bc23c2c20a3668555ac78838e54ea0e6085372
treed9ebc1b8ba3946519fdb0083608e6e68ce0d019e
parent481e1fb0410f9f0faa9e18306a73599694d41859
PHY probe not working properly for ibm_emac (PPC4xx)

I have a system with AMCC PowerPC 405EP and PHY Intel LXT971A.  Linux
2.6.18.3 is not able to detect the PHY ID correctly.  The PHY ID
detected is 0, but should be 0x1d.

This is because phy_read() (__emac_mdio_read() resp.) from
drivers/net/ibm_emac/ibm_emac_core.c might return -ETIMEDOUT or
-EREMOTEIO on error.  This is ignored inside the

int mii_phy_probe(struct mii_phy *phy, int address)
from drivers/net/ibm_emac/ibm_emac_phy.c

as the return value is assigned to an u32 variable.

Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/ibm_emac/ibm_emac_phy.c