Re: [PATCH 1/2] add fixed_phy_update_state() - update state of fixed_phy

2015-04-03 Thread Stas Sergeev
03.04.2015 22:25, Florian Fainelli пишет: On 01/04/15 10:30, Stas Sergeev wrote: - The callback needs to be registered before of_phy_connect() to avoid running with outdated state, but of_phy_connect() returns the phy_device pointer, which is needed to register the callback. Registering it befor

Re: [PATCH 1/2] add fixed_phy_update_state() - update state of fixed_phy

2015-04-03 Thread Florian Fainelli
On 01/04/15 10:30, Stas Sergeev wrote: > > Currently fixed_phy uses a callback to periodically poll the link state. > This patch adds the fixed_phy_update_state() API. > It solves the following problems: > - On link state interrupt, MAC driver can't update status. > Instead it needs to provide the