Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch '1GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue

Tony Nguyen says:

====================
1GbE Intel Wired LAN Driver Updates 2021-12-21

This series contains updates to igc, igb, igbvf, and fm10k drivers.

Sasha removes unused defines and enum values from igc driver.

Jason Wang removes a variable whose value never changes and, instead,
returns the value directly for igb.

Karen adjusts a reset message from warning to info for igbvf.

Xiang wangx removes a repeated word for fm10k.

* '1GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue:
fm10k: Fix syntax errors in comments
igbvf: Refactor trace
igb: remove never changed variable `ret_val'
igc: Remove obsolete define
igc: Remove obsolete mask
igc: Remove obsolete nvm type
igc: Remove unused phy type
igc: Remove unused _I_PHY_ID define
====================

Link: https://lore.kernel.org/r/20211221180200.3176851-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+3 -16
+1 -1
drivers/net/ethernet/intel/fm10k/fm10k_tlv.c
··· 143 143 * @vlan: location of buffer to store VLAN 144 144 * 145 145 * This function pulls the MAC address back out of the attribute and will 146 - * place it in the array pointed by by mac_addr. It will return success 146 + * place it in the array pointed by mac_addr. It will return success 147 147 * if provided with a valid pointers. 148 148 **/ 149 149 s32 fm10k_tlv_attr_get_mac_vlan(u32 *attr, u8 *mac_addr, u16 *vlan)
+1 -2
drivers/net/ethernet/intel/igb/e1000_i210.c
··· 792 792 **/ 793 793 s32 igb_init_nvm_params_i210(struct e1000_hw *hw) 794 794 { 795 - s32 ret_val = 0; 796 795 struct e1000_nvm_info *nvm = &hw->nvm; 797 796 798 797 nvm->ops.acquire = igb_acquire_nvm_i210; ··· 812 813 nvm->ops.validate = NULL; 813 814 nvm->ops.update = NULL; 814 815 } 815 - return ret_val; 816 + return 0; 816 817 } 817 818 818 819 /**
+1 -1
drivers/net/ethernet/intel/igbvf/netdev.c
··· 1520 1520 1521 1521 /* Allow time for pending master requests to run */ 1522 1522 if (mac->ops.reset_hw(hw)) 1523 - dev_warn(&adapter->pdev->dev, "PF still resetting\n"); 1523 + dev_info(&adapter->pdev->dev, "PF still resetting\n"); 1524 1524 1525 1525 mac->ops.init_hw(hw); 1526 1526
-7
drivers/net/ethernet/intel/igc/igc_defines.h
··· 85 85 86 86 #define IGC_WUFC_EXT_FILTER_MASK GENMASK(31, 8) 87 87 88 - /* Physical Func Reset Done Indication */ 89 - #define IGC_CTRL_EXT_LINK_MODE_MASK 0x00C00000 90 - 91 88 /* Loop limit on how long we wait for auto-negotiation to complete */ 92 89 #define COPPER_LINK_UP_LIMIT 10 93 90 #define PHY_AUTO_NEG_LIMIT 45 ··· 581 584 #define IGC_GEN_POLL_TIMEOUT 1920 582 585 583 586 /* PHY Control Register */ 584 - #define MII_CR_FULL_DUPLEX 0x0100 /* FDX =1, half duplex =0 */ 585 587 #define MII_CR_RESTART_AUTO_NEG 0x0200 /* Restart auto negotiation */ 586 588 #define MII_CR_POWER_DOWN 0x0800 /* Power down */ 587 589 #define MII_CR_AUTO_NEG_EN 0x1000 /* Auto Neg Enable */ ··· 600 604 #define PHY_LP_ABILITY 0x05 /* Link Partner Ability (Base Page) */ 601 605 #define PHY_1000T_CTRL 0x09 /* 1000Base-T Control Reg */ 602 606 #define PHY_1000T_STATUS 0x0A /* 1000Base-T Status Reg */ 603 - 604 - /* Bit definitions for valid PHY IDs. I = Integrated E = External */ 605 - #define I225_I_PHY_ID 0x67C9DC00 606 607 607 608 /* MDI Control */ 608 609 #define IGC_MDIC_DATA_MASK 0x0000FFFF
-3
drivers/net/ethernet/intel/igc/igc_hw.h
··· 55 55 56 56 enum igc_phy_type { 57 57 igc_phy_unknown = 0, 58 - igc_phy_none, 59 58 igc_phy_i225, 60 59 }; 61 60 ··· 67 68 enum igc_nvm_type { 68 69 igc_nvm_unknown = 0, 69 70 igc_nvm_eeprom_spi, 70 - igc_nvm_flash_hw, 71 - igc_nvm_invm, 72 71 }; 73 72 74 73 struct igc_info {
-2
drivers/net/ethernet/intel/igc/igc_i225.c
··· 473 473 474 474 /* NVM Function Pointers */ 475 475 if (igc_get_flash_presence_i225(hw)) { 476 - hw->nvm.type = igc_nvm_flash_hw; 477 476 nvm->ops.read = igc_read_nvm_srrd_i225; 478 477 nvm->ops.write = igc_write_nvm_srwr_i225; 479 478 nvm->ops.validate = igc_validate_nvm_checksum_i225; 480 479 nvm->ops.update = igc_update_nvm_checksum_i225; 481 480 } else { 482 - hw->nvm.type = igc_nvm_invm; 483 481 nvm->ops.read = igc_read_nvm_eerd; 484 482 nvm->ops.write = NULL; 485 483 nvm->ops.validate = NULL;