[PATCH ethtool] ethtool: hibmcge: fix wrong register address in pretty print of ethtool -d command

Jijie Shao posted 1 patch 8 months ago
hibmcge.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH ethtool] ethtool: hibmcge: fix wrong register address in pretty print of ethtool -d command
Posted by Jijie Shao 8 months ago
The addresses of mac_addr_h and mac_addr_l are wrong,
they need to be swapped.

Fixes: d89f6ee9c12a ("hibmcge: add support dump registers for hibmcge driver")
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
---
 hibmcge.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hibmcge.c b/hibmcge.c
index 921efd2..ca81bc0 100644
--- a/hibmcge.c
+++ b/hibmcge.c
@@ -36,8 +36,8 @@ static const struct hbg_offset_name_map hbg_spec_maps[] = {
 	{0x0004, "event_req"},
 	{0x0008, "mac_id"},
 	{0x000c, "phy_addr"},
-	{0x0010, "mac_addr_h"},
-	{0x0014, "mac_addr_l"},
+	{0x0010, "mac_addr_l"},
+	{0x0014, "mac_addr_h"},
 	{0x0018, "uc_max_num"},
 	{0x0024, "mdio_freq"},
 	{0x0028, "max_mtu"},
-- 
2.33.0