]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Fix typo in i225 LTR functions
authorSasha Neftin <sasha.neftin@intel.com>
Tue, 2 Nov 2021 07:20:06 +0000 (09:20 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 15 Dec 2021 19:09:29 +0000 (11:09 -0800)
commit31a72313e86a5ed7f2da3311d3b58adfb7c3d4ef
treef8e855b229dd9ad3f7097a84e1f7d8d69bc244bd
parentb762f6d2cd76106668888cf1e370e335592fbcb4
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: 582bbd591f35 ("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>
drivers/net/ethernet/intel/igc/igc_i225.c