From patchwork Fri Jul 19 13:01:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 260256 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3372C2C0084 for ; Fri, 19 Jul 2013 23:02:15 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7C0F24A032; Fri, 19 Jul 2013 15:02:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GvfIL21iobCY; Fri, 19 Jul 2013 15:02:13 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B3F424A040; Fri, 19 Jul 2013 15:02:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DCBAA4A040 for ; Fri, 19 Jul 2013 15:02:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rcRcDzxZ4U50 for ; Fri, 19 Jul 2013 15:01:56 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-yh0-f52.google.com (mail-yh0-f52.google.com [209.85.213.52]) by theia.denx.de (Postfix) with ESMTPS id 042F24A032 for ; Fri, 19 Jul 2013 15:01:48 +0200 (CEST) Received: by mail-yh0-f52.google.com with SMTP id f10so1483540yha.25 for ; Fri, 19 Jul 2013 06:01:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=uJR7fRR5jqrn8YbYUTuvCRZsb/Ne3gdBg80SUo6n72Q=; b=CDnovQdsNRIUZJteYL3dLnNcRB7rMZwqLQBZ5ZsU2miIzlXqGDqje+lDokeXr7A8So xNUNhczU2S/EydqibaDS4y3Zh8h1ZBP58aDZRTOpxHhco00FDf1Rn85bq3AX3l+Ne/4D Zku9lWdPNqvIAtgfwtXW8sbrsEsJG3HLkhyzTHYc4UktSzSSTvHBkVd/vS63QqOwxZrS K9PurUJjTtcilReB+N5MFZBCoji5jWR7eNkZPBJAzKzvI9Om0L0wPt6QysW2iA09QyE7 CrWjUFj0TFbU3idHSamuoLt6kWf6LP4biKhQ0Buw2cBGg7ZA5ZH7nn5/IMt75kgForei DCoA== X-Received: by 10.236.44.7 with SMTP id m7mr8476359yhb.27.1374238907246; Fri, 19 Jul 2013 06:01:47 -0700 (PDT) Received: from localhost.localdomain ([177.194.40.69]) by mx.google.com with ESMTPSA id s80sm21297413yhe.27.2013.07.19.06.01.44 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Jul 2013 06:01:46 -0700 (PDT) From: Fabio Estevam To: trini@ti.com Date: Fri, 19 Jul 2013 10:01:34 -0300 Message-Id: <1374238894-24906-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.8.1.2 Cc: Fabio Estevam , joe.hershberger@ni.com, coldwell@gmail.com, t-uboot@infra-silbe.de, u-boot@lists.denx.de Subject: [U-Boot] [PATCH] net: phy: Set SUPPORTED_1000baseX_Half flag in ESTATUS_1000_XHALF case X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Fabio Estevam 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 Signed-off-by: Charles Coldwell Reviewed-By: Sascha Silbe Reviewed-by: Joe Hershberger --- 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;