Re: [PATCH/RFC v2 net-next 1/4] phylib: Add phy_set_max_speed helper

2015-09-11 Thread Sergei Shtylyov
Hello. On 9/11/2015 5:01 AM, Simon Horman wrote: Add a helper to allow ethernet drivers to limit the speed of a phy (that they are attached to). This mainly involves factoring out the business-end of of_set_phy_supported() and exporting a new symbol. This code seems to be open coded in severa

Re: [PATCH/RFC v2 net-next 1/4] phylib: Add phy_set_max_speed helper

2015-09-10 Thread Simon Horman
On Thu, Sep 10, 2015 at 09:14:34PM -0700, Florian Fainelli wrote: > Le 09/10/15 19:01, Simon Horman a écrit : > > Add a helper to allow ethernet drivers to limit the speed of a phy > > (that they are attached to). > > > > This mainly involves factoring out the business-end of > > of_set_phy_suppor

Re: [PATCH/RFC v2 net-next 1/4] phylib: Add phy_set_max_speed helper

2015-09-10 Thread Florian Fainelli
Le 09/10/15 19:01, Simon Horman a écrit : > Add a helper to allow ethernet drivers to limit the speed of a phy > (that they are attached to). > > This mainly involves factoring out the business-end of > of_set_phy_supported() and exporting a new symbol. > > This code seems to be open coded in sev

[PATCH/RFC v2 net-next 1/4] phylib: Add phy_set_max_speed helper

2015-09-10 Thread Simon Horman
Add a helper to allow ethernet drivers to limit the speed of a phy (that they are attached to). This mainly involves factoring out the business-end of of_set_phy_supported() and exporting a new symbol. This code seems to be open coded in several places, in several different variants. This code i