From patchwork Tue Jan 5 18:20:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 563220 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 AA2871402EC for ; Wed, 6 Jan 2016 05:20:47 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=fZOkiEX6; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 519354B716; Tue, 5 Jan 2016 19:20:43 +0100 (CET) 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 7cr3ygSkWWco; Tue, 5 Jan 2016 19:20:43 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E6C7D4B70D; Tue, 5 Jan 2016 19:20:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 70F5B4B6D1 for ; Tue, 5 Jan 2016 19:20:40 +0100 (CET) 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 woky10ce6Rj9 for ; Tue, 5 Jan 2016 19:20:40 +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-yk0-f178.google.com (mail-yk0-f178.google.com [209.85.160.178]) by theia.denx.de (Postfix) with ESMTPS id 0BE5A4B6BE for ; Tue, 5 Jan 2016 19:20:37 +0100 (CET) Received: by mail-yk0-f178.google.com with SMTP id v14so197113864ykd.3 for ; Tue, 05 Jan 2016 10:20:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=eaVW1byNxMdbEyDDm629bYW91xg6mSBYeA+NJ8p0sZ0=; b=fZOkiEX6hQ1aCWVaZ0K4VRl8+sDQLQK0rwEXRDzGm74JkOlbrRb2D1UczT66m6Vc4n n7bcGYYFmC/NBgXt16mm+MgnZZaZC+n+AdA9kvUyeS6T0EIvRVgDK/1PCNneO6eWAIfF g+YhTvGxTgNuUY1MSTCWH4DkR1PVKHBjWilE+tC/vQbMmXCUG2btSaMzQC1PoWEZIl3J 9xydJ3LptfWvQp7C0bRZ24xaOXEJOv6yXO2z8Uxd1iJYDjrp+ddwZ3hPX5AFGslybP+j xtngjTOQ9Iat1ldWWHhUsKnO1EvPZRAyBRZ4R+XBfmnu8KMCt2kowBkoBCz84GmH8qxu 3lBw== X-Received: by 10.129.123.134 with SMTP id w128mr46325471ywc.345.1452018036130; Tue, 05 Jan 2016 10:20:36 -0800 (PST) Received: from localhost.localdomain ([187.64.228.119]) by smtp.gmail.com with ESMTPSA id v130sm1165523ywe.24.2016.01.05.10.20.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Jan 2016 10:20:35 -0800 (PST) From: Fabio Estevam To: sbabic@denx.de Date: Tue, 5 Jan 2016 16:20:19 -0200 Message-Id: <1452018021-28676-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: u-boot@lists.denx.de, B45475@freescale.com, joe.hershberger@ni.com, Fabio Estevam , yorksun@freescale.com Subject: [U-Boot] [PATCH 1/3] phy: atheros: Use ar8035_config for AR8031 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Fabio Estevam Commit 08ad9b068afb88 (" ar8031: modify the config func of ar8031 to ar8021_config") selected 'ar8021_config' as the configuration function for AR8031. The correct would be to use 'ar8035_config' instead as AR8031/AR8035 have the same programming model and even share the same phy driver in the linux kernel: drivers/net/phy/at803x.c. Tested on a mx6qsabresd and wandboard, which now can work without any PHY setup code in the board files. Signed-off-by: Fabio Estevam --- This is 2016.04 material. Zhao Qiang, could you please test this on your platform? drivers/net/phy/atheros.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index d509e30..ba57b1a 100644 --- a/drivers/net/phy/atheros.c +++ b/drivers/net/phy/atheros.c @@ -51,7 +51,7 @@ static struct phy_driver AR8031_driver = { .uid = 0x4dd074, .mask = 0xffffffef, .features = PHY_GBIT_FEATURES, - .config = ar8021_config, + .config = ar8035_config, .startup = genphy_startup, .shutdown = genphy_shutdown, };