From a1830a63d4ee8a0fd0c8f628e9f6dedee57ed284 Mon Sep 17 00:00:00 2001 From: Jim Ma Date: Thu, 27 Oct 2022 02:10:33 +0800 Subject: [PATCH] igc: Fix typo in i225 LTR functions backport from https://github.com/torvalds/linux/commit/0182d1f3fa640888a2ed7e3f6df2fdb10adee7c8 Signed-off-by: Jim Ma --- igc_i225.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/igc_i225.c b/igc_i225.c index e34ee2b..624236a 100644 --- a/igc_i225.c +++ b/igc_i225.c @@ -643,7 +643,7 @@ s32 igc_set_ltr_i225(struct igc_hw *hw, bool link) ltrv = rd32(IGC_LTRMAXV); if (ltr_max != (ltrv & IGC_LTRMAXV_LTRV_MASK)) { ltrv = IGC_LTRMAXV_LSNP_REQ | ltr_max | - (scale_min << IGC_LTRMAXV_SCALE_SHIFT); + (scale_max << IGC_LTRMAXV_SCALE_SHIFT); wr32(IGC_LTRMAXV, ltrv); } }