From patchwork Wed Dec 7 15:22:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9464707 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4580760459 for ; Wed, 7 Dec 2016 15:23:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4837228493 for ; Wed, 7 Dec 2016 15:23:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CCA7284F5; Wed, 7 Dec 2016 15:23:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2B6128493 for ; Wed, 7 Dec 2016 15:23:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932111AbcLGPXR (ORCPT ); Wed, 7 Dec 2016 10:23:17 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:36578 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751722AbcLGPW3 (ORCPT ); Wed, 7 Dec 2016 10:22:29 -0500 Received: by mail-wm0-f54.google.com with SMTP id g23so173044950wme.1 for ; Wed, 07 Dec 2016 07:22:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ziV7ZIrHR31PsBgy4bmj4GcQ2980/NJi9Dgl2kCUoiY=; b=r6euaBCiM6s9NQzkJ0ASlKrXVGGsdrUizRXB5XQ957K6z3prjE+VX/OlLhjfycmKAy ChCpIEwCiL1zHjPcV2vvSJqGSaOEs5/htUbqMpjCo1j8b8Oo5SpTWlNqHzYQjbHd6Y3o 5RoW12lbWC74aNDzFCLJN6N6r72KvmviQuoAiSsOK+NqJbaUfnZIUQtmZwhmuQMxdcEX MwKuX1e2HBknlDCe9MoqqmSovxX5ItHHdtO7LznJaYgYI42rkU6h9mX4V+orlZ64Gg/3 E5uoUO9stx9J18SypbLUSEB3R0VjA5PDMwKezLWwBa3mG0eb8xqk+uSbUzp8SyOzHJRf Rg+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ziV7ZIrHR31PsBgy4bmj4GcQ2980/NJi9Dgl2kCUoiY=; b=KZiWUxJ4NbZTOTU1p62cvyOh1jHnfdGtQ1o4Ea/vAqpK3FzGXUxcDfeCtfa/EM7EfG KpdkndsVKk9coBEvk1VCsgXASLeDAwTX3BS3kFclJjICE+oQurRuEntxZLBckFdqaXrE ggQh95vCyhoZO2K2jEEDhVGVe0Nimy2Wb2TxPs9z0qQclL8H73tgBXFrWRgCYHaTv5U4 X9aj7wTtb7Qe8Z6QpaVdzFBZauEPaWunIC5xWpJsVQYLh/qjHSQfCxOW+5ebXGPH6afW ynDQKha5afcPT5b07mSnxDlFKZlmyNsXE3g5/2UevySDMm3+cJNbGkExQG1W4oNDV708 NaiA== X-Gm-Message-State: AKaTC0022C0P1WEGcGg+lrZ65OVicki/gT2wPAzRZ5YXAdV/Mi9y4uTtLwJaRIFupc/Mt/bd X-Received: by 10.28.185.203 with SMTP id j194mr3031911wmf.73.1481124147823; Wed, 07 Dec 2016 07:22:27 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id r138sm10198123wme.9.2016.12.07.07.22.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Dec 2016 07:22:27 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Michael Turquette , Sekhar Nori , Peter Ujfalusi , Russell King , Viresh Kumar , Boris Brezillon , "Rafael J. Wysocki" , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Cyrille Pitchen Cc: LKML , arm-soc , linux-pm@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v4 2/4] ARM: da850: don't add the emac clock to the clock lookup table twice Date: Wed, 7 Dec 2016 16:22:16 +0100 Message-Id: <1481124138-27337-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1481124138-27337-1-git-send-email-bgolaszewski@baylibre.com> References: <1481124138-27337-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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, }; +static struct clk mdio_clk = { + .name = "mdio", + .parent = &emac_clk, +}; + static struct clk mcasp_clk = { .name = "mcasp", .parent = &async3_clk, @@ -539,7 +544,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_mdio.0", "fck", &mdio_clk), CLK("davinci-mcasp.0", NULL, &mcasp_clk), CLK("davinci-mcbsp.0", NULL, &mcbsp0_clk), CLK("davinci-mcbsp.1", NULL, &mcbsp1_clk),