Received: by 10.223.176.46 with SMTP id f43csp4532730wra; Tue, 23 Jan 2018 10:35:28 -0800 (PST) X-Google-Smtp-Source: AH8x227gVXWCcc7vWo1FeB1tTgy0o9y9cq788Ey6otzFUgc9nq0wk75NIbsNWCGC49rxR9GRTNuA X-Received: by 10.157.11.4 with SMTP id a4mr7407957ota.290.1516732528500; Tue, 23 Jan 2018 10:35:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516732528; cv=none; d=google.com; s=arc-20160816; b=hsSsSz2t9dHd+tzgAhADF39qBGzLL5+fJUEoUSWgdFTGzgZlMEDPCDxQxJotqMn52G QarjTilN7IUu9oDLCgrc5EI1QsgdRr080fPWyI7hvW8MD3T9hE+nD11e0KKAaQXjsRqf 2TK9XKvF2rNN6LOSoudrWW/8uUr+L5f31GXxHEZ1d1C0EROHSRvaEa6QzDL5a0aIzMAS uZVgHfSa0J/5bX2MPpSVXJ/BGpBA0U5ERjiKbJEMtd3wlTecAw7XG2Yd8AVWaIdWJ+KG f/6tG2Y6wEzH5FAtoSrbq2ftJ94967vnhYzQ0xFYfEZquf1bXNXwCdcy+Ha8n7eXnqgo uX6g== 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=uqLZOMVDblbh97gSbSMWjwOAZgfRy/lhjK5akAvoz1k=; b=AJhSPTso4WJKoxO4d29Bk1dGtwFmY00fTBwLN6dK3F3d56GhOB2mTJCOabu29ym8pu VUUY9ZUNcgCOQnuMhgLeDWU1OBgrKrKNMvmT+3p+qd3ra5L8m9I5emZhqUmuMwcX3hqT IMTQgc4jQ+heH/kRGMhUss9P0GoYyGHPbohhUE/TWrNaW1VgCJRUMQkpjWv93K9LnuBn DTKTU/faW5EKyuoXva7tEX0OfVPn6dIAZVkJhicfKXn+OVX+z5Y+UlgiC8N0Wx0S0fFc D5bYq8Yw/UMpoQ7In1OltpAnoMVAoHd7bq4kXiNr/3zcLOhUWT+tl8xcUUD7IKt832H4 dFOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=pma2wqKM; 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 h7si14881489ioa.217.2018.01.23.10.35.13; Tue, 23 Jan 2018 10:35:28 -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=pma2wqKM; 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 S1752329AbeAWSej (ORCPT + 99 others); Tue, 23 Jan 2018 13:34:39 -0500 Received: from mail-oi0-f54.google.com ([209.85.218.54]:36034 "EHLO mail-oi0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752132AbeAWSeh (ORCPT ); Tue, 23 Jan 2018 13:34:37 -0500 Received: by mail-oi0-f54.google.com with SMTP id w135so1047327oie.3 for ; Tue, 23 Jan 2018 10:34:37 -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=uqLZOMVDblbh97gSbSMWjwOAZgfRy/lhjK5akAvoz1k=; b=pma2wqKMDyGQCV8vQqTVgGC3lfdEHZTesSjcnZ6/TkD65CofKmOemX+465JPrQi14h QjKAxMPlyfK30bOuZjMaAqCywo9EER9LZIkcZfUSd+PbTaMCJWxLOUyPrH4PBBerQ2np rE6F3OgMXgJv2zn0JhVzC25+YOqSUbZ3QjTlj8YEArhd79OLVmXykcl8LgZ7d7lhCtbo fhOrW07NdYsz346f3OPcSpAGJ/pq465vNU39rD/Q8vq3waznvzcKMu6JdCwiMrVlc1dV l4AcgmpQ8MbDUzBhSQAe9d1Vjd+teQMM0LjkQGYYIkc7F80+yjKzcKIbi5C0UIfOe0Eo Evzw== 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=uqLZOMVDblbh97gSbSMWjwOAZgfRy/lhjK5akAvoz1k=; b=cW0hdRIhjtmOmkyWbMgM4e4gd4hYrDpyar0Y+uTaeazFFO3V8kLDF5eLna2VkBBXyS E6qnBg/4xBJoDx0CZD7eyJ/GE3UBsheCmlWET4v49g2PM2bewTS6leOOEZkBIqiXUNFK WEvazLM5GDYglgd6c4PsB2EK+2I4Vmg0kfoc2wd+B5D/3grEGORCKLZO1Z/IdAnqWN/y n0AMjUVaJbJUCnA96Bims0M4RgC4vYPTI2XhXRErlNamSWKDxzXJ6vLG/LYAEsYur+s+ pwAs3nWy4ydP/quZcLn+IWwJ5EaTBAA4f1uonK8rTGI9Jy3qdTNnV5yslp2URWcvFCH5 zpNA== X-Gm-Message-State: AKwxytcdNrABNY2JdNq3xiuFiyC5tetxWcySXLY0Z3m/javE3jApwT2C 7GnrjY5JSMZGAffFEl9NtW7pWkU7YTNS9rAhlVTzYQ== X-Received: by 10.202.57.65 with SMTP id g62mr6414352oia.357.1516732477122; Tue, 23 Jan 2018 10:34:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.24.23 with HTTP; Tue, 23 Jan 2018 10:34:36 -0800 (PST) In-Reply-To: <5f836454-5de7-c51d-d262-2c2dbc26e438@lechnology.com> 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 19:34:36 +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 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]. Thanks, Bartosz [1] https://pastebin.com/H3yZ5xHv