Andrew Lunn
a33710bdb6
net: phy: sfp: Handle unimplemented hwmon limits and alarms
...
Not all SFPs implement the registers containing sensor limits and
alarms. Luckily, there is a bit indicating if they are implemented or
not. Add checking for this bit, when deciding if the hwmon attributes
should be visible.
Fixes: 1323061a018a ("net: phy: sfp: Add HWMON support for module sensors")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-09-04 12:22:41 -07:00
..
2017-12-01 15:42:21 -05:00
2018-03-01 21:23:34 -05:00
2018-04-19 16:11:10 -04:00
2018-01-08 14:20:21 -05:00
2018-08-07 15:48:38 -07:00
2017-12-01 15:42:21 -05:00
2016-01-07 14:31:27 -05:00
2018-05-23 15:27:01 -04:00
2018-05-26 19:46:15 -04:00
2018-05-23 15:27:01 -04:00
2018-06-05 09:43:09 -04:00
2017-12-01 15:42:21 -05:00
2018-03-01 21:23:35 -05:00
2017-12-01 15:42:21 -05:00
2018-07-03 11:38:07 +09:00
2017-11-02 11:10:55 +01:00
2018-08-11 11:28:34 -07:00
2017-12-01 15:42:21 -05:00
2018-06-10 12:38:03 -07:00
2018-02-14 15:33:43 -05:00
2016-01-07 14:31:27 -05:00
2018-06-24 16:41:58 +09:00
2017-12-01 15:42:21 -05:00
2018-03-23 13:19:49 -04:00
2018-07-21 19:26:54 -07:00
2017-12-01 15:42:21 -05:00
2018-05-15 16:41:15 -04:00
2018-04-04 11:24:54 -04:00
2018-07-27 13:45:14 -07:00
2018-06-05 08:50:16 -04:00
2017-12-27 11:06:50 -05:00
2017-02-09 17:10:23 -05:00
2018-01-11 13:56:24 -05:00
2018-04-19 15:59:10 -04:00
2018-04-20 10:33:26 -04:00
2017-11-02 11:10:55 +01:00
2016-03-16 19:55:37 -04:00
2016-03-14 15:27:22 -04:00
2018-06-12 15:23:55 -07:00
2016-07-16 21:32:58 -07:00
2017-08-06 20:55:28 -07:00
2017-08-06 20:55:28 -07:00
2016-01-07 14:31:26 -05:00
2018-05-16 14:20:36 -04:00
2018-08-02 14:36:49 -07:00
2018-06-26 23:24:07 +09:00
2018-03-07 12:39:59 -05:00
2017-09-05 14:42:52 -07:00
2016-03-14 15:27:22 -04:00
2018-01-08 14:30:28 -05:00
2016-03-14 15:27:22 -04:00
2017-12-18 15:09:42 -05:00
2017-05-16 11:41:08 -04:00
2017-12-18 13:24:56 -05:00
2018-05-21 16:01:54 -04:00
2018-05-10 14:16:36 -04:00
2018-04-21 16:32:48 -04:00
2018-07-30 09:42:32 -07:00
2017-12-01 15:42:21 -05:00
2018-07-24 14:41:08 -07:00
2018-06-12 16:19:22 -07:00
2018-03-04 18:11:54 -05:00
2018-03-04 18:11:54 -05:00
2018-07-25 13:41:22 -07:00
2018-08-09 11:08:19 -07:00
2017-12-01 15:42:21 -05:00
2018-07-18 13:43:38 +09:00
2017-12-01 15:42:21 -05:00
2018-07-11 23:11:34 -07:00
2018-09-04 12:22:41 -07:00
2017-08-06 20:55:29 -07:00
2018-04-27 20:18:55 -04:00
2018-03-26 12:07:49 -04:00
2017-12-01 15:42:21 -05:00
2016-06-27 10:40:57 -04:00
2017-11-02 11:10:55 +01:00
2018-03-01 21:23:34 -05:00
2017-12-01 15:42:21 -05:00
2018-07-04 11:30:02 +09:00
2018-06-28 16:12:06 +09:00