]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell10g: fix temperature sensor on 2110
authorBaruch Siach <baruch@tkos.co.il>
Sun, 26 Apr 2020 06:22:06 +0000 (09:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Apr 2020 18:38:19 +0000 (11:38 -0700)
commite29569f1413e84052065873110315d3802c68012
tree1d2047552654edf622663c0760823dc82b734ccd
parent289efaf92a37063bf57f0928d59b88756a36db5e
net: phy: marvell10g: fix temperature sensor on 2110

Read the temperature sensor register from the correct location for the
88E2110 PHY. There is no enable/disable bit on 2110, so make
mv3310_hwmon_config() run on 88X3310 only.

Fixes: 02d6fb887bb391 ("net: phy: marvell10g: add support for the 88x2110 PHY")
Cc: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell10g.c