Re: [PATCH net] net: phy: Decrement phy_fixed_addr during unregister

2016-06-24 Thread Florian Fainelli
On 06/24/2016 04:06 PM, Russell King - ARM Linux wrote: > On Fri, Jun 24, 2016 at 03:58:39PM -0700, Florian Fainelli wrote: >> On 06/24/2016 03:55 PM, Russell King - ARM Linux wrote: >>> On Fri, Jun 24, 2016 at 03:44:11PM -0700, Florian Fainelli wrote: If we have a system which uses fixed PHY

Re: [PATCH net] net: phy: Decrement phy_fixed_addr during unregister

2016-06-24 Thread Russell King - ARM Linux
On Fri, Jun 24, 2016 at 03:58:39PM -0700, Florian Fainelli wrote: > On 06/24/2016 03:55 PM, Russell King - ARM Linux wrote: > > On Fri, Jun 24, 2016 at 03:44:11PM -0700, Florian Fainelli wrote: > >> If we have a system which uses fixed PHY devices and calls > >> fixed_phy_register() then fixed_phy_

Re: [PATCH net] net: phy: Decrement phy_fixed_addr during unregister

2016-06-24 Thread Florian Fainelli
On 06/24/2016 03:55 PM, Russell King - ARM Linux wrote: > On Fri, Jun 24, 2016 at 03:44:11PM -0700, Florian Fainelli wrote: >> If we have a system which uses fixed PHY devices and calls >> fixed_phy_register() then fixed_phy_unregister() we can exhaust the >> number of fixed PHYs available after a

Re: [PATCH net] net: phy: Decrement phy_fixed_addr during unregister

2016-06-24 Thread Russell King - ARM Linux
On Fri, Jun 24, 2016 at 03:44:11PM -0700, Florian Fainelli wrote: > If we have a system which uses fixed PHY devices and calls > fixed_phy_register() then fixed_phy_unregister() we can exhaust the > number of fixed PHYs available after a while, since we keep incrementing > the variable phy_fixed_ad

[PATCH net] net: phy: Decrement phy_fixed_addr during unregister

2016-06-24 Thread Florian Fainelli
If we have a system which uses fixed PHY devices and calls fixed_phy_register() then fixed_phy_unregister() we can exhaust the number of fixed PHYs available after a while, since we keep incrementing the variable phy_fixed_addr, but we never decrement it. This patch fixes that by decrementing phy_