]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell: mv88e6390 temperature sensor reading
authorAndrew Lunn <andrew@lunn.ch>
Tue, 9 Jan 2018 21:42:09 +0000 (22:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 20:35:05 +0000 (15:35 -0500)
commit74ce73abf0aef449bfa1b851b32d178b90872136
tree8d93650be9ac109aaaa5e8e6b8a3b7e36f71e760
parent47ee85b6c43254140c1bec062154a7a022749bc4
net: phy: marvell: mv88e6390 temperature sensor reading

The internal PHYs in the mv88e6390 switch have a temperature sensor.
It uses a different register layout to other PHY currently supported.
It also has an errata, in that some reads of the sensor result in bad
values. So a number of reads need to be made, and the average taken.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c