From patchwork Thu Oct 6 21:26:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?C=C3=A9dric_Le_Goater?= X-Patchwork-Id: 679086 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sqm2h3hFcz9t0J for ; Fri, 7 Oct 2016 08:27:40 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3sqm2h2n5YzDrSW for ; Fri, 7 Oct 2016 08:27:40 +1100 (AEDT) X-Original-To: openbmc@lists.ozlabs.org Delivered-To: openbmc@lists.ozlabs.org Received: from 2.mo1.mail-out.ovh.net (2.mo1.mail-out.ovh.net [178.32.119.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3sqm2Y5lywzDrSV for ; Fri, 7 Oct 2016 08:27:33 +1100 (AEDT) Received: from player726.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo1.mail-out.ovh.net (Postfix) with ESMTP id E9DFA11E5B for ; Thu, 6 Oct 2016 23:27:30 +0200 (CEST) Received: from hermes.kaod.org.com (LFbn-1-2234-107.w90-76.abo.wanadoo.fr [90.76.55.107]) (Authenticated sender: clg@kaod.org) by player726.ha.ovh.net (Postfix) with ESMTPSA id BF2F72A0067; Thu, 6 Oct 2016 23:27:27 +0200 (CEST) From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: openbmc@lists.ozlabs.org Subject: [PATCH u-boot 10/12] aspeed: remove CONFIG_PHY_MAX_ADDR Date: Thu, 6 Oct 2016 23:26:43 +0200 Message-Id: <1475789205-19618-11-git-send-email-clg@kaod.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475789205-19618-1-git-send-email-clg@kaod.org> References: <1475789205-19618-1-git-send-email-clg@kaod.org> MIME-Version: 1.0 X-Ovh-Tracer-Id: 13961721796109175554 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeelvddrfeefgddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openbmc-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "openbmc" PHY_MAX_ADDR has the same value Signed-off-by: Cédric Le Goater Reviewed-by: Joel Stanley --- drivers/net/ftgmac100.c | 3 ++- include/configs/ast-g4-phy.h | 2 -- include/configs/ast-g5-phy.h | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c index b690e6c2330c..f82ea5f35e89 100644 --- a/drivers/net/ftgmac100.c +++ b/drivers/net/ftgmac100.c @@ -16,6 +16,7 @@ #include #include #include +#include #include @@ -306,7 +307,7 @@ static int ftgmac100_phy_init(struct eth_device *dev) int i; /* Check if the PHY is up to snuff... */ - for (phy_addr = 0; phy_addr < CONFIG_PHY_MAX_ADDR; phy_addr++) { + for (phy_addr = 0; phy_addr < PHY_MAX_ADDR; phy_addr++) { ftgmac100_phy_read(dev, phy_addr, MII_PHYSID1, &phy_id1); ftgmac100_phy_read(dev, phy_addr, MII_PHYSID2, &phy_id2); diff --git a/include/configs/ast-g4-phy.h b/include/configs/ast-g4-phy.h index 66881f6cb8be..8e1ce2bfd10b 100644 --- a/include/configs/ast-g4-phy.h +++ b/include/configs/ast-g4-phy.h @@ -21,7 +21,5 @@ /* Ethernet */ #define CONFIG_HAS_ETH0 #define CONFIG_HAS_ETH1 -#define CONFIG_PHY_MAX_ADDR 32 - #endif /* __AST_G4_NCSI_CONFIG_H */ diff --git a/include/configs/ast-g5-phy.h b/include/configs/ast-g5-phy.h index 469ef01e31f2..c10767467bb9 100644 --- a/include/configs/ast-g5-phy.h +++ b/include/configs/ast-g5-phy.h @@ -22,6 +22,5 @@ /* Ethernet */ #define CONFIG_HAS_ETH0 #define CONFIG_HAS_ETH1 -#define CONFIG_PHY_MAX_ADDR 32 #endif /* __AST_G5_PHY_CONFIG_H */