Oleksij Rempel c184cf94e7 ethtool: netlink: do not return SQI value if link is down
Do not attach SQI value if link is down. "SQI values are only valid if
link-up condition is present" per OpenAlliance specification of
100Base-T1 Interoperability Test suite [1]. The same rule would apply
for other link types.

[1] https://opensig.org/automotive-ethernet-specifications/#

Fixes: 806602191592 ("ethtool: provide UAPI for PHY Signal Quality Index (SQI)")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Woojung Huh <woojung.huh@microchip.com>
Link: https://patch.msgid.link/20240709061943.729381-1-o.rempel@pengutronix.de
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-07-11 11:19:07 +02:00
..
2024-05-29 09:25:15 -07:00
2024-06-28 14:32:02 -04:00
2024-07-09 11:24:54 -07:00
2024-06-20 11:21:53 +02:00
2024-05-16 09:47:45 +01:00
2024-06-28 09:32:33 -07:00
2024-05-08 10:35:09 +01:00
2024-01-31 16:41:16 -08:00