From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162307AbbKFUBi (ORCPT ); Fri, 6 Nov 2015 15:01:38 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:33719 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032002AbbKFTc3 (ORCPT ); Fri, 6 Nov 2015 14:32:29 -0500 From: Florian Fainelli To: stable@vger.kernel.org Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, fvdw@fvdw.eu, gregory.clement@free-electrons.com, Florian Fainelli Subject: [PATCH] ARM: orion: Fix DSA platform device after mvmdio conversion Date: Fri, 6 Nov 2015 11:31:30 -0800 Message-Id: <1446838290-24024-1-git-send-email-f.fainelli@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <144678925462178@kroah.com> References: <144678925462178@kroah.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DSA expects the mii_bus 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 --- Greg, This is the patch for kernels 3.10 through 3.17, 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 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); -- 2.1.0