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: 9464711 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 3014260459 for ; Wed, 7 Dec 2016 15:24:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33523284BD for ; Wed, 7 Dec 2016 15:24:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 25B5428493; Wed, 7 Dec 2016 15:24:58 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id BD2EC28493 for ; Wed, 7 Dec 2016 15:24:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEe42-0004VM-0E; Wed, 07 Dec 2016 15:23:22 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEe3W-0003vW-0o for linux-arm-kernel@lists.infradead.org; Wed, 07 Dec 2016 15:22:58 +0000 Received: by mail-wm0-x229.google.com with SMTP id t79so171774807wmt.0 for ; Wed, 07 Dec 2016 07:22:29 -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=BoJmQwUDZOiHNFYMjMTB/W3OD+BlzEQhW7j+rqs4eT4+fTRWuOR5NtSDgg4Hxho19J coctk/QMTbVtq31omQGjN2WGL/COeZ3BFFt1IB4atWzyamkhuaoI1i86oJASRLIMC1ih AH7JIMDZ2PFI19phCgdwt3BFNrNNLmMa+m79Y5lofJ3kPRZ10nF6xG1NWvj2MWWAMUT/ njxfnPiJSEdChxkPbyfosS9YlrJm9ZoR70Mq9lsGcldTPIl+1nNXsTjvAFZh5TpYFOjx Uy3jhmzicd6NzBqruakEjxD0/YvV1pD/VCrQYhOuplIjiP5n5tH8IKG0+cTKcz2Rm0G5 WrlA== X-Gm-Message-State: AKaTC03mqlERHYXh0rbNUnFXKAwSuOsanjWJYmYdluwzYFzZvpA9WvRfSwkxVngvc3XAkpn8 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161207_072250_401206_AA68ECE8 X-CRM114-Status: GOOD ( 12.45 ) 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: Bartosz Golaszewski , LKML , arm-soc , linux-pm@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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),