diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2016-06-24 16:25:24 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-29 03:51:40 -0400 |
commit | 69fc58a57e56bf5e39b48809aefffdaa1b04c945 (patch) | |
tree | 765e38a7aa3f81cdf02fd0750e810e729ecfa084 /Documentation | |
parent | 9a0fee2b552b1235fb1706ae1fc664ae74573be8 (diff) |
net: phy: Manage fixed PHY address space using IDA
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 converting the fixed PHY allocation to using
IDA, which takes care of the allocation/dealloaction of the PHY
addresses for us.
Fixes: a75951217472 ("net: phy: extend fixed driver with fixed_phy_register()")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions