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)
commitfee2d546414d74052c68e864e3fdbd0e8c692974
tree8d93650be9ac109aaaa5e8e6b8a3b7e36f71e760
parent0c959a2e862f659fc74c35696da21355fe11e9e2
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