]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
net: phy: Set SUPPORTED_1000baseX_Half flag in ESTATUS_1000_XHALF case
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 19 Jul 2013 13:01:34 +0000 (10:01 -0300)
committerTom Rini <trini@ti.com>
Fri, 19 Jul 2013 21:12:20 +0000 (17:12 -0400)
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>
drivers/net/phy/phy.c

index 4ea74811c7ee5696ac456014a92d78124e392efd..effe3e3d5d33dedc5a562fc88c41916b0f1f56fc 100644 (file)
@@ -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;