summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-07-19 10:01:34 -0300
committerTom Rini <trini@ti.com>2013-07-19 17:12:20 -0400
commit9a5dad239332537a5689131bbcc705c1f9c0cb41 (patch)
treedf8fe2049f2674f6939a8202cdd38864af5d9f33
parent9ba30f6bc2741ae4d49724cdd32ca1c9a48f6155 (diff)
net: phy: Set SUPPORTED_1000baseX_Half flag in ESTATUS_1000_XHALF case
Commit de1d786e (add support for Xilinx 1000BASE-X phy (GTX)) introduced the checking for ESTATUS_1000_XHALF, but it incorrectly sets the SUPPORTED_1000baseX_Full flag in this case. Set the SUPPORTED_1000baseX_Half flag instead. Acked-by: Charles Coldwell <coldwell@gmail.com> Reviewed-By: Sascha Silbe <t-uboot@infra-silbe.de> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
-rw-r--r--drivers/net/phy/phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 4ea74811c7e..effe3e3d5d3 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -412,7 +412,7 @@ int genphy_config(struct phy_device *phydev)
if (val & ESTATUS_1000_XFULL)
features |= SUPPORTED_1000baseX_Full;
if (val & ESTATUS_1000_XHALF)
- features |= SUPPORTED_1000baseX_Full;
+ features |= SUPPORTED_1000baseX_Half;
}
phydev->supported = features;