]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitc3e302edca2457bbd0c958c445a7538fbf6a6ac8
tree1d2047552654edf622663c0760823dc82b734ccd
parent8738c85c72b3108c9b9a369a39868ba5f8e10ae0
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: 62d01535474b61 ("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