From patchwork Sat Oct 3 20:03:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 7322411 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 987A8BEEA4 for ; Sat, 3 Oct 2015 20:08:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7FD7D20791 for ; Sat, 3 Oct 2015 20:08:51 +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 AA91B2078F for ; Sat, 3 Oct 2015 20:08:50 +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 1ZiT2y-0006iv-Go; Sat, 03 Oct 2015 20:04:44 +0000 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZiT2q-0006dj-6D for linux-arm-kernel@lists.infradead.org; Sat, 03 Oct 2015 20:04:36 +0000 Received: by pablk4 with SMTP id lk4so136270820pab.3 for ; Sat, 03 Oct 2015 13:04:15 -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:in-reply-to:references; bh=S0dvCXP9KC/ZI+TcEa5mJIM4SQu1czF9IonGBOKmF+w=; b=xQtLWTSqzB5brpH0rPHUzIn11oL0WuwIBhEUqse9TcHmxx7yImrENY3tkHyEXcgRbc dc2iZFU24QyM36e/5NdNH9qp27ELJScTsjnyDnJ6r7NWb5bqEpRX+V886AMog7fLQlZu 9DXJEUJpt5v5ZobdGbGPXuYSfsGKvTlZcq2fznOGLCj1o/S+iw3FVlkXQzJE4k2APqj9 WJN5pZDw5bF1tEqQuxuRvT8b9NY20PrOA1dmZWa/0YY2Qpv2G4NaGZZ8LyWwsXlTCGBe QHBWBdvll07wZRrVjm4/5wpyDI5Q1r6cowJzSAUafP277gxJzMfzgOiLsiKba+e5jpV9 Km3A== X-Received: by 10.66.232.197 with SMTP id tq5mr25474852pac.105.1443902655335; Sat, 03 Oct 2015 13:04:15 -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.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 03 Oct 2015 13:04:14 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 3.10-3.17] ARM: orion: Fix DSA platform device after mvmdio conversion Date: Sat, 3 Oct 2015 13:03:48 -0700 Message-Id: <1443902628-7861-2-git-send-email-f.fainelli@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1443902628-7861-1-git-send-email-f.fainelli@gmail.com> References: <1443902628-7861-1-git-send-email-f.fainelli@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151003_130436_259482_9A082258 X-CRM114-Status: GOOD ( 11.78 ) X-Spam-Score: -2.0 (--) 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 is for -stable kernels 3.10 to 3.17 (included) 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 3ec6e8e8d368..3f02575e4cc8 100644 --- a/arch/arm/plat-orion/common.c +++ b/arch/arm/plat-orion/common.c @@ -499,7 +499,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].mii_bus = &orion_ge00_shared.dev; + d->chip[i].mii_bus = &orion_ge_mvmdio.dev; orion_switch_device.dev.platform_data = d; platform_device_register(&orion_switch_device);