From: Vivien Didelot <vivien.dide...@savoirfairelinux.com>

Currently the ethtool_regs version is set to 0 for all DSA drivers.

Use this field to store the chip ID to simplify the pretty dump of
any interfaces registered by the "dsa" driver.

Signed-off-by: Vivien Didelot <vivien.dide...@gmail.com>
---
 drivers/net/dsa/mv88e6xxx/chip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c
index b39e29feefa1..26fb14a7117d 100644
--- a/drivers/net/dsa/mv88e6xxx/chip.c
+++ b/drivers/net/dsa/mv88e6xxx/chip.c
@@ -1125,7 +1125,7 @@ static void mv88e6xxx_get_regs(struct dsa_switch *ds, int 
port,
        u16 *p = _p;
        int i;
 
-       regs->version = 0;
+       regs->version = chip->info->prod_num;
 
        memset(p, 0xff, 32 * sizeof(u16));
 
-- 
2.19.2

Reply via email to