summaryrefslogtreecommitdiff
path: root/drivers/platform/surface/aggregator/ssh_parser.c
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2025-04-29 01:59:03 +0300
committerDavid S. Miller <davem@davemloft.net>2025-04-30 15:03:21 +0300
commit02e8be5a032cae0f4ca33c6053c44d83cf4acc93 (patch)
tree121b712f7a1c5df498b5ce218f4feae838dcf442 /drivers/platform/surface/aggregator/ssh_parser.c
parent6b87bd94f34370bbf1dfa59352bed8efab5bf419 (diff)
downloadlinux-02e8be5a032cae0f4ca33c6053c44d83cf4acc93.tar.xz
bnxt_en: Fix ethtool -d byte order for 32-bit values
For version 1 register dump that includes the PCIe stats, the existing code incorrectly assumes that all PCIe stats are 64-bit values. Fix it by using an array containing the starting and ending index of the 32-bit values. The loop in bnxt_get_regs() will use the array to do proper endian swap for the 32-bit values. Fixes: b5d600b027eb ("bnxt_en: Add support for 'ethtool -d'") Reviewed-by: Shruti Parab <shruti.parab@broadcom.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_parser.c')
0 files changed, 0 insertions, 0 deletions