Skip to content

Commit 0182d1f

Browse files
Sasha Neftinanguy11
authored andcommitted
igc: Fix typo in i225 LTR functions
The LTR maximum value was incorrectly written using the scale from the LTR minimum value. This would cause incorrect values to be sent, in cases where the initial calculation lead to different min/max scales. Fixes: 707abf0 ("igc: Add initial LTR support") Suggested-by: Dima Ruinskiy <dima.ruinskiy@intel.com> Signed-off-by: Sasha Neftin <sasha.neftin@intel.com> Tested-by: Nechama Kraus <nechamax.kraus@linux.intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
1 parent b6d335a commit 0182d1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/ethernet/intel/igc/igc_i225.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ s32 igc_set_ltr_i225(struct igc_hw *hw, bool link)
636636
ltrv = rd32(IGC_LTRMAXV);
637637
if (ltr_max != (ltrv & IGC_LTRMAXV_LTRV_MASK)) {
638638
ltrv = IGC_LTRMAXV_LSNP_REQ | ltr_max |
639-
(scale_min << IGC_LTRMAXV_SCALE_SHIFT);
639+
(scale_max << IGC_LTRMAXV_SCALE_SHIFT);
640640
wr32(IGC_LTRMAXV, ltrv);
641641
}
642642
}

0 commit comments

Comments
 (0)