Re: [PATCH] net: phy: at803x: Add support to control PHY LEDs

2016-03-21 Thread Andrew Lunn
On Mon, Mar 21, 2016 at 06:36:50PM +0100, Vishal Thanki wrote: > Hi, > > On Thu, Mar 17, 2016 at 07:07:12PM +0100, Vishal Thanki wrote: > > > > > > They might not be on/off controllable individually, but you can often > > > set them to show Packet RX, Packet TX, Link, speed, etc, in a > > > reaso

Re: [PATCH] net: phy: at803x: Add support to control PHY LEDs

2016-03-21 Thread Vishal Thanki
Hi, On Thu, Mar 17, 2016 at 07:07:12PM +0100, Vishal Thanki wrote: > > > > They might not be on/off controllable individually, but you can often > > set them to show Packet RX, Packet TX, Link, speed, etc, in a > > reasonably flexible way. So you could have LED triggers mapping to > > these funct

Re: [PATCH] net: phy: at803x: Add support to control PHY LEDs

2016-03-19 Thread Florian Fainelli
On 17/03/16 07:50, Andrew Lunn wrote: > On Thu, Mar 17, 2016 at 02:59:07PM +0100, Vishal Thanki wrote: >> The LEDs can be turned on and off by a sysfs interface >> now. Write 0 to "led_enable" file to turn off the LEDs >> and write 1 to turn on. The support is experimental >> and can be enabled by

Re: [PATCH] net: phy: at803x: Add support to control PHY LEDs

2016-03-19 Thread Vishal Thanki
On Thu, Mar 17, 2016 at 5:59 PM, Florian Fainelli wrote: > On 17/03/16 07:50, Andrew Lunn wrote: >> On Thu, Mar 17, 2016 at 02:59:07PM +0100, Vishal Thanki wrote: >>> The LEDs can be turned on and off by a sysfs interface >>> now. Write 0 to "led_enable" file to turn off the LEDs >>> and write 1 t

Re: [PATCH] net: phy: at803x: Add support to control PHY LEDs

2016-03-19 Thread Vishal Thanki
> > They might not be on/off controllable individually, but you can often > set them to show Packet RX, Packet TX, Link, speed, etc, in a > reasonably flexible way. So you could have LED triggers mapping to > these functionalities. The user can then pick the trigger for the LED. > > Actually, the

Re: [PATCH] net: phy: at803x: Add support to control PHY LEDs

2016-03-19 Thread Andrew Lunn
> I agree with the idea of making a generic callback in phy_driver so > that other PHYs > can use it. However I think these LEDs are tightly coupled with PHYs and it > would not make much sense to expose them via LED subsystem as they > cannot be controlled individually IMHO. They might not be on/

[PATCH] net: phy: at803x: Add support to control PHY LEDs

2016-03-19 Thread Vishal Thanki
The LEDs can be turned on and off by a sysfs interface now. Write 0 to "led_enable" file to turn off the LEDs and write 1 to turn on. The support is experimental and can be enabled by kernel configuration option. Signed-off-by: Vishal Thanki --- drivers/net/phy/Kconfig | 7 + drivers/net/p

Re: [PATCH] net: phy: at803x: Add support to control PHY LEDs

2016-03-19 Thread Andrew Lunn
On Thu, Mar 17, 2016 at 02:59:07PM +0100, Vishal Thanki wrote: > The LEDs can be turned on and off by a sysfs interface > now. Write 0 to "led_enable" file to turn off the LEDs > and write 1 to turn on. The support is experimental > and can be enabled by kernel configuration option. > > Signed-off