From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753324Ab3BCLPI (ORCPT ); Sun, 3 Feb 2013 06:15:08 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:57718 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752151Ab3BCLPG (ORCPT ); Sun, 3 Feb 2013 06:15:06 -0500 Message-ID: <510E469D.9020807@ti.com> Date: Sun, 3 Feb 2013 16:44:37 +0530 From: Sekhar Nori User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Prabhakar Lad CC: , , , , , Heiko Schocher , "Lad, Prabhakar" Subject: Re: [PATCH v2 1/6] ARM: davinci: da850: fix clock lookup for mdio device References: <1359380879-26306-1-git-send-email-prabhakar.lad@ti.com> <1359380879-26306-2-git-send-email-prabhakar.lad@ti.com> In-Reply-To: <1359380879-26306-2-git-send-email-prabhakar.lad@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/28/2013 7:17 PM, Prabhakar Lad wrote: > From: Lad, Prabhakar > > This patch removes the clock alias for mdio device and adds a entry > in clock lookup table, this entry can now be used by both DT and NON > DT case. > > Signed-off-by: Lad, Prabhakar > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Cc: davinci-linux-open-source@linux.davincidsp.com > Cc: netdev@vger.kernel.org > Cc: devicetree-discuss@lists.ozlabs.org > Cc: Sekhar Nori > Cc: Heiko Schocher > --- > arch/arm/mach-davinci/da850.c | 1 + > arch/arm/mach-davinci/devices-da8xx.c | 8 ++------ > 2 files changed, 3 insertions(+), 6 deletions(-) > > diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c > index 86056ca..f74bfb6 100644 > --- a/arch/arm/mach-davinci/da850.c > +++ b/arch/arm/mach-davinci/da850.c > @@ -402,6 +402,7 @@ static struct clk_lookup da850_clks[] = { > CLK(NULL, "arm", &arm_clk), > CLK(NULL, "rmii", &rmii_clk), > CLK("davinci_emac.1", NULL, &emac_clk), > + CLK("davinci_mdio.0", "fck", &emac_clk), > CLK("davinci-mcasp.0", NULL, &mcasp_clk), > CLK("da8xx_lcdc.0", "fck", &lcdc_clk), > CLK("davinci_mmc.0", NULL, &mmcsd0_clk), > diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c > index 2d5502d..52faa05 100644 > --- a/arch/arm/mach-davinci/devices-da8xx.c > +++ b/arch/arm/mach-davinci/devices-da8xx.c > @@ -444,12 +444,8 @@ int __init da8xx_register_emac(void) > ret = platform_device_register(&da8xx_mdio_device); > if (ret < 0) > return ret; > - ret = platform_device_register(&da8xx_emac_device); > - if (ret < 0) > - return ret; > - ret = clk_add_alias(NULL, dev_name(&da8xx_mdio_device.dev), > - NULL, &da8xx_emac_device.dev); > - return ret; > + > + return platform_device_register(&da8xx_emac_device); You added the look-up only for DA850 which means after this patch da830 network will be broken. Did you test on DA830? Thanks, Sekhar