diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-09-19 22:07:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-19 22:27:07 +0200 |
commit | 2f63715138233db9f1c2afff33f7d8192a29ff91 (patch) | |
tree | 18bd5a579a434c6cf627364c54ffa7b53338cc55 /drivers/of/of_private.h | |
parent | net: add alloc_skb_with_frags() helper (diff) | |
download | linux-2f63715138233db9f1c2afff33f7d8192a29ff91.tar.xz linux-2f63715138233db9f1c2afff33f7d8192a29ff91.zip |
of: mdio: honor flags passed to of_phy_connect
Commit f9a8f83b04e0 ("net: phy: remove flags argument from phy_{attach,
connect, connect_direct}") removed the flags argument to the PHY library
calls to: phy_{attach,connect,connect_direct}.
Most Device Tree aware drivers call of_phy_connect() with the flag
argument set to 0, but some of them might want to set a different value
there in order for the PHY driver to key a specific behavior based on
the phy_device::phy_flags value.
Allow such drivers to set custom phy_flags as part of the
of_phy_connect() call since of_phy_connect() does start the PHY state
machine, it will call into the PHY driver config_init() callback which
is usually where a specific phy_flags value is important.
Fixes: f9a8f83b04e0 ("net: phy: remove flags argument from phy_{attach, connect, connect_direct}")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/of/of_private.h')
0 files changed, 0 insertions, 0 deletions