aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorGiuseppe CAVALLARO <[email protected]>2016-04-01 07:07:16 +0000
committerDavid S. Miller <[email protected]>2016-04-01 18:38:59 +0000
commita7657f128c279ae5796ab2ca7d04a7819f4259f0 (patch)
tree160bc8bb98d4211393230dcfbc6440359c00ecd0 /net/switchdev/switchdev.c
parentRevert "stmmac: Fix 'eth0: No PHY found' regression" (diff)
downloadkernel-a7657f128c279ae5796ab2ca7d04a7819f4259f0.tar.gz
kernel-a7657f128c279ae5796ab2ca7d04a7819f4259f0.zip
stmmac: fix MDIO settings
Initially the phy_bus_name was added to manipulate the driver name but it was recently just used to manage the fixed-link and then to take some decision at run-time. So the patch uses the is_pseudo_fixed_link and removes the phy_bus_name variable not necessary anymore. The driver can manage the mdio registration by using phy-handle, dwmac-mdio and own parameter e.g. snps,phy-addr. This patch takes care about all these possible configurations and fixes the mdio registration in case of there is a real transceiver or a switch (that needs to be managed by using fixed-link). Signed-off-by: Giuseppe Cavallaro <[email protected]> Reviewed-by: Andreas Färber <[email protected]> Tested-by: Frank Schäfer <[email protected]> Cc: Gabriel Fernandez <[email protected]> Cc: Dinh Nguyen <[email protected]> Cc: David S. Miller <[email protected]> Cc: Phil Reid <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions