From patchwork Sat Nov 2 18:40:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 288018 X-Patchwork-Delegate: joe.hershberger@gmail.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 DB9762C0127 for ; Sun, 3 Nov 2013 05:49:20 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 664EB4A0C1; Sat, 2 Nov 2013 19:49:19 +0100 (CET) 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 g1BnnJaorJXT; Sat, 2 Nov 2013 19:49:19 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4071A4A0BA; Sat, 2 Nov 2013 19:49:18 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A0B634A0B8 for ; Sat, 2 Nov 2013 19:49:11 +0100 (CET) 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 Iq6nGQE79UTI for ; Sat, 2 Nov 2013 19:49:05 +0100 (CET) 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-f47.google.com (mail-yh0-f47.google.com [209.85.213.47]) by theia.denx.de (Postfix) with ESMTPS id 85EBD4A0B6 for ; Sat, 2 Nov 2013 19:48:59 +0100 (CET) Received: by mail-yh0-f47.google.com with SMTP id t59so344663yho.34 for ; Sat, 02 Nov 2013 11:48:58 -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; bh=dtKFQI+1wX5nP1oKbkJEauSc5qbdRYJdHz5StAdeU+M=; b=ARMQWrOSo1mR67pPVzauD9ONWtm7SGm0XFse2Pe2s39BEW82QrMtRIBJqMMyvtNyuW 8wyETt4EJQz2Ry4wynzCu+z3dntAze8HAPzwFwwUgUYB4ryfFE+SKUYip852Jg03H3Xc +FWVqEyr/BfAhwe51J1xu36KcZ0lmikru2ErqQmqWL9eXl3/GH2C7+5zSgGtyB/c/Tas YAalabGebr0Yr2cw6T8FxaAYcodEwgjbA0c8Pk+KKBXFFdvR3BBC4deC33xgGI4i3zSF Ozy69qOBQIjJLdSSCiND9bjQPacWG1gny5D/BGvUorftiWsoKe4wMt3iIq6j91DWidX5 klyg== X-Received: by 10.236.148.138 with SMTP id v10mr6603913yhj.27.1383417657522; Sat, 02 Nov 2013 11:40:57 -0700 (PDT) Received: from localhost.localdomain ([201.82.207.53]) by mx.google.com with ESMTPSA id s46sm13826126yha.27.2013.11.02.11.40.55 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 02 Nov 2013 11:40:57 -0700 (PDT) From: Fabio Estevam To: joe.hershberger@ni.com Date: Sat, 2 Nov 2013 16:40:42 -0200 Message-Id: <1383417642-16511-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.8.1.2 Cc: Fabio Estevam , u-boot@lists.denx.de, Jon Nettleton Subject: [U-Boot] [PATCH] net: phy: atheros: Fix masks for AR8035 and AR8021 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 The masks were ignoring the last 4 bits which didn't allow detection differences between the ar8031 and ar8035. Signed-off-by: Jon Nettleton Signed-off-by: Fabio Estevam --- This patch allows Ethernet to work on Solid Run Carrier1 board. drivers/net/phy/atheros.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index 0f2dfd6..2d38bc1 100644 --- a/drivers/net/phy/atheros.c +++ b/drivers/net/phy/atheros.c @@ -40,7 +40,7 @@ static int ar8035_config(struct phy_device *phydev) static struct phy_driver AR8021_driver = { .name = "AR8021", .uid = 0x4dd040, - .mask = 0xfffff0, + .mask = 0x4fffff, .features = PHY_GBIT_FEATURES, .config = ar8021_config, .startup = genphy_startup, @@ -50,7 +50,7 @@ static struct phy_driver AR8021_driver = { static struct phy_driver AR8031_driver = { .name = "AR8031", .uid = 0x4dd074, - .mask = 0xfffff0, + .mask = 0x4fffff, .features = PHY_GBIT_FEATURES, .config = genphy_config, .startup = genphy_startup,