From patchwork Sat Oct 3 20:03:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 7322401 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 64B509F314 for ; Sat, 3 Oct 2015 20:08:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 87B8720791 for ; Sat, 3 Oct 2015 20:08:43 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A9FD72078F for ; Sat, 3 Oct 2015 20:08:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZiT2s-0006h6-BF; Sat, 03 Oct 2015 20:04:38 +0000 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZiT2o-0006dc-Ri for linux-arm-kernel@lists.infradead.org; Sat, 03 Oct 2015 20:04:36 +0000 Received: by padhy16 with SMTP id hy16so137088457pad.1 for ; Sat, 03 Oct 2015 13:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=EAFERPGoOriYWJGTsclneRnt46OnTJkLrwoTK8jjAq4=; b=CBCQ6EPVP9tRZ+BtAAYxRWG7A4VYOe9Xvy7DW/mGNhz9EWu1Zfw9MELDr0E8J11zHN r1xeUpDn/oyIv9+vBmHiAMkY402p0ioJJGInfeOBePry5lzCOZDOLG/Pgc5tkxFn2YWH qDigLkDEFZYcsJmhKRugckg1NgFSC9EWmU1nlTys9ha1PbH5Si4xjnAW917OXaVA85A8 zMPWb7lX9hq4nh5aZSnrnmCqOgeWCzhBNJzMZ2IMGrHYfU/TR0Dbj9UtN8Oox3OxOjM3 W/t2LfdI9mXJdEUinSnfVu6m8JDVmcXuwBPWqBupqVJeyChIwAPHCGodWZ8WIUC0u7A6 Ld5Q== X-Received: by 10.66.161.7 with SMTP id xo7mr28159904pab.57.1443902654074; Sat, 03 Oct 2015 13:04:14 -0700 (PDT) Received: from fainelli-desktop.broadcom.com (5520-maca-inet1-outside.broadcom.com. [216.31.211.11]) by smtp.gmail.com with ESMTPSA id ot8sm18901257pbb.26.2015.10.03.13.04.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 03 Oct 2015 13:04:13 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 3.18+] ARM: orion: Fix DSA platform device after mvmdio conversion Date: Sat, 3 Oct 2015 13:03:47 -0700 Message-Id: <1443902628-7861-1-git-send-email-f.fainelli@gmail.com> X-Mailer: git-send-email 2.1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151003_130434_961082_BD0B1F5D X-CRM114-Status: GOOD ( 11.27 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@lunn.ch, Florian Fainelli , linux@arm.linux.org.uk, jason@lakedaemon.net, fvdw@fvdw.eu, stable@vger.kernel.org, gregory.clement@free-electrons.com, sebastian.hesselbarth@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 DSA expects the host_dev pointer to be the device structure associated with the MDIO bus controller driver. First commit breaking that was c3a07134e6aa ("mv643xx_eth: convert to use the Marvell Orion MDIO driver"), and then, it got completely under the radar for a while. Reported-by: Frans van de Wiel Fixes: c3a07134e6aa ("mv643xx_eth: convert to use the Marvell Orion MDIO driver") CC: stable@vger.kernel.org Signed-off-by: Florian Fainelli --- This patch should be queued for -stable kernels 3.18+, thanks! arch/arm/plat-orion/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/plat-orion/common.c b/arch/arm/plat-orion/common.c index 2235081a04ee..8861c367d061 100644 --- a/arch/arm/plat-orion/common.c +++ b/arch/arm/plat-orion/common.c @@ -495,7 +495,7 @@ void __init orion_ge00_switch_init(struct dsa_platform_data *d, int irq) d->netdev = &orion_ge00.dev; for (i = 0; i < d->nr_chips; i++) - d->chip[i].host_dev = &orion_ge00_shared.dev; + d->chip[i].host_dev = &orion_ge_mvmdio.dev; orion_switch_device.dev.platform_data = d; platform_device_register(&orion_switch_device);