OSDN Git Service

igc: Fix TDBAL register show incorrect value
authorSasha Neftin <sasha.neftin@intel.com>
Wed, 6 Jan 2021 17:27:04 +0000 (19:27 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 4 Feb 2021 00:32:17 +0000 (16:32 -0800)
Fixed a typo which caused the registers dump function to read the
RDBAL register when printing TDBAL register values.
_reg_dump method has been partially derived from i210 and have
same typo.

Suggested-by: Gal Hammer <ghammer@redhat.com>
Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_dump.c

index 4b9ec7d..495bed4 100644 (file)
@@ -75,7 +75,7 @@ static void igc_regdump(struct igc_hw *hw, struct igc_reg_info *reginfo)
                break;
        case IGC_TDBAL(0):
                for (n = 0; n < 4; n++)
-                       regs[n] = rd32(IGC_RDBAL(n));
+                       regs[n] = rd32(IGC_TDBAL(n));
                break;
        case IGC_TDBAH(0):
                for (n = 0; n < 4; n++)