]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Merge branch 'dsa-hwmon'
authorDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2017 19:42:52 +0000 (14:42 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2017 19:42:52 +0000 (14:42 -0500)
commit9a549c1e35b0a363c3b46b9a08009252c5bc32c3
tree967b905290303ecf4280089f82fe018ce8b081fe
parent319554f284dda9f2737d09df82ba3610bd8ddea3
parentcf1a56a4cf196a2922e66e9a8e0bf80d324c5548
Merge branch 'dsa-hwmon'

Andrew Lunn says:

====================
net: dsa: Move temperature sensor code into PHY.

Marvell Ethernet switches contain a temperature sensor. There appears
to be one sensor, which is shared by each of the internal PHYs. Each
PHY has independent registers to read this sensor, and to set a limit
for when an alarm should be raised.

Some Marvell discrete PHY also have the same sensor and registers.
Moving the HWMON code from DSA into the PHY makes the sensor available
in discrete PHYs, and removes the layering violation, the switch
driver poking around in PHY registers.

While moving the code into the PHY driver, it has been re-written to
use the new HWMON APIs.

v2:

Better Cover note explaining one sensor, but multiple independent
registers

Simply error checking.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>