From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932390AbdABJ17 (ORCPT ); Mon, 2 Jan 2017 04:27:59 -0500 Received: from fllnx210.ext.ti.com ([198.47.19.17]:43181 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932301AbdABJ15 (ORCPT ); Mon, 2 Jan 2017 04:27:57 -0500 Subject: Re: [PATCH v4 2/4] ARM: da850: don't add the emac clock to the clock lookup table twice To: Bartosz Golaszewski , Kevin Hilman , Michael Turquette , Peter Ujfalusi , Russell King , Viresh Kumar , Boris Brezillon , "Rafael J. Wysocki" , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Cyrille Pitchen References: <1481124138-27337-1-git-send-email-bgolaszewski@baylibre.com> <1481124138-27337-3-git-send-email-bgolaszewski@baylibre.com> CC: LKML , arm-soc , From: Sekhar Nori Message-ID: Date: Mon, 2 Jan 2017 14:56:42 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1481124138-27337-3-git-send-email-bgolaszewski@baylibre.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 07 December 2016 08:52 PM, Bartosz Golaszewski wrote: > Similarly to the aemif clock - this screws up the linked list of clock > children. Create a separate clock for mdio inheriting the rate from > emac_clk. > > Signed-off-by: Bartosz Golaszewski Applied with change in headline (see comment on 1/4). Also added a comment explaining why mdio clk is needed. > --- > arch/arm/mach-davinci/da850.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c > index e9d019c..6b1fbac 100644 > --- a/arch/arm/mach-davinci/da850.c > +++ b/arch/arm/mach-davinci/da850.c > @@ -319,6 +319,11 @@ static struct clk emac_clk = { > .gpsc = 1, > }; > /* * In order to avoid adding the emac_clk to the clock lookup table twice (and * screwing up the linked list in the process) create a separate clock for * mdio inheriting the rate from emac_clk. */ > +static struct clk mdio_clk = { > + .name = "mdio", > + .parent = &emac_clk, > +}; Thanks, Sekhar