aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/82571.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/e1000e/82571.c')
-rw-r--r--drivers/net/e1000e/82571.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/drivers/net/e1000e/82571.c b/drivers/net/e1000e/82571.c
index 407637f6c331..680b7c703062 100644
--- a/drivers/net/e1000e/82571.c
+++ b/drivers/net/e1000e/82571.c
@@ -309,7 +309,7 @@ static s32 e1000_init_mac_params_82571(struct e1000_adapter *adapter)
309 * indicates that the bootagent or EFI code has 309 * indicates that the bootagent or EFI code has
310 * improperly left this bit enabled 310 * improperly left this bit enabled
311 */ 311 */
312 hw_dbg(hw, "Please update your 82571 Bootagent\n"); 312 e_dbg("Please update your 82571 Bootagent\n");
313 } 313 }
314 ew32(SWSM, swsm & ~E1000_SWSM_SMBI); 314 ew32(SWSM, swsm & ~E1000_SWSM_SMBI);
315 } 315 }
@@ -483,7 +483,7 @@ static s32 e1000_get_hw_semaphore_82571(struct e1000_hw *hw)
483 } 483 }
484 484
485 if (i == sw_timeout) { 485 if (i == sw_timeout) {
486 hw_dbg(hw, "Driver can't access device - SMBI bit is set.\n"); 486 e_dbg("Driver can't access device - SMBI bit is set.\n");
487 hw->dev_spec.e82571.smb_counter++; 487 hw->dev_spec.e82571.smb_counter++;
488 } 488 }
489 /* Get the FW semaphore. */ 489 /* Get the FW semaphore. */
@@ -501,7 +501,7 @@ static s32 e1000_get_hw_semaphore_82571(struct e1000_hw *hw)
501 if (i == fw_timeout) { 501 if (i == fw_timeout) {
502 /* Release semaphores */ 502 /* Release semaphores */
503 e1000_put_hw_semaphore_82571(hw); 503 e1000_put_hw_semaphore_82571(hw);
504 hw_dbg(hw, "Driver can't access the NVM\n"); 504 e_dbg("Driver can't access the NVM\n");
505 return -E1000_ERR_NVM; 505 return -E1000_ERR_NVM;
506 } 506 }
507 507
@@ -708,7 +708,7 @@ static s32 e1000_write_nvm_eewr_82571(struct e1000_hw *hw, u16 offset,
708 */ 708 */
709 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || 709 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) ||
710 (words == 0)) { 710 (words == 0)) {
711 hw_dbg(hw, "nvm parameter(s) out of bounds\n"); 711 e_dbg("nvm parameter(s) out of bounds\n");
712 return -E1000_ERR_NVM; 712 return -E1000_ERR_NVM;
713 } 713 }
714 714
@@ -749,7 +749,7 @@ static s32 e1000_get_cfg_done_82571(struct e1000_hw *hw)
749 timeout--; 749 timeout--;
750 } 750 }
751 if (!timeout) { 751 if (!timeout) {
752 hw_dbg(hw, "MNG configuration cycle has not completed.\n"); 752 e_dbg("MNG configuration cycle has not completed.\n");
753 return -E1000_ERR_RESET; 753 return -E1000_ERR_RESET;
754 } 754 }
755 755
@@ -848,9 +848,9 @@ static s32 e1000_reset_hw_82571(struct e1000_hw *hw)
848 */ 848 */
849 ret_val = e1000e_disable_pcie_master(hw); 849 ret_val = e1000e_disable_pcie_master(hw);
850 if (ret_val) 850 if (ret_val)
851 hw_dbg(hw, "PCI-E Master disable polling has failed.\n"); 851 e_dbg("PCI-E Master disable polling has failed.\n");
852 852
853 hw_dbg(hw, "Masking off all interrupts\n"); 853 e_dbg("Masking off all interrupts\n");
854 ew32(IMC, 0xffffffff); 854 ew32(IMC, 0xffffffff);
855 855
856 ew32(RCTL, 0); 856 ew32(RCTL, 0);
@@ -889,7 +889,7 @@ static s32 e1000_reset_hw_82571(struct e1000_hw *hw)
889 889
890 ctrl = er32(CTRL); 890 ctrl = er32(CTRL);
891 891
892 hw_dbg(hw, "Issuing a global reset to MAC\n"); 892 e_dbg("Issuing a global reset to MAC\n");
893 ew32(CTRL, ctrl | E1000_CTRL_RST); 893 ew32(CTRL, ctrl | E1000_CTRL_RST);
894 894
895 if (hw->nvm.type == e1000_nvm_flash_hw) { 895 if (hw->nvm.type == e1000_nvm_flash_hw) {
@@ -955,12 +955,12 @@ static s32 e1000_init_hw_82571(struct e1000_hw *hw)
955 /* Initialize identification LED */ 955 /* Initialize identification LED */
956 ret_val = e1000e_id_led_init(hw); 956 ret_val = e1000e_id_led_init(hw);
957 if (ret_val) { 957 if (ret_val) {
958 hw_dbg(hw, "Error initializing identification LED\n"); 958 e_dbg("Error initializing identification LED\n");
959 return ret_val; 959 return ret_val;
960 } 960 }
961 961
962 /* Disabling VLAN filtering */ 962 /* Disabling VLAN filtering */
963 hw_dbg(hw, "Initializing the IEEE VLAN\n"); 963 e_dbg("Initializing the IEEE VLAN\n");
964 e1000e_clear_vfta(hw); 964 e1000e_clear_vfta(hw);
965 965
966 /* Setup the receive address. */ 966 /* Setup the receive address. */
@@ -974,7 +974,7 @@ static s32 e1000_init_hw_82571(struct e1000_hw *hw)
974 e1000e_init_rx_addrs(hw, rar_count); 974 e1000e_init_rx_addrs(hw, rar_count);
975 975
976 /* Zero out the Multicast HASH table */ 976 /* Zero out the Multicast HASH table */
977 hw_dbg(hw, "Zeroing the MTA\n"); 977 e_dbg("Zeroing the MTA\n");
978 for (i = 0; i < mac->mta_reg_count; i++) 978 for (i = 0; i < mac->mta_reg_count; i++)
979 E1000_WRITE_REG_ARRAY(hw, E1000_MTA, i, 0); 979 E1000_WRITE_REG_ARRAY(hw, E1000_MTA, i, 0);
980 980
@@ -1383,7 +1383,7 @@ static s32 e1000_check_for_serdes_link_82571(struct e1000_hw *hw)
1383 */ 1383 */
1384 mac->serdes_link_state = 1384 mac->serdes_link_state =
1385 e1000_serdes_link_autoneg_progress; 1385 e1000_serdes_link_autoneg_progress;
1386 hw_dbg(hw, "AN_UP -> AN_PROG\n"); 1386 e_dbg("AN_UP -> AN_PROG\n");
1387 } 1387 }
1388 break; 1388 break;
1389 1389
@@ -1401,7 +1401,7 @@ static s32 e1000_check_for_serdes_link_82571(struct e1000_hw *hw)
1401 (ctrl & ~E1000_CTRL_SLU)); 1401 (ctrl & ~E1000_CTRL_SLU));
1402 mac->serdes_link_state = 1402 mac->serdes_link_state =
1403 e1000_serdes_link_autoneg_progress; 1403 e1000_serdes_link_autoneg_progress;
1404 hw_dbg(hw, "FORCED_UP -> AN_PROG\n"); 1404 e_dbg("FORCED_UP -> AN_PROG\n");
1405 } 1405 }
1406 break; 1406 break;
1407 1407
@@ -1415,7 +1415,7 @@ static s32 e1000_check_for_serdes_link_82571(struct e1000_hw *hw)
1415 if (status & E1000_STATUS_LU) { 1415 if (status & E1000_STATUS_LU) {
1416 mac->serdes_link_state = 1416 mac->serdes_link_state =
1417 e1000_serdes_link_autoneg_complete; 1417 e1000_serdes_link_autoneg_complete;
1418 hw_dbg(hw, "AN_PROG -> AN_UP\n"); 1418 e_dbg("AN_PROG -> AN_UP\n");
1419 } else { 1419 } else {
1420 /* 1420 /*
1421 * Disable autoneg, force link up and 1421 * Disable autoneg, force link up and
@@ -1430,12 +1430,12 @@ static s32 e1000_check_for_serdes_link_82571(struct e1000_hw *hw)
1430 ret_val = 1430 ret_val =
1431 e1000e_config_fc_after_link_up(hw); 1431 e1000e_config_fc_after_link_up(hw);
1432 if (ret_val) { 1432 if (ret_val) {
1433 hw_dbg(hw, "Error config flow control\n"); 1433 e_dbg("Error config flow control\n");
1434 break; 1434 break;
1435 } 1435 }
1436 mac->serdes_link_state = 1436 mac->serdes_link_state =
1437 e1000_serdes_link_forced_up; 1437 e1000_serdes_link_forced_up;
1438 hw_dbg(hw, "AN_PROG -> FORCED_UP\n"); 1438 e_dbg("AN_PROG -> FORCED_UP\n");
1439 } 1439 }
1440 mac->serdes_has_link = true; 1440 mac->serdes_has_link = true;
1441 break; 1441 break;
@@ -1450,14 +1450,14 @@ static s32 e1000_check_for_serdes_link_82571(struct e1000_hw *hw)
1450 (ctrl & ~E1000_CTRL_SLU)); 1450 (ctrl & ~E1000_CTRL_SLU));
1451 mac->serdes_link_state = 1451 mac->serdes_link_state =
1452 e1000_serdes_link_autoneg_progress; 1452 e1000_serdes_link_autoneg_progress;
1453 hw_dbg(hw, "DOWN -> AN_PROG\n"); 1453 e_dbg("DOWN -> AN_PROG\n");
1454 break; 1454 break;
1455 } 1455 }
1456 } else { 1456 } else {
1457 if (!(rxcw & E1000_RXCW_SYNCH)) { 1457 if (!(rxcw & E1000_RXCW_SYNCH)) {
1458 mac->serdes_has_link = false; 1458 mac->serdes_has_link = false;
1459 mac->serdes_link_state = e1000_serdes_link_down; 1459 mac->serdes_link_state = e1000_serdes_link_down;
1460 hw_dbg(hw, "ANYSTATE -> DOWN\n"); 1460 e_dbg("ANYSTATE -> DOWN\n");
1461 } else { 1461 } else {
1462 /* 1462 /*
1463 * We have sync, and can tolerate one 1463 * We have sync, and can tolerate one
@@ -1469,7 +1469,7 @@ static s32 e1000_check_for_serdes_link_82571(struct e1000_hw *hw)
1469 if (rxcw & E1000_RXCW_IV) { 1469 if (rxcw & E1000_RXCW_IV) {
1470 mac->serdes_link_state = e1000_serdes_link_down; 1470 mac->serdes_link_state = e1000_serdes_link_down;
1471 mac->serdes_has_link = false; 1471 mac->serdes_has_link = false;
1472 hw_dbg(hw, "ANYSTATE -> DOWN\n"); 1472 e_dbg("ANYSTATE -> DOWN\n");
1473 } 1473 }
1474 } 1474 }
1475 } 1475 }
@@ -1491,7 +1491,7 @@ static s32 e1000_valid_led_default_82571(struct e1000_hw *hw, u16 *data)
1491 1491
1492 ret_val = e1000_read_nvm(hw, NVM_ID_LED_SETTINGS, 1, data); 1492 ret_val = e1000_read_nvm(hw, NVM_ID_LED_SETTINGS, 1, data);
1493 if (ret_val) { 1493 if (ret_val) {
1494 hw_dbg(hw, "NVM Read Error\n"); 1494 e_dbg("NVM Read Error\n");
1495 return ret_val; 1495 return ret_val;
1496 } 1496 }
1497 1497