Received: by 10.223.176.46 with SMTP id f43csp4616002wra; Tue, 23 Jan 2018 11:54:02 -0800 (PST) X-Google-Smtp-Source: AH8x226jzXJGT8z88mq57FqXyViCUrGPyLHcdyNSk8DnqZUnhSzw1XWvt6E0yxRGHZJOFiVewu8q X-Received: by 10.107.147.3 with SMTP id v3mr5423380iod.78.1516737242478; Tue, 23 Jan 2018 11:54:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516737242; cv=none; d=google.com; s=arc-20160816; b=iwLqdYAcBWF/ZOoxil6oAe/r3y6ubRYWbSzQx4rVf0H21YPEKrTP3guCDtcT83BBcc 1CDv1pDx/p4KTKjKNph5zfnh0PGXLttFnbHjiKED/5rrECEdO10NxUWpyhoVFN3cKQiO +XHCDsb3gNFv2Cst800cxUF6wH7fsxgW4fO/IsJ3oB3IHl8Lk5lD8FvfuGrp9cDrG1tg pje5/Yxsn01hC1lrgW7AromUXO2+sk6OXvuL9z0P0C61shD5dM8sRei5GgNQUyf8+gG6 SgypZOvcLJwSmlJZbLQYbBsN4XqRCbl4xEhxej2FfYouYWljWUQWiklTeKZrJ/vLRCQ3 7BeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=YPhA+lewPngHSTqQYT8xOVFBd8VaAYjqhJUoSRh+Utw=; b=U5oRpr+dz6nNXzEC9M8G+rxXAdtir+cR5iYvoKAk9kCtDzvQ5MNSUgtJMpkTVjHH+2 Pp6O8H9itifDicLdaWCNQc79fCRYDqVY54RnOM4dzgrePPiW9WMNFRBJXcwrkcpURzI8 mB5ehISW5NI9HSdL3D/Ji4yaBFhjGT7L9DWulkFXu9z2e9jy0pZcFEjMU7HJoIUYT41K LjIl9vlbf+NoqBjWodbd+LKKAEGB+e1wwiPqvZJe8UPUoBgQK4mg2gPdCVvp6wDQr9AV /lhaKkphe35TC/UuLi2aNv93W5MJfDpmfT40vPRyrbNTtDYwiEGzgoD1oQIgLkb7icB6 sIag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=U3+vm7BQ; 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 m16si15809861ioe.64.2018.01.23.11.53.47; Tue, 23 Jan 2018 11:54:02 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=U3+vm7BQ; 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 S1752335AbeAWTxX (ORCPT + 99 others); Tue, 23 Jan 2018 14:53:23 -0500 Received: from mail-ot0-f175.google.com ([74.125.82.175]:39937 "EHLO mail-ot0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752171AbeAWTxW (ORCPT ); Tue, 23 Jan 2018 14:53:22 -0500 Received: by mail-ot0-f175.google.com with SMTP id x4so1512351otg.7 for ; Tue, 23 Jan 2018 11:53:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YPhA+lewPngHSTqQYT8xOVFBd8VaAYjqhJUoSRh+Utw=; b=U3+vm7BQfePqifiimGMXkA5dlvlI1agz9erNxxdzsCm1k51ny2m2L42wkXbq+OGCLD 45YgK2pkeQx3FXWRVEUNV0jc8AjBn7nyxSNxdK/Rj146BP8j3WYNVU+YvkG3738TRNbR XkS1x4YIMkEDy5ARa21w4yhI07Z79s8SeCCb2ryc2+8MtjqryfMt1gAkLAoSuNns9sRa bkWZ1J/1OpFwtj/+cY5bI0C51XPVDgsaT4DTm8PpfsVnAj+kZORqlP5VFGdwOeApWALz c9bk3KLbAEwfZUoD+Zi7zJiwQ9dBHMmDk9XoLZu8/rmweHb4R50ekCU6xpf6+oVC5fvW MmZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YPhA+lewPngHSTqQYT8xOVFBd8VaAYjqhJUoSRh+Utw=; b=JTE01u7+KA00GNJhjJY+aeAs+iCeOKbyrhfAvjra8HCAW6VqC5yczA/c8qIHe7foRk XwHtjEs2QXk9me9/4zms5iGf2QojHqf859zihp8EHdJwpk62XVQMCzGX0D5CQCvxORwq POPf7pTR6WUwiA6+NQGi0W8NgrEprsBUiP2MUMA+/S1B3QzOAcqwiTS36mDL3pWVNAEc RyGRMi2VsLIoSoSjtRExezZwi73QjdQWVkTvbrLnGppoSjA6IAlRkw1fncyhlrqoc31U B+rnFDQ9HhkLU2Cp2qdKXKZC+Gw2qN+Pkzgz4PhIfBeRbclmEG/upyNSN6w2/ZLxy/iq AsrA== X-Gm-Message-State: AKwxytcyoyv9q+m1W8tLgfgiWpVzGHSDDC6p9BQMuekZZmRzImV7lh0f qmeNZ631Oi7x0tqWXPv/2vzO6zWZbR1NrJ73Ur7yTQ== X-Received: by 10.157.6.5 with SMTP id 5mr7163054otn.18.1516737201371; Tue, 23 Jan 2018 11:53:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.24.23 with HTTP; Tue, 23 Jan 2018 11:53:20 -0800 (PST) In-Reply-To: References: <1516468460-4908-1-git-send-email-david@lechnology.com> <615bc302-e129-1501-63be-fa701f5ecaad@lechnology.com> <5f836454-5de7-c51d-d262-2c2dbc26e438@lechnology.com> From: Bartosz Golaszewski Date: Tue, 23 Jan 2018 20:53:20 +0100 Message-ID: Subject: =?UTF-8?Q?Re=3A_=5BPATCH_v6_00=2F41=5D_ARM=3A_davinci=3A_convert_to_common?= =?UTF-8?Q?_clock_framework=E2=80=8B?= To: David Lechner Cc: Adam Ford , 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 , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-01-23 20:24 GMT+01:00 David Lechner : > On 01/23/2018 12:34 PM, Bartosz Golaszewski wrote: >> >> 2018-01-23 19:26 GMT+01:00 David Lechner : >>> >>> On 01/23/2018 12:10 PM, Bartosz Golaszewski wrote: >>>> >>>> >>>> 2018-01-23 18:03 GMT+01:00 Adam Ford : >>>>> >>>>> >>>>> On Tue, Jan 23, 2018 at 10:06 AM, David Lechner >>>>> wrote: >>>>>> >>>>>> >>>>>> On 01/23/2018 10:03 AM, David Lechner wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> You can see if the clock is enabled by running: >>>>>>> >>>>>>> cat /sys/kernel/debug/clk/clk_summary >>>>>>> >>>>>> >>>>>> I just realized if you can't boot, you can't do this. :-/ >>>>> >>>>> >>>>> >>>>> I can boot with the latest set in your git repo, but the Ethernet >>>>> doesn't apparently fully operate. I don't get errors, but I cannot >>>>> get a dhcp address. >>>>> >>>>> I'll try to do a more exhaustive test later today to get an idea of >>>>> what works and what doesn't. When I ran my basic tests, I just did a >>>>> feel-good boot test (and reboot test) >>>>> >>>>> adam >>>> >>>> >>>> >>>> FYI: manually calling clk_prepare_enable() in the davinci_mdio driver >>>> seems to at least fix the ethernet. In master branch it's done by >>>> pm_runtime_get_sync() (in davinci_mdio_reset()). However I'm still >>>> getting several oopses and WARNs so there's some more work to do. >>>> >>> >>> Hmm... I'm wondering if we need to also add #power-domain-cells to the >>> PSC clocks and power-domains properties to the consumers. >>> >>> For this specific case though, it seems strange to me that the drivers >>> to clk_get() and clk_get_rate() but never enable the clocks. >>> >>> >>> Also, are the oopses and WARNs the same as before? >> >> >> No, the ones before were all related to the ethernet failing, now I >> get several stack traces from drm. Posted them on pastebin[1]. >> > > It looks like the LCDC driver is the same way. It does clk_get() but > not clk_prepare_enable(). > > In the mdio case - the problem is that devm_clk_get() doesn't fail, but somehow the clock doesn't end up in the list of the device's clocks - which is why it's not enabled by pm_runtime_get_sync(). Bartosz