]> git.baikalelectronics.ru Git - kernel.git/commit
atlantic: Fix statistics logic for production hardware
authorDmitry Bogdanov <dbezrukov@marvell.com>
Mon, 29 Nov 2021 13:28:28 +0000 (05:28 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Nov 2021 14:24:22 +0000 (14:24 +0000)
commit2065f7000893067c06d05b74a5e4e4c46a0b720b
tree78f0f9df6dda567a4ff1fe03109a6394e7e18f11
parent174e8bd32a08679968b0d5dfa3ea165a3c697ffc
atlantic: Fix statistics logic for production hardware

B0 is the main and widespread device revision of atlantic2 HW. In the
current state, driver will incorrectly fetch the statistics for this
revision.

Fixes: e31788b29677b ("net: atlantic: minimal A2 fw_ops")
Signed-off-by: Dmitry Bogdanov <dbezrukov@marvell.com>
Signed-off-by: Sudarsana Reddy Kalluru <skalluru@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_hw.h
drivers/net/ethernet/aquantia/atlantic/aq_nic.c
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c
drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2_utils.h
drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2_utils_fw.c