Re: Reporting SFP presence status

2021-01-04 Thread Martin Hundebøll
Hi Andrew, On 22/12/2020 15.22, Andrew Lunn wrote: You're right; a notification isn't what I need. But a way to query the current state of the module would be nice, i.e. using ethtool. What do you mean by state? ethtool -m gives you some state information. ENODEV gives you an idea that there is

Re: Reporting SFP presence status

2020-12-22 Thread Andrew Lunn
On Tue, Dec 22, 2020 at 07:28:10AM +0100, Martin Hundebøll wrote: > Hi Andrew, > > On 21/12/2020 16.22, Andrew Lunn wrote: > > On Mon, Dec 21, 2020 at 11:37:55AM +0100, Martin Hundebøll wrote: > > > Hi Andrew, > > > > > > I've browsed the code in drivers/net/phy, but haven't found a place where >

Re: Reporting SFP presence status

2020-12-21 Thread Martin Hundebøll
Hi Andrew, On 21/12/2020 16.22, Andrew Lunn wrote: On Mon, Dec 21, 2020 at 11:37:55AM +0100, Martin Hundebøll wrote: Hi Andrew, I've browsed the code in drivers/net/phy, but haven't found a place where the SFP module status/change is reported to user-space. Is there a "standard" way to report

Re: Reporting SFP presence status

2020-12-21 Thread Andrew Lunn
On Mon, Dec 21, 2020 at 11:37:55AM +0100, Martin Hundebøll wrote: > Hi Andrew, > > I've browsed the code in drivers/net/phy, but haven't found a place where > the SFP module status/change is reported to user-space. Is there a > "standard" way to report insert/remove events for SFP modules, or shou

Reporting SFP presence status

2020-12-21 Thread Martin Hundebøll
Hi Andrew, I've browsed the code in drivers/net/phy, but haven't found a place where the SFP module status/change is reported to user-space. Is there a "standard" way to report insert/remove events for SFP modules, or should we just add a custom sysfs attribute to our driver? Thanks, Martin