Re: [PATCH v6 4/4] net: phy: realtek: Add LED configuration support for RTL8211E

2019-10-07 Thread Pavel Machek
On Mon 2019-08-19 02:37:57, Andrew Lunn wrote: > > Yes, I believe the integration is neccessary. Using same binding is > > neccessary for that, but not sufficient. For example, we need > > compatible trigger names, too. > > Hi Pavel > > Please could you explain what you mean by compatible

Re: [PATCH v6 4/4] net: phy: realtek: Add LED configuration support for RTL8211E

2019-08-26 Thread Matthias Kaehlcke
On Fri, Aug 23, 2019 at 12:58:09PM -0700, Florian Fainelli wrote: > On 8/16/19 3:39 PM, Doug Anderson wrote: > > Hi, > > > > On Fri, Aug 16, 2019 at 3:12 PM Florian Fainelli > > wrote: > >> > >> On 8/16/19 2:27 PM, Matthias Kaehlcke wrote: > >>> On Fri, Aug 16, 2019 at 10:13:42PM +0200, Pavel

Re: [PATCH v6 4/4] net: phy: realtek: Add LED configuration support for RTL8211E

2019-08-23 Thread Florian Fainelli
On 8/16/19 3:39 PM, Doug Anderson wrote: > Hi, > > On Fri, Aug 16, 2019 at 3:12 PM Florian Fainelli wrote: >> >> On 8/16/19 2:27 PM, Matthias Kaehlcke wrote: >>> On Fri, Aug 16, 2019 at 10:13:42PM +0200, Pavel Machek wrote: On Tue 2019-08-13 12:11:47, Matthias Kaehlcke wrote: > Add a

Re: [PATCH v6 4/4] net: phy: realtek: Add LED configuration support for RTL8211E

2019-08-18 Thread Andrew Lunn
> Yes, I believe the integration is neccessary. Using same binding is > neccessary for that, but not sufficient. For example, we need > compatible trigger names, too. Hi Pavel Please could you explain what you mean by compatible trigger names? > So... I'd really like to see proper integration

Re: [PATCH v6 4/4] net: phy: realtek: Add LED configuration support for RTL8211E

2019-08-17 Thread Pavel Machek
On Fri 2019-08-16 14:27:28, Matthias Kaehlcke wrote: > On Fri, Aug 16, 2019 at 10:13:42PM +0200, Pavel Machek wrote: > > On Tue 2019-08-13 12:11:47, Matthias Kaehlcke wrote: > > > Add a .config_led hook which is called by the PHY core when > > > configuration data for a PHY LED is available. Each

Re: [PATCH v6 4/4] net: phy: realtek: Add LED configuration support for RTL8211E

2019-08-16 Thread Matthias Kaehlcke
On Fri, Aug 16, 2019 at 03:12:47PM -0700, Florian Fainelli wrote: > On 8/16/19 2:27 PM, Matthias Kaehlcke wrote: > > On Fri, Aug 16, 2019 at 10:13:42PM +0200, Pavel Machek wrote: > >> On Tue 2019-08-13 12:11:47, Matthias Kaehlcke wrote: > >>> Add a .config_led hook which is called by the PHY core

Re: [PATCH v6 4/4] net: phy: realtek: Add LED configuration support for RTL8211E

2019-08-16 Thread Doug Anderson
Hi, On Fri, Aug 16, 2019 at 3:12 PM Florian Fainelli wrote: > > On 8/16/19 2:27 PM, Matthias Kaehlcke wrote: > > On Fri, Aug 16, 2019 at 10:13:42PM +0200, Pavel Machek wrote: > >> On Tue 2019-08-13 12:11:47, Matthias Kaehlcke wrote: > >>> Add a .config_led hook which is called by the PHY core

Re: [PATCH v6 4/4] net: phy: realtek: Add LED configuration support for RTL8211E

2019-08-16 Thread Florian Fainelli
On 8/16/19 2:27 PM, Matthias Kaehlcke wrote: > On Fri, Aug 16, 2019 at 10:13:42PM +0200, Pavel Machek wrote: >> On Tue 2019-08-13 12:11:47, Matthias Kaehlcke wrote: >>> Add a .config_led hook which is called by the PHY core when >>> configuration data for a PHY LED is available. Each LED can be

Re: [PATCH v6 4/4] net: phy: realtek: Add LED configuration support for RTL8211E

2019-08-16 Thread Matthias Kaehlcke
On Fri, Aug 16, 2019 at 10:13:42PM +0200, Pavel Machek wrote: > On Tue 2019-08-13 12:11:47, Matthias Kaehlcke wrote: > > Add a .config_led hook which is called by the PHY core when > > configuration data for a PHY LED is available. Each LED can be > > configured to be solid 'off, solid 'on' for

Re: [PATCH v6 4/4] net: phy: realtek: Add LED configuration support for RTL8211E

2019-08-16 Thread Pavel Machek
On Tue 2019-08-13 12:11:47, Matthias Kaehlcke wrote: > Add a .config_led hook which is called by the PHY core when > configuration data for a PHY LED is available. Each LED can be > configured to be solid 'off, solid 'on' for certain (or all) > link speeds or to blink on RX/TX activity. > >

Re: [PATCH v6 4/4] net: phy: realtek: Add LED configuration support for RTL8211E

2019-08-13 Thread Matthias Kaehlcke
On Tue, Aug 13, 2019 at 10:14:11PM +0200, Andrew Lunn wrote: > > +static int rtl8211e_config_led(struct phy_device *phydev, int led, > > + struct phy_led_config *cfg) > > +{ > > + u16 lacr_bits = 0, lcr_bits = 0; > > + int oldpage, ret; > > + > > You should probably

Re: [PATCH v6 4/4] net: phy: realtek: Add LED configuration support for RTL8211E

2019-08-13 Thread Andrew Lunn
> +static int rtl8211e_config_led(struct phy_device *phydev, int led, > +struct phy_led_config *cfg) > +{ > + u16 lacr_bits = 0, lcr_bits = 0; > + int oldpage, ret; > + You should probably check that led is 0 or 1. Otherwise this looks good. Andrew

[PATCH v6 4/4] net: phy: realtek: Add LED configuration support for RTL8211E

2019-08-13 Thread Matthias Kaehlcke
Add a .config_led hook which is called by the PHY core when configuration data for a PHY LED is available. Each LED can be configured to be solid 'off, solid 'on' for certain (or all) link speeds or to blink on RX/TX activity. Signed-off-by: Matthias Kaehlcke --- Changes in v6: - return