added better matching descriptive text to debug messages
This commit is contained in:
@@ -63,6 +63,7 @@ int am79c874_init(uint8_t fec_ch, uint8_t phy_addr, uint8_t speed, uint8_t duple
|
|||||||
if (!(settings & MII_AM79C874_CR_RESET))
|
if (!(settings & MII_AM79C874_CR_RESET))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (timeout >= FEC_MII_TIMEOUT)
|
if (timeout >= FEC_MII_TIMEOUT)
|
||||||
{
|
{
|
||||||
dbg("%s: PHY reset failed\r\n", __FUNCTION__);
|
dbg("%s: PHY reset failed\r\n", __FUNCTION__);
|
||||||
@@ -88,7 +89,7 @@ int am79c874_init(uint8_t fec_ch, uint8_t phy_addr, uint8_t speed, uint8_t duple
|
|||||||
|
|
||||||
if (timeout >= FEC_MII_TIMEOUT)
|
if (timeout >= FEC_MII_TIMEOUT)
|
||||||
{
|
{
|
||||||
dbg("%s: PHY Set the default mode\r\n", __FUNCTION__);
|
dbg("%s: Auto-negotiation failed (timeout). Set default mode (100Mbps, full duplex)\r\n", __FUNCTION__);
|
||||||
|
|
||||||
/* Set the default mode (Full duplex, 100 Mbps) */
|
/* Set the default mode (Full duplex, 100 Mbps) */
|
||||||
if (!fec_mii_write(fec_ch, phy_addr, MII_AM79C874_CR, MII_AM79C874_CR_100MB | MII_AM79C874_CR_DPLX))
|
if (!fec_mii_write(fec_ch, phy_addr, MII_AM79C874_CR, MII_AM79C874_CR_100MB | MII_AM79C874_CR_DPLX))
|
||||||
|
|||||||
Reference in New Issue
Block a user