Andrew Lunn
0cea0e1148
net: phy: sfp: hwmon: Fix scaling of RX power
...
The RX power read from the SFP uses units of 0.1uW. This must be
scaled to units of uW for HWMON. This requires a divide by 10, not the
current 100.
With this change in place, sensors(1) and ethtool -m agree:
sff2-isa-0000
Adapter: ISA adapter
in0: +3.23 V
temp1: +33.1 C
power1: 270.00 uW
power2: 200.00 uW
curr1: +0.01 A
Laser output power : 0.2743 mW / -5.62 dBm
Receiver signal average optical power : 0.2014 mW / -6.96 dBm
Reported-by: chris.healy@zii.aero
Signed-off-by: Andrew Lunn <andrew@lunn.ch >
Fixes: 1323061a01
("net: phy: sfp: Add HWMON support for module sensors")
Signed-off-by: David S. Miller <davem@davemloft.net >
2019-07-21 11:51:50 -07:00
..
2019-04-15 17:19:54 -07:00
2019-02-25 14:16:22 -08:00
2019-05-24 13:39:34 -07:00
2019-02-25 14:16:22 -08:00
2019-04-18 17:42:54 -07:00
2019-06-09 13:24:17 -07:00
2019-04-15 17:19:54 -07:00
2019-04-15 17:19:54 -07:00
2019-05-26 21:56:41 -07:00
2019-04-15 17:19:54 -07:00
2019-03-21 13:41:26 -07:00
2019-03-21 13:41:26 -07:00
2019-06-09 20:05:19 -07:00
2019-04-15 17:19:54 -07:00
2019-03-03 21:47:57 -08:00
2019-04-15 17:19:54 -07:00
2019-04-15 17:19:54 -07:00
2017-11-02 11:10:55 +01:00
2019-04-15 17:19:54 -07:00
2019-04-15 17:19:54 -07:00
2019-04-15 17:19:54 -07:00
2019-05-31 10:49:43 -07:00
2019-04-15 17:19:54 -07:00
2019-05-04 00:47:55 -04:00
2019-04-15 17:19:54 -07:00
2019-04-15 17:19:54 -07:00
2019-06-17 20:20:36 -07:00
2019-05-23 09:19:21 -07:00
2019-06-17 20:20:36 -07:00
2019-05-29 14:25:10 -07:00
2019-05-02 22:14:21 -04:00
2019-04-18 17:42:54 -07:00
2019-04-18 17:42:54 -07:00
2019-01-22 20:53:08 -08:00
2019-03-27 14:27:30 -07:00
2019-01-22 20:58:40 -08:00
2019-01-22 20:53:08 -08:00
2017-11-02 11:10:55 +01:00
2019-01-22 20:59:18 -08:00
2019-01-22 20:59:18 -08:00
2019-01-22 20:58:40 -08:00
2019-01-22 20:57:03 -08:00
2019-01-22 20:53:08 -08:00
2019-01-22 20:53:08 -08:00
2019-01-22 20:58:40 -08:00
2018-05-16 14:20:36 -04:00
2019-01-22 20:53:08 -08:00
2019-01-22 20:59:18 -08:00
2019-05-13 09:12:19 -07:00
2019-01-22 20:53:08 -08:00
2019-02-27 12:52:20 -08:00
2019-01-22 20:59:18 -08:00
2019-01-22 20:59:18 -08:00
2019-01-22 20:58:40 -08:00
2019-01-22 20:59:18 -08:00
2019-01-22 20:53:08 -08:00
2019-01-22 20:53:08 -08:00
2019-04-15 17:19:54 -07:00
2019-04-29 23:17:21 -04:00
2018-11-11 09:36:56 -08:00
2019-04-15 17:19:54 -07:00
2019-04-23 10:47:58 -07:00
2019-04-15 17:19:54 -07:00
2019-05-29 22:02:18 -07:00
2019-07-12 15:26:29 -07:00
2019-01-22 20:53:08 -08:00
2019-05-21 10:50:45 +02:00
2019-05-22 17:46:28 -07:00
2019-07-08 20:10:34 -07:00
2019-06-15 18:10:30 -07:00
2019-04-15 17:19:54 -07:00
2019-05-13 09:10:39 -07:00
2019-04-15 17:19:54 -07:00
2019-05-31 12:37:46 -07:00
2019-07-21 11:51:50 -07:00
2019-02-08 15:11:25 -08:00
2019-04-15 17:19:54 -07:00
2019-04-23 10:44:44 -07:00
2019-04-15 17:19:54 -07:00
2019-02-24 22:28:15 -08:00
2017-11-02 11:10:55 +01:00
2019-03-03 21:47:57 -08:00
2019-04-15 17:19:54 -07:00
2019-04-23 10:47:58 -07:00
2019-02-20 00:34:07 -08:00