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: 87122 Delivered-To: patch@linaro.org Received: by 10.182.112.6 with SMTP id im6csp364880obb; Wed, 7 Dec 2016 07:23:12 -0800 (PST) X-Received: by 10.99.55.30 with SMTP id e30mr121315110pga.75.1481124192384; Wed, 07 Dec 2016 07:23:12 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n22si24494590pfi.246.2016.12.07.07.23.11; Wed, 07 Dec 2016 07:23:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753222AbcLGPXE (ORCPT + 25 others); Wed, 7 Dec 2016 10:23:04 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:35255 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751987AbcLGPW3 (ORCPT ); Wed, 7 Dec 2016 10:22:29 -0500 Received: by mail-wm0-f49.google.com with SMTP id a197so172707813wmd.0 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=h/Za89wbhmSps5Nq6u9SjFFTsoeU208KZ34eF1GGqz0MBuB0U+g38G7EmwrmBlxu+2 opKIxTfVc9eiFkvdvWt2MV/JlWaWw+c1Ue83ZAM/KmyQfb9TKBElXw+WY4jZfz+On+FP hk27A4ccUnIcvAgNy620lFoHEBDcbLdSWbhkaZH5CZ3BYXKnmoqJMYncraITJ0MyGKO7 LUOxw7wy1hPPX5kgn7pSqxtT9vRpZCHmSnnBFnVSKXCSdqLYXE6FNVwq/vWyp3+ntxxr /0I00bIlOuJ/Mblt84CbRk6WusOY2klY7FMNeYvxXTpj2+JnTvlGIuczuzPoSLPy3sMp Yk4Q== X-Gm-Message-State: AKaTC03fGKQD094XX66ZMfsKhQ6zK8B2kVD/kIseI66uZt64XIeyKl1HsuTfSIgkZaYH6yK3 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.9.3 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),