[U-Boot] [PATCH] net: phy: Set SUPPORTED_1000baseX_Half flag in ESTATUS_1000_XHALF case

Fabio Estevam festevam at gmail.com
Fri Jul 19 15:01:34 CEST 2013


From: Fabio Estevam <fabio.estevam at freescale.com>

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. 

Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
 drivers/net/phy/phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 5ddb926..5692b1c 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -404,7 +404,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;
-- 
1.8.1.2



More information about the U-Boot mailing list