summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cavium/thunder/nic_reg.h
diff options
context:
space:
mode:
authorDavid Daney <david.daney@cavium.com>2016-08-16 13:30:36 -0700
committerDavid S. Miller <davem@davemloft.net>2016-08-18 21:16:37 -0700
commit1423661fed2c40d6d71b5e2e3aa390f85157f9d5 (patch)
tree8443105714495293e44f4c9daca2eeb87b52f645 /drivers/net/ethernet/cavium/thunder/nic_reg.h
parent039a392733600d35c80d406a98151b2a9a0a74b4 (diff)
downloadop-kernel-dev-1423661fed2c40d6d71b5e2e3aa390f85157f9d5.zip
op-kernel-dev-1423661fed2c40d6d71b5e2e3aa390f85157f9d5.tar.gz
net: thunderx: Fix OOPs with ethtool --register-dump
The ethtool_ops .get_regs function attempts to read the nonexistent register NIC_QSET_SQ_0_7_CNM_CHG, which produces a "bus error" type OOPs. Fix by not attempting to read, and removing the definition of, NIC_QSET_SQ_0_7_CNM_CHG. A zero is written into the register dump to keep the layout unchanged. Signed-off-by: David Daney <david.daney@cavium.com> Cc: <stable@vger.kernel.org> # 4.4.x- Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/thunder/nic_reg.h')
-rw-r--r--drivers/net/ethernet/cavium/thunder/nic_reg.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cavium/thunder/nic_reg.h b/drivers/net/ethernet/cavium/thunder/nic_reg.h
index afb10e3..fab35a5 100644
--- a/drivers/net/ethernet/cavium/thunder/nic_reg.h
+++ b/drivers/net/ethernet/cavium/thunder/nic_reg.h
@@ -170,7 +170,6 @@
#define NIC_QSET_SQ_0_7_DOOR (0x010838)
#define NIC_QSET_SQ_0_7_STATUS (0x010840)
#define NIC_QSET_SQ_0_7_DEBUG (0x010848)
-#define NIC_QSET_SQ_0_7_CNM_CHG (0x010860)
#define NIC_QSET_SQ_0_7_STAT_0_1 (0x010900)
#define NIC_QSET_RBDR_0_1_CFG (0x010C00)
OpenPOWER on IntegriCloud