Re: [PATCH net] net: phy: sfp: Handle unimplemented hwmon limits and alarms

2018-09-04 Thread David Miller
From: Andrew Lunn Date: Tue, 4 Sep 2018 04:23:56 +0200 > 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. > >

[PATCH net] net: phy: sfp: Handle unimplemented hwmon limits and alarms

2018-09-03 Thread Andrew Lunn
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