From patchwork Thu Jan 10 12:00:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kosta Zertsekel X-Patchwork-Id: 1959811 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id D62EADF264 for ; Thu, 10 Jan 2013 12:13:04 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TtGxC-0003dg-UM; Thu, 10 Jan 2013 12:09:53 +0000 Received: from na3sys009aog117.obsmtp.com ([74.125.149.242]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1TtGx5-0003aP-BW for linux-arm-kernel@lists.infradead.org; Thu, 10 Jan 2013 12:09:44 +0000 Received: from MSI-MTA.marvell.com ([65.219.4.132]) (using TLSv1) by na3sys009aob117.postini.com ([74.125.148.12]) with SMTP ID DSNKUO6vfwLZRmRAqq4xVBTSKqwGJPQJtJ2g@postini.com; Thu, 10 Jan 2013 04:09:43 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 04:01:05 -0800 Received: from kostaz-OptiPlex-990.il.marvell.com (unknown [10.4.50.37]) by maili.marvell.com (Postfix) with ESMTP id B476B4E510; Thu, 10 Jan 2013 04:01:03 -0800 (PST) From: Kosta Zertsekel To: netdev@vger.kernel.org Subject: [PATCH 1/2] Fix phy_init for Marvell network eth driver Date: Thu, 10 Jan 2013 14:00:33 +0200 Message-Id: <1357819234-27752-2-git-send-email-konszert@marvell.com> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1357819234-27752-1-git-send-email-konszert@marvell.com> References: <1357819234-27752-1-git-send-email-konszert@marvell.com> X-OriginalArrivalTime: 10 Jan 2013 12:01:05.0541 (UTC) FILETIME=[2B296350:01CDEF2A] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130110_070943_717839_CB7DCAB6 X-CRM114-Status: UNSURE ( 9.26 ) 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.242 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, benavi@marvell.com, Kosta Zertsekel , zertsekel@gmail.com, linux-arm-kernel@lists.infradead.org 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;