From patchwork Thu Jan 10 10:04:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kosta Zertsekel X-Patchwork-Id: 1959271 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 1891F3FF0F for ; Thu, 10 Jan 2013 10:13:42 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TtF6N-0004Vv-AJ; Thu, 10 Jan 2013 10:11:11 +0000 Received: from na3sys009aog118.obsmtp.com ([74.125.149.244]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1TtF6I-0004UB-3B for linux-arm-kernel@lists.infradead.org; Thu, 10 Jan 2013 10:11:06 +0000 Received: from MSI-MTA.marvell.com ([65.219.4.132]) (using TLSv1) by na3sys009aob118.postini.com ([74.125.148.12]) with SMTP ID DSNKUO6TrQ3RX6M/58qmeENIca1kbDMUifI0@postini.com; Thu, 10 Jan 2013 02:11:05 PST Received: from maili.marvell.com ([10.68.76.210]) by MSI-MTA.marvell.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 10 Jan 2013 02:05:28 -0800 Received: from kostaz-OptiPlex-990.il.marvell.com (unknown [10.4.50.37]) by maili.marvell.com (Postfix) with ESMTP id 768124E510; Thu, 10 Jan 2013 02:05:26 -0800 (PST) From: Kosta Zertsekel To: netdev@vger.kernel.org Subject: [PATCH] Fix phy_init for Marvell network eth driver Date: Thu, 10 Jan 2013 12:04:58 +0200 Message-Id: <1357812298-26399-2-git-send-email-konszert@marvell.com> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1357812298-26399-1-git-send-email-konszert@marvell.com> References: <1357812298-26399-1-git-send-email-konszert@marvell.com> X-OriginalArrivalTime: 10 Jan 2013 10:05:28.0072 (UTC) FILETIME=[041BA080:01CDEF1A] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130110_051106_565861_A1C2F4B9 X-CRM114-Status: UNSURE ( 9.29 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [74.125.149.244 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: alior@marvell.com, andrew@lunn.ch, Kosta Zertsekel , linux-arm-kernel@lists.infradead.org, benavi@marvell.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org At least it fixes DNS323_REV_C1 board case (mach-orion5x/dsn323-setup.c file). Change-Id: I37d64795f79c358f66a211a150cec2263e40e295 --- drivers/net/ethernet/marvell/mv643xx_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c index 84c1326..7b8c1ac 100644 --- a/drivers/net/ethernet/marvell/mv643xx_eth.c +++ b/drivers/net/ethernet/marvell/mv643xx_eth.c @@ -2789,7 +2789,7 @@ static void phy_init(struct mv643xx_eth_private *mp, int speed, int duplex) phy_reset(mp); - phy_attach(mp->dev, dev_name(&phy->dev), 0, PHY_INTERFACE_MODE_GMII); + phy_attach(mp->dev, dev_name(&phy->dev), phy->dev_flags, PHY_INTERFACE_MODE_GMII); if (speed == 0) { phy->autoneg = AUTONEG_ENABLE;