mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-28 20:58:22 +00:00
Add support for MDIO busses
Marvell Ethernet PHYs can contain a temperature sensor, which the kernel exports as an HWMON device. The PHY is on an MDIO bus. Add support for this bus types to libsensors. The sensor is then displayed by sensors(1): socaipsbus02100000ethernet02188000mdioswitch0mdio01-mdio-1 Adapter: MDIO adapter temp1: +54.0°C (crit = +100.0°C) Signed-off-by: Andrew Lunn <andrew@lunn.ch>
This commit is contained in:
1 parent
0d5ccf640d
commit
0880db23b9
5 files changed
+17
-2
No files matched your search
@@ -367,6 +367,8 @@ const char *sensors_get_adapter_name(const sensors_bus_id *bus)
|
||||
HID buses have a name nor where to find it. */
|
||||
case SENSORS_BUS_TYPE_HID:
|
||||
return "HID adapter";
|
||||
case SENSORS_BUS_TYPE_MDIO:
|
||||
return "MDIO adapter";
|
||||
}
|
||||
|
||||
/* bus types with several instances */
|
||||
|
||||
Reference in new issue
Block a user