net: dsa: mv88e6xxx: set ethtool regs version
Subsystems (4)
PATCH 1/1 net: dsa: mv88e6xxx: set ethtool regs version
From: Vivien Didelot <[email protected]>
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.
--- drivers/net/dsa/mv88e6xxx/chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dsa/mv88e6xxx/chip.c +1 -1
@@ -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));
Signature · 1 line
2.19.2
Quoted 6 lines · Vivien Didelot
From: Vivien Didelot <[email protected]>
Currently the
ethtool_regsversion 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.
Hi Vivien.
I like this, but it is still not guaranteed to be unique between DSA drivers.
I suppose once we do get a clash, we can add some extra heuristics.
Andrew
Quoted 8 lines · Vivien Didelot
From: Vivien Didelot <[email protected]>
Currently the
ethtool_regsversion 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 <[email protected]>
Signature · 1 line
Florian
From: Vivien Didelot <[email protected]>
Date: Mon, 17 Dec 2018 16:05:21 -0500
Quoted 8 lines
From: Vivien Didelot <[email protected]>
Currently the
ethtool_regsversion 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 <[email protected]>
Applied.