diff options
author | Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> | 2025-04-18 16:58:00 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-04-24 13:19:51 +0200 |
commit | bef4f1156b74721b7d111114538659031119b6f2 (patch) | |
tree | 2584955f01d0d1cd01afd2f6c40a97793c3fa21b /fs/nfsd/nfs4state.c | |
parent | b0e8cb1e1604874a1baea1d208e38a88f2b5b079 (diff) |
net: phy: marvell-88q2xxx: Enable temperature sensor for mv88q211x
The temperature sensor enabled for mv88q222x devices also functions for
mv88q211x based devices. Unify the two devices probe functions to enable
the sensors for all devices supported by this driver.
The same oddity as for mv88q222x devices exists, the PHY link must be up
for a correct temperature reading to be reported.
# cat /sys/class/hwmon/hwmon9/temp1_input
-75000
# ifconfig end5 up
# cat /sys/class/hwmon/hwmon9/temp1_input
59000
Worth noting is that while the temperature register offsets and layout
are the same between mv88q211x and mv88q222x devices their names in the
datasheets are different. This change keeps the mv88q222x names for the
mv88q211x support.
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Dimitri Fedrau <dima.fedrau@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250418145800.2420751-1-niklas.soderlund+renesas@ragnatech.se
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
0 files changed, 0 insertions, 0 deletions