Thread (14 messages) flat view 14 messages, 4 authors, 2018-12-23

Re: [PATCH V2] net: phy: tja11xx: Add TJA11xx PHY driver

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2018-12-15 17:31:57

Le 12/15/18 à 9:01 AM, Andrew Lunn a écrit :
quoted
+static struct tja11xx_phy_stats tja11xx_hw_stats[] = {
+	{ "phy_symbol_error_count", 20, 0, 0xffff },
+	{ "phy_overtemp_error", 21, 1, BIT(1) },
+	{ "phy_undervolt_error", 21, 3, BIT(3) },
+	{ "phy_polarity_detect", 25, 6, BIT(6) },
+	{ "phy_open_detect", 25, 7, BIT(7) },
+	{ "phy_short_detect", 25, 8, BIT(8) },
Hi Marek

You have a number of one bit counters here, which is pretty unusual.
The names also don't really suggest they are counters.

Florian, Heiner, do we want to allow this?
Would it make sense to register HWMON attributes for "overtemp",
"polarity", "undervolt"? The open/short detect sounds like something we
should add once we finally get to the cable diagnostics support within
the netlink version of ethtool.
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help