• Hirofumi Ogawa's avatar
    [PATCH] 8139too: more useful debug info for tx_timeout · 4ee76fad
    Hirofumi Ogawa authored
    Hi,
    
    I think this patch is useful for looking whether it's the real driver
    bug or other bug.
    
    What do you think of this? If ok, please apply.
    --
    OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
    
    
    
    [PATCH] 8139too: more useful debug info for tx_timeout
    
    	/* disable Tx ASAP, if not already */
    	tmp8 = RTL_R8 (ChipCmd);
    	if (tmp8 & CmdTxEnb)
    		RTL_W8 (ChipCmd, CmdRxEnb);
    
    The above will clear the Tx Descs. So, this prints the debugging info
    before rtl8139_tx_timeout() does it. And IntrStatus etc. also prints
    anytime for the debug.
    4ee76fad
8139too.c 69.1 KB