From patchwork Thu Sep 5 06:40:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Willy Tarreau X-Patchwork-Id: 2853941 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 40AFF9F495 for ; Thu, 5 Sep 2013 06:41:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2314A20345 for ; Thu, 5 Sep 2013 06:41:26 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 516D62031A for ; Thu, 5 Sep 2013 06:41:24 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHTFp-0006Y9-6f; Thu, 05 Sep 2013 06:41:21 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHTFn-0000lY-3T; Thu, 05 Sep 2013 06:41:19 +0000 Received: from 1wt.eu ([62.212.114.60]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VHTFj-0000km-Di for linux-arm-kernel@lists.infradead.org; Thu, 05 Sep 2013 06:41:16 +0000 Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id r856eaVa028164; Thu, 5 Sep 2013 08:40:36 +0200 Date: Thu, 5 Sep 2013 08:40:36 +0200 From: Willy Tarreau To: yves@cheny.fr Subject: Re: [PATCH] net: mvneta: properly disable HW PHY polling and ensure adjust_link() works Message-ID: <20130905064036.GC26000@1wt.eu> References: <1378304478-21237-1-git-send-email-thomas.petazzoni@free-electrons.com> <20130904163245.GI20552@1wt.eu> <20130905051223.GB26000@1wt.eu> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130905_024115_869067_3621B9EE X-CRM114-Status: GOOD ( 20.38 ) X-Spam-Score: -4.3 (----) Cc: Thomas Petazzoni , Lior Amsalem , Jochen De Smet , Simon Guinot , Ryan Press , netdev@vger.kernel.org, vdonnefort@lacie.com, Ethan Tuttle , stable@vger.kernel.org, Ezequiel Garcia , Gregory Clement , Peter Sanford , "David S. Miller" , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Thu, Sep 05, 2013 at 08:23:12AM +0200, yves@cheny.fr wrote: > Hi Willy, > i would be interested too ! > > thx > Yves > > Le 2013-09-05 07:22, Ethan Tuttle a écrit : > >Understood. Ultimately, I'll use this board as a router, and stable > >mac addresses would be better than random. So I would be interested > >to try your atag -> device tree patches. Have they been posted > >somewhere I can find them? OK guys, here they come. Note that they're now simplified since the eth* aliases have been added to the dts. Willy From d8254ce7d6b199eb0114ee1229a066bd24d7f339 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 2 Dec 2012 19:59:28 +0100 Subject: ARM: atags: add support for Marvell's u-boot Marvell uses a specific atag in its u-boot which includes among other information the MAC addresses for up to 4 network interfaces. Signed-off-by: Willy Tarreau --- arch/arm/include/uapi/asm/setup.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/include/uapi/asm/setup.h b/arch/arm/include/uapi/asm/setup.h index 979ff40..d1d0c19 100644 --- a/arch/arm/include/uapi/asm/setup.h +++ b/arch/arm/include/uapi/asm/setup.h @@ -143,6 +143,18 @@ struct tag_memclk { __u32 fmemclk; }; +/* Marvell uboot parameters */ +#define ATAG_MV_UBOOT 0x41000403 +struct tag_mv_uboot { + __u32 uboot_version; + __u32 tclk; + __u32 sysclk; + __u32 isUsbHost; + __u8 macAddr[4][6]; + __u16 mtu[4]; + __u32 nand_ecc; +}; + struct tag { struct tag_header hdr; union { @@ -165,6 +177,11 @@ struct tag { * DC21285 specific */ struct tag_memclk memclk; + + /* + * Marvell specific + */ + struct tag_mv_uboot mv_uboot; } u; };