diff mbox

[net-next] ixgbe: Remember to write ixfi changes after modifying

Message ID 20150608224218.10685.94998.stgit@dcs-desk.jf.intel.com
State Superseded
Headers show

Commit Message

Skidmore, Donald C June 8, 2015, 10:42 p.m. UTC
This patch corrects a bug in ixgbe_setup_ixfi_x550em where we were
reading and modifying IXGBE_KRM_LINK_CTRL_1 but forgot to write the
results back.

Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
---
 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Skidmore, Donald C June 8, 2015, 10:39 p.m. UTC | #1
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces@lists.osuosl.org] On
> Behalf Of Don Skidmore
> Sent: Monday, June 08, 2015 3:42 PM
> To: intel-wired-lan@lists.osuosl.org
> Subject: [Intel-wired-lan] [net-next PATCH] ixgbe: Remember to write ixfi
> changes after modifying
> 
> This patch corrects a bug in ixgbe_setup_ixfi_x550em where we were
> reading and modifying IXGBE_KRM_LINK_CTRL_1 but forgot to write the
> results back.
> 
> Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
> ---
>  drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
> b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
> index dc9cdb6..57c40fd 100644
> --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
> +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
> @@ -795,7 +795,7 @@ static s32 ixgbe_setup_ixfi_x550em(struct ixgbe_hw
> *hw, ixgbe_link_speed *speed)
>  	}
> 
>  	status = ixgbe_write_iosf_sb_reg_x550(hw,
> -				IXGBE_KRM_RX_TRN_LINKUP_CTRL(hw-
> >bus.lan_id),
> +				IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id),
>  				IXGBE_SB_IOSF_TARGET_KR_PHY, reg_val);
>  	if (status)
>  		return status;
> 
> _______________________________________________
> Intel-wired-lan mailing list
> Intel-wired-lan@lists.osuosl.org
> http://lists.osuosl.org/mailman/listinfo/intel-wired-lan


Ignore this resend it is the same patch already in your tree.  I fat-fingered enter while editing my stg mail line.

Sorry,
-Don
diff mbox

Patch

diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
index dc9cdb6..57c40fd 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
@@ -795,7 +795,7 @@  static s32 ixgbe_setup_ixfi_x550em(struct ixgbe_hw *hw, ixgbe_link_speed *speed)
 	}
 
 	status = ixgbe_write_iosf_sb_reg_x550(hw,
-				IXGBE_KRM_RX_TRN_LINKUP_CTRL(hw->bus.lan_id),
+				IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id),
 				IXGBE_SB_IOSF_TARGET_KR_PHY, reg_val);
 	if (status)
 		return status;