Received: by 10.223.176.46 with SMTP id f43csp4344576wra; Tue, 23 Jan 2018 08:04:19 -0800 (PST) X-Google-Smtp-Source: AH8x224eI4MUSqzaFnmfuLjhq83KndISkpjqANULOOIXcI+Wo9i0MbE6XIFLiTWBwLMvvtjkKvDK X-Received: by 10.36.105.17 with SMTP id e17mr4329781itc.84.1516723459666; Tue, 23 Jan 2018 08:04:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516723459; cv=none; d=google.com; s=arc-20160816; b=gO4sZrdjyjF03E2U9WsSkfLXae6xk2UYDQLAyI6drcXDE4dsqzYv1sXLI0bOoHtJgD ElhXg1PQWAdQYZh02j/V6WmJAvib/NkxE4AWAePOxOk6TiaMyNU+7BJ4Ri4NOQE6x+xV bHjiutfY+7Gexi42fslREQ9nV/X3f8WFnDZJgQtwJJgmJWk6T8g9/58uifypikynpnZ/ Ks9vcU8OzubxhT2BaCW6l4cq9NUOrLjGiy4pG9ertv9GJgZDwmzWTpFk27YhQnrVN2yE scnvP81had6uwLFycd00bJH0RRCJ6Vz+oeseK2c8UoBzLnGIJAliOZZgbHy9fK8r7fqq N87A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=/TMekwWKW0IznNU19+Hbms0G/V4KQE4lVwjsZesPMuw=; b=hcpH+gN/kDWdvaMdaObID1iWTgXGbSISBWPdPX1ZUsUzj6xZ0ErLZGLW2VKO9VcDuC FlNkJEdoc/Z4W+eTbhIWyjBOeBoHC7P/7APfOa2B6ShFehAq96/8g8vAbMZC/GV51Rnx fpFSPtquRdRFvlCwpDVs11YJZTaeZ/DZCDWeVKchNeV/L63LMTzjGum2+cRT7prXZZQ3 HoOusOHdMnbA6BbiJ6ZGHifOntjgYluA5Dc/l72IBBnRN09vLl7sok0+RSTyW0oK9om6 DfVO6oq3NRBRJ5NLzaOLUxkmICW8GBl1NGoCJRmbg0dAaFRoGW4I39GAgp1W+kX96rEb FNCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=ahjJJfnU; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k198si8650995itk.116.2018.01.23.08.04.05; Tue, 23 Jan 2018 08:04:19 -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=fail header.i=@lechnology.com header.s=default header.b=ahjJJfnU; 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 S1751987AbeAWQDX (ORCPT + 99 others); Tue, 23 Jan 2018 11:03:23 -0500 Received: from vern.gendns.com ([206.190.152.46]:54866 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751255AbeAWQDV (ORCPT ); Tue, 23 Jan 2018 11:03:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/TMekwWKW0IznNU19+Hbms0G/V4KQE4lVwjsZesPMuw=; b=ahjJJfnUYsKys0sVLdmLeqv/EJ aiujxOmjGQY2qDK3WNKaasCvqpnrsdExnLoM/WAPV6tDPH3hMYI6ZGQ/Ff0+r9L7wF12QjRSAk5mn WDGZXON0eeVCepTEB75LBuXzVbcrSz8rQte3onZW3wcb2b5UOeIl2AMAWP+s2ml/dlw1PmwxHEPmR fYiTgSVVk9q1tcG/00MxPi+k1sHlLJLH6AIMYT2jbLM8cBzspG1F75L3wBD6CsTtnDG5DIr+WoeYg FX6n1SQZGGhDCAzC2dTukQg+IsJqiqFtiOB48koPkWmRXBrrGBBG9A/gATyQfxUVa54IjVpVDnwB9 gR62q6+w==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:53126 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1ee11y-003M3H-So; Tue, 23 Jan 2018 11:02:39 -0500 Subject: =?UTF-8?Q?Re:_[PATCH_v6_00/41]_ARM:_davinci:_convert_to_common_cloc?= =?UTF-8?Q?k_framework=e2=80=8b?= To: Bartosz Golaszewski Cc: linux-clk@vger.kernel.org, devicetree , linux-arm-kernel@lists.infradead.org, Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Sekhar Nori , Kevin Hilman , Bartosz Golaszewski , Adam Ford , Linux Kernel Mailing List References: <1516468460-4908-1-git-send-email-david@lechnology.com> From: David Lechner Message-ID: Date: Tue, 23 Jan 2018 10:03:11 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/23/2018 08:54 AM, Bartosz Golaszewski wrote: > 2018-01-22 18:30 GMT+01:00 David Lechner : >> On 01/22/2018 05:14 AM, Bartosz Golaszewski wrote: >>> >>> 2018-01-20 18:13 GMT+01:00 David Lechner : >>>> >>>> This series converts mach-davinci to use the common clock framework. >>>> >>>> The series works like this, the first 19 patches create new clock drivers >>>> using the common clock framework. There are basically 3 groups of clocks >>>> - >>>> PLL, PSC and CFGCHIP (syscon). There are six different SoCs that each >>>> have >>>> unique init data, which is the reason for so many patches. >>>> >>>> Then, starting with "ARM: da830: add new clock init using common clock", >>>> we get the mach code ready for the switch by adding the code needed for >>>> the new clock drivers and adding #ifndef CONFIG_COMMON_CLK around the >>>> legacy clocks so that we can switch easily between the old and the new. >>>> >>>> "ARM: davinci: switch to common clock framework" actually flips the >>>> switch >>>> to start using the new clock drivers. Then the next 8 patches remove all >>>> of the old clock code. >>>> >>>> The final three patches add device tree clock support to the one SoC that >>>> supports it. >>>> >>>> v6 changes (also see individual patches for details): >>>> - All of the device tree bindings are changed >>>> - All of the clock drivers are changed significantly >>>> - Fixed issues brought up during review of v5 >>>> - "ARM: davinci: move davinci_clk_init() to init_time" is removed from >>>> this >>>> series and submitted separately >>>> >>>> v5 changes: >>>> - Basically, this is an entirely new series >>>> - Patches are broken up into bite-sized pieces >>>> - Converted PSC clock driver to use regmap >>>> - Restored "force" flag for certain DA850 clocks >>>> - Added device tree bindings >>>> - Moved more of the clock init to drivers/clk >>>> - Fixed frequency scaling (maybe*) >>>> >>>> * I have frequency scaling using cpufreq-dt, so I know the clocks are >>>> doing >>>> what they need to do to make this work, but I haven't figured out how >>>> to >>>> test davinci-cpufreq driver yet. (Patches to make cpufreq-dt work will >>>> be >>>> sent separately after this series has landed.) >>>> >>>> Dependencies: >>>> >>>> This series applies on top of linux-davinci/master plus the following >>>> patches: >>>> - [1] "clk: fix reentrancy of clk_enable() on UP systems" (in clk-next) >>>> - [2] "clk: add helper functions for managing clk_onecell_data" >>>> - [3] "clk: divider: read-only divider can propagate rate change" >>>> - [4],[5],[6],[7],[8],[9] series "ARM: davinci: common clock prep work" >>>> >>> >>> Hi David, >>> >>> I'm getting a splat[1] when trying to mount the rootfs over nfs on a >>> da850-lcdk. >>> >>> I'll try to figure out what's happening. >>> >>> Best regards, >>> Bartosz Golaszewski >>> >>> [1] https://pastebin.com/D94z8SAe >>> >> >> Could it have something to do with the "rmii" clock? I don't think I added >> that >> in the device tree. >> > > I'm looking at it now. There are problems with emac & mdio both in > legacy and in DT mode. Adam, is networking working for you on the DA850 EVM? > > The davinci_mdio driver seems to not get an actual functional clock > (phy is reported as down). I'm seeing that in old legacy code, > mdio_clk has emac_clk as parent, while after your changes they share > pll0_sysclk4 as parent, although I'm not sure if that has anything to > do with it. The two clocks prior to these changes was a hack to work around a limitation of the old lock code (because of the way it used a linked list each clock could only be used once) so, yes, that should not have anything to do with it. I see that there is no clk_prepare_enable() in the mdio driver or the emac driver. I suppose it expects pm_runtime to take care of this maybe? You can see if the clock is enabled by running: cat /sys/kernel/debug/clk/clk_summary > > I'll see about the rmii clock too. FWIW, the rmii clock is in the clock init for non-DT da850.