]> 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)
commit40d26685ca72e4ea19dd3f31df7a7980c5a34ed3
treef8e855b229dd9ad3f7097a84e1f7d8d69bc244bd
parent00fa71445dd94038dafb8602fa9a1c6e905f98a5
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: cee48cfdf91b ("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