RE: [RFC net-next 4/5] net: phy: Add support for IEEE standard test modes

2018-05-06 Thread Woojung.Huh
Hi Florian, > Well, the way the code is structure is that if you call that function > with a test mode value that is not part of the standard set, it returns > -EOPNOTSUPP, so if your particular PHY driver wants to "overlay" > standard and non-standard modes, it can by using that hint. > > This

RE: [RFC net-next 4/5] net: phy: Add support for IEEE standard test modes

2018-05-06 Thread Woojung.Huh
Hi Florian, > Well, the way the code is structure is that if you call that function > with a test mode value that is not part of the standard set, it returns > -EOPNOTSUPP, so if your particular PHY driver wants to "overlay" > standard and non-standard modes, it can by using that hint. > > This

Re: [RFC net-next 4/5] net: phy: Add support for IEEE standard test modes

2018-05-01 Thread Florian Fainelli
On 05/01/2018 01:07 PM, woojung@microchip.com wrote: > Hi Florian, > >> Not sure I completely understand your suggestion, do you mean that I >> should break down the body of that function above such that there are >> per-speed lower level functions? Something like the pseudo-code below: >> >>

Re: [RFC net-next 4/5] net: phy: Add support for IEEE standard test modes

2018-05-01 Thread Florian Fainelli
On 05/01/2018 01:07 PM, woojung@microchip.com wrote: > Hi Florian, > >> Not sure I completely understand your suggestion, do you mean that I >> should break down the body of that function above such that there are >> per-speed lower level functions? Something like the pseudo-code below: >> >>

RE: [RFC net-next 4/5] net: phy: Add support for IEEE standard test modes

2018-05-01 Thread Woojung.Huh
Hi Florian, > Not sure I completely understand your suggestion, do you mean that I > should break down the body of that function above such that there are > per-speed lower level functions? Something like the pseudo-code below: > > genphy_set_test() { > switch (mode) { > case

RE: [RFC net-next 4/5] net: phy: Add support for IEEE standard test modes

2018-05-01 Thread Woojung.Huh
Hi Florian, > Not sure I completely understand your suggestion, do you mean that I > should break down the body of that function above such that there are > per-speed lower level functions? Something like the pseudo-code below: > > genphy_set_test() { > switch (mode) { > case

Re: [RFC net-next 4/5] net: phy: Add support for IEEE standard test modes

2018-05-01 Thread Florian Fainelli
On 05/01/2018 10:29 AM, woojung@microchip.com wrote: > Hi Florian, > >> diff --git a/drivers/net/phy/phy-tests.c b/drivers/net/phy/phy-tests.c > ... >> +/* genphy_set_test - Make a PHY enter one of the standard IEEE defined >> + * test modes >> + * @phydev: the PHY device instance >> + *

Re: [RFC net-next 4/5] net: phy: Add support for IEEE standard test modes

2018-05-01 Thread Florian Fainelli
On 05/01/2018 10:29 AM, woojung@microchip.com wrote: > Hi Florian, > >> diff --git a/drivers/net/phy/phy-tests.c b/drivers/net/phy/phy-tests.c > ... >> +/* genphy_set_test - Make a PHY enter one of the standard IEEE defined >> + * test modes >> + * @phydev: the PHY device instance >> + *

RE: [RFC net-next 4/5] net: phy: Add support for IEEE standard test modes

2018-05-01 Thread Woojung.Huh
Hi Florian, > diff --git a/drivers/net/phy/phy-tests.c b/drivers/net/phy/phy-tests.c ... > +/* genphy_set_test - Make a PHY enter one of the standard IEEE defined > + * test modes > + * @phydev: the PHY device instance > + * @test: the desired test mode > + * @data: test specific data (none) > +

RE: [RFC net-next 4/5] net: phy: Add support for IEEE standard test modes

2018-05-01 Thread Woojung.Huh
Hi Florian, > diff --git a/drivers/net/phy/phy-tests.c b/drivers/net/phy/phy-tests.c ... > +/* genphy_set_test - Make a PHY enter one of the standard IEEE defined > + * test modes > + * @phydev: the PHY device instance > + * @test: the desired test mode > + * @data: test specific data (none) > +

Re: [RFC net-next 4/5] net: phy: Add support for IEEE standard test modes

2018-05-01 Thread Florian Fainelli
On 04/30/2018 04:20 PM, Andrew Lunn wrote: >> +/* genphy_set_test - Make a PHY enter one of the standard IEEE defined >> + * test modes >> + * @phydev: the PHY device instance >> + * @test: the desired test mode >> + * @data: test specific data (none) >> + * >> + * This function makes the

Re: [RFC net-next 4/5] net: phy: Add support for IEEE standard test modes

2018-05-01 Thread Florian Fainelli
On 04/30/2018 04:20 PM, Andrew Lunn wrote: >> +/* genphy_set_test - Make a PHY enter one of the standard IEEE defined >> + * test modes >> + * @phydev: the PHY device instance >> + * @test: the desired test mode >> + * @data: test specific data (none) >> + * >> + * This function makes the

Re: [RFC net-next 4/5] net: phy: Add support for IEEE standard test modes

2018-04-30 Thread Andrew Lunn
> +/* genphy_set_test - Make a PHY enter one of the standard IEEE defined > + * test modes > + * @phydev: the PHY device instance > + * @test: the desired test mode > + * @data: test specific data (none) > + * > + * This function makes the designated @phydev enter the desired standard > + *

Re: [RFC net-next 4/5] net: phy: Add support for IEEE standard test modes

2018-04-30 Thread Andrew Lunn
> +/* genphy_set_test - Make a PHY enter one of the standard IEEE defined > + * test modes > + * @phydev: the PHY device instance > + * @test: the desired test mode > + * @data: test specific data (none) > + * > + * This function makes the designated @phydev enter the desired standard > + *