]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[realtek] Dump all MII register contents when link status changes
authorMichael Brown <mcb30@ipxe.org>
Mon, 10 Mar 2014 12:22:23 +0000 (12:22 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 10 Mar 2014 12:22:23 +0000 (12:22 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/realtek.c

index 1e2cbdf49ebf1d88c4efabee9c657e16206a53b4..41f4ec23b354c804d4e508964f69952e6bd4c4d8 100644 (file)
@@ -413,6 +413,7 @@ static void realtek_check_link ( struct net_device *netdev ) {
 
        /* Determine link state */
        if ( rtl->have_phy_regs ) {
+               mii_dump ( &rtl->mii );
                phystatus = readb ( rtl->regs + RTL_PHYSTATUS );
                link_up = ( phystatus & RTL_PHYSTATUS_LINKSTS );
                DBGC ( rtl, "REALTEK %p PHY status is %02x (%s%s%s%s%s%s, "