1GbE Intel Wired LAN Driver Updates 2022-05-10
Subsystems (3)
Tony Nguyen
maintainerThis series contains updates to igc driver only.
Sasha cleans up the code by removing an unused function and removing an enum for PHY type as there is only one PHY. The return type for igc_check_downshift() is changed to void as it always returns success.
The following are changes since commit ecd17a87eb78b5bd5ca6d1aa20c39f2bc3591337:
x25: remove redundant pointer dev
and are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue 1GbE
Sasha Neftin (3):
igc: Remove igc_set_spd_dplx method
igc: Remove unused phy_type enum
igc: Change type of the 'igc_check_downshift' method
drivers/net/ethernet/intel/igc/igc.h | 1 - drivers/net/ethernet/intel/igc/igc_base.c | 2 - drivers/net/ethernet/intel/igc/igc_hw.h | 7 ---- drivers/net/ethernet/intel/igc/igc_main.c | 50 ----------------------- drivers/net/ethernet/intel/igc/igc_phy.c | 16 ++------ drivers/net/ethernet/intel/igc/igc_phy.h | 2 +- 6 files changed, 4 insertions(+), 74 deletions(-)
Signature · 1 line
2.35.1
Tony Nguyen
maintainerPATCH 1/3 igc: Remove igc_set_spd_dplx method
From: Sasha Neftin <[email protected]>
igc_set_spd_dplx method is not used. This patch comes to tidy up the driver code.
--- drivers/net/ethernet/intel/igc/igc.h | 1 - drivers/net/ethernet/intel/igc/igc_main.c | 50 ----------------------- 2 files changed, 51 deletions(-)
drivers/net/ethernet/intel/igc/igc.h +0 -1
@@ -264,7 +264,6 @@ int igc_reinit_queues(struct igc_adapter *adapter);void igc_write_rss_indir_tbl (struct igc_adapter *adapter);bool igc_has_link (struct igc_adapter *adapter);void igc_reset (struct igc_adapter *adapter); -int igc_set_spd_dplx (struct igc_adapter *adapter,u32 spd,u8 dplx);void igc_update_stats (struct igc_adapter *adapter);void igc_disable_rx_ring (struct igc_ring *ring);void igc_enable_rx_ring (struct igc_ring *ring);
drivers/net/ethernet/intel/igc/igc_main.c +0 -50
56 lines not on this page · raw message
Signature · 1 line
2.35.1
Tony Nguyen
maintainerPATCH 2/3 igc: Remove unused phy_type enum
In reply to Tony NguyenFrom: Sasha Neftin <[email protected]>
Complete to commit 8e153faf5827 ("igc: Remove unused phy type") i225 parts have only one PHY. There is no point to use phy_type enum. Clean up the code accordingly, and get rid of the unused enum lines.
--- drivers/net/ethernet/intel/igc/igc_base.c | 2 -- drivers/net/ethernet/intel/igc/igc_hw.h | 7 ------- drivers/net/ethernet/intel/igc/igc_phy.c | 12 +++--------- 3 files changed, 3 insertions(+), 18 deletions(-)
drivers/net/ethernet/intel/igc/igc_base.c +0 -2
@@ -182,8 +182,6 @@ static s32 igc_init_phy_params_base(struct igc_hw *hw)igc_check_for_copper_link (hw); - phy->type = igc_phy_i225; - out:return ret_val; }
drivers/net/ethernet/intel/igc/igc_hw.h +0 -7
@@ -53,11 +53,6 @@ enum igc_mac_type {igc_num_macs /* List is 1-based, so subtract 1 for true count. */ }; -enum igc_phy_type { - igc_phy_unknown =0 , - igc_phy_i225, -}; -enum igc_media_type { igc_media_type_unknown =0 , igc_media_type_copper =1 ,
@@ -138,8 +133,6 @@ struct igc_nvm_info {struct igc_phy_info {struct igc_phy_operations ops; -enum igc_phy_type type; -u32 addr;u32 id;u32 reset_delay_us;/* in usec */
drivers/net/ethernet/intel/igc/igc_phy.c +3 -9
@@ -148,17 +148,11 @@ void igc_power_down_phy_copper(struct igc_hw *hw)s32 igc_check_downshift (struct igc_hw *hw) {struct igc_phy_info *phy = &hw->phy; -s32 ret_val; -switch (phy->type) { -case igc_phy_i225: -default : -/* speed downshift not supported */ - phy->speed_downgraded = false; - ret_val =0 ; - } +/* speed downshift not supported */ + phy->speed_downgraded = false; -return ret_val; +return 0 ; }/**
Signature · 1 line
2.35.1
Tony Nguyen
maintainerPATCH 3/3 igc: Change type of the 'igc_check_downshift' method
In reply to Tony NguyenFrom: Sasha Neftin <[email protected]>
The 'igc_check_downshift' method always returns 0; there is no need for a return value so change the type of this method to void.
--- drivers/net/ethernet/intel/igc/igc_phy.c | 6 +----- drivers/net/ethernet/intel/igc/igc_phy.h | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-)
drivers/net/ethernet/intel/igc/igc_phy.c +1 -5
@@ -141,18 +141,14 @@ void igc_power_down_phy_copper(struct igc_hw *hw)* igc_check_downshift - Checks whether a downshift in speed occurred * @hw: pointer to the HW structure * -* Success returns 0, Failure returns 1 -* * A downshift is detected by querying the PHY link health. */ -s32 igc_check_downshift (struct igc_hw *hw) +void igc_check_downshift (struct igc_hw *hw) {struct igc_phy_info *phy = &hw->phy;/* speed downshift not supported */ phy->speed_downgraded = false; - -return 0 ; }/**
drivers/net/ethernet/intel/igc/igc_phy.h +1 -1
@@ -11,7 +11,7 @@ s32 igc_phy_hw_reset(struct igc_hw *hw);s32 igc_get_phy_id (struct igc_hw *hw);s32 igc_phy_has_link (struct igc_hw *hw,u32 iterations,u32 usec_interval,bool *success); -s32 igc_check_downshift (struct igc_hw *hw); +void igc_check_downshift (struct igc_hw *hw);s32 igc_setup_copper_link (struct igc_hw *hw);void igc_power_up_phy_copper (struct igc_hw *hw);void igc_power_down_phy_copper (struct igc_hw *hw);
Signature · 1 line
2.35.1
This series was applied to netdev/net-next.git (master) by Tony Nguyen <[email protected]>:
Hello:
This series was applied to netdev/net-next.git (master) by Tony Nguyen <[email protected]>:
Quoted 6 lines · On Tue, 10 May 2022 14:06:53 -0700 you wrote:
This series contains updates to igc driver only.
Sasha cleans up the code by removing an unused function and removing an enum for PHY type as there is only one PHY. The return type for
igc_check_downshift()is changed to void as it always returns success.
Quoted 6 lines
The following are changes since commit
ecd17a87eb78b5bd5ca6d1aa20c39f2bc3591337:
x25: remove redundant pointer dev
and are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue1GbE[...]
Here is the summary with links:
- [net-next,1/3] igc: Remove igc_set_spd_dplx method
https://git.kernel.org/netdev/net-next/c/d098538ed4e8 - [net-next,2/3] igc: Remove unused phy_type enum https://git.kernel.org/netdev/net-next/c/7241069f7a07 - [net-next,3/3] igc: Change type of the 'igc_check_downshift' method https://git.kernel.org/netdev/net-next/c/95073d08154a
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html