|
@@ -3402,24 +3402,23 @@ static s32 e1000_get_cfg_done_ich8lan(struct e1000_hw *hw)
|
|
**/
|
|
**/
|
|
static void e1000_clear_hw_cntrs_ich8lan(struct e1000_hw *hw)
|
|
static void e1000_clear_hw_cntrs_ich8lan(struct e1000_hw *hw)
|
|
{
|
|
{
|
|
- u32 temp;
|
|
|
|
u16 phy_data;
|
|
u16 phy_data;
|
|
|
|
|
|
e1000e_clear_hw_cntrs_base(hw);
|
|
e1000e_clear_hw_cntrs_base(hw);
|
|
|
|
|
|
- temp = er32(ALGNERRC);
|
|
|
|
- temp = er32(RXERRC);
|
|
|
|
- temp = er32(TNCRS);
|
|
|
|
- temp = er32(CEXTERR);
|
|
|
|
- temp = er32(TSCTC);
|
|
|
|
- temp = er32(TSCTFC);
|
|
|
|
|
|
+ er32(ALGNERRC);
|
|
|
|
+ er32(RXERRC);
|
|
|
|
+ er32(TNCRS);
|
|
|
|
+ er32(CEXTERR);
|
|
|
|
+ er32(TSCTC);
|
|
|
|
+ er32(TSCTFC);
|
|
|
|
|
|
- temp = er32(MGTPRC);
|
|
|
|
- temp = er32(MGTPDC);
|
|
|
|
- temp = er32(MGTPTC);
|
|
|
|
|
|
+ er32(MGTPRC);
|
|
|
|
+ er32(MGTPDC);
|
|
|
|
+ er32(MGTPTC);
|
|
|
|
|
|
- temp = er32(IAC);
|
|
|
|
- temp = er32(ICRXOC);
|
|
|
|
|
|
+ er32(IAC);
|
|
|
|
+ er32(ICRXOC);
|
|
|
|
|
|
/* Clear PHY statistics registers */
|
|
/* Clear PHY statistics registers */
|
|
if ((hw->phy.type == e1000_phy_82578) ||
|
|
if ((hw->phy.type == e1000_phy_82578) ||
|