sfc: Add hwmon driver for boards using SFC9000-family controllers
authorBen Hutchings <bhutchings@solarflare.com>
Fri, 6 Jan 2012 20:25:39 +0000 (20:25 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Fri, 27 Jan 2012 00:10:53 +0000 (00:10 +0000)
commit55c5e0f85dc550f03dc8a0b0097da6af3b4865c5
treeb6f2087958e641be791136e79912f69656391225
parent1646a6f352a6f70fcca828589ed04797aa09d494
sfc: Add hwmon driver for boards using SFC9000-family controllers

The SFC9000-family controllers have firmware to manage all board
peripherals including temperature, heat sink continuity and voltage
sensors.  The firmware reports sensor alarms, which we log, and
will shut down the board if necessary.

Some users may want to monitor their boards more closely, so add an
hwmon driver that exposes all sensors reported by the firmware.  Move
efx_mcdi_sensor_event() into the new file so it can share the array of
sensor labels with the hwmon driver.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/Kconfig
drivers/net/ethernet/sfc/Makefile
drivers/net/ethernet/sfc/mcdi.c
drivers/net/ethernet/sfc/mcdi.h
drivers/net/ethernet/sfc/mcdi_mon.c [new file with mode: 0644]
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/siena.c