summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2015-08-08 12:58:57 -0700
committerDavid S. Miller <davem@davemloft.net>2015-08-12 14:29:50 -0700
commit211c504a444710b1d8ce3431ac19f2578602ca27 (patch)
tree450435fc4df735cec29228780694d7e3bb98a726 /drivers/net/bonding
parent28eaad7504d2ca1c833299ebf5148671638732f9 (diff)
downloadlinux-211c504a444710b1d8ce3431ac19f2578602ca27.tar.bz2
net: dsa: Do not override PHY interface if already configured
In case we need to divert reads/writes using the slave MII bus, we may have already fetched a valid PHY interface property from Device Tree, and that mode is used by the PHY driver to make configuration decisions. If we could not fetch the "phy-mode" property, we will assign p->phy_interface to PHY_INTERFACE_MODE_NA, such that we can actually check for that condition as to whether or not we should override the interface value. Fixes: 19334920eaf7 ("net: dsa: Set valid phy interface type") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding')
0 files changed, 0 insertions, 0 deletions