Files
android_kernel_xiaomi_sm8450/drivers/net
Florian Fainelli 69fc58a57e 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: a759512174 ("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>
2016-06-29 03:51:40 -04:00
..
2016-06-15 22:06:06 -07:00
2016-06-15 23:39:18 -07:00
2016-06-23 15:16:12 -04:00
2016-05-09 00:00:28 -04:00
2016-06-15 14:47:46 -07:00
2016-04-26 15:53:05 -04:00