Received: by 10.223.176.46 with SMTP id f43csp4631169wra; Tue, 23 Jan 2018 12:06:12 -0800 (PST) X-Google-Smtp-Source: AH8x225ZkylqQxhQFYP8609Mi7Bt7PdWlz8jt7O5ikBpg8M/kQYFxflZuTZXgoKQvzDW14cIHMI6 X-Received: by 10.107.187.4 with SMTP id l4mr5430171iof.2.1516737972397; Tue, 23 Jan 2018 12:06:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516737972; cv=none; d=google.com; s=arc-20160816; b=lJEKjcdWOzhh54ugZPAs0JMmPfPQRXJJlYdQaVSDG3xlYjl7xKCWVBhTF+TUGliBK2 v6409LC3sI35YH1GbhnCCjEY4n3VeUi/QSuEGfeFWts12/IOD5IkEa7q4+mg2X+rIRGz bc0jmRTeP+z15dixp95TCuvCGI4MOw8lxUdJTVLPBnwF4XWIb8Cgh6JwLlLAUGMq2VJ8 42BGrF8OBJMjlT7jgwAh6DNM4+B6NJKlCr5yS8hqAPIJPdWk7KeheifU0ztTBLioXy5X X+Te0QbHrBOSgpGNY3tVqXHSrBkz9F9AHPpTNB6f/t/eRSxg+zQJLCTG3kdqBefgLLFQ ZICg== 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:references:cc:to:from:subject:dkim-signature :arc-authentication-results; bh=2fAyo4OGEB07UwMq63co3YROJ3biqg7WLXV5lwTCjh8=; b=J5lUkhMTEgDyne7GxDnB+vWz1g1gvWd0SL/BxuweriKjV0LubllQ9w5vcfaxqplCT6 FbnL/PO4E0WyPIwLZg2O+MU1IEx55Db6CsK5U9UYNqwbJ2BV9EDsyFiYIWA3nt6L5qWK PvR8aUzzVeMIw0kSRWZavuYx9p3JEnTREVWR81OFjMqrOwtQRi79Pz+0fvZqmGq5i0iU z5xd67lzcryk9k51cPt0O2fyXeSh8Bw019Pugo6g7Tp/hZqUKtzSpMt2k3oFiOe2ORIL dxnJ3tCGsn8vJ4pS69J8TwV7rH7ytirS9Qh04PBpGLu4CbWxSUK248/nf+CjWMKi+NF9 drfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=Xj5BQ/z5; 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 i125si9204211itf.73.2018.01.23.12.05.58; Tue, 23 Jan 2018 12:06: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=fail header.i=@lechnology.com header.s=default header.b=Xj5BQ/z5; 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 S1752513AbeAWUFe (ORCPT + 99 others); Tue, 23 Jan 2018 15:05:34 -0500 Received: from vern.gendns.com ([206.190.152.46]:35821 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752336AbeAWUFb (ORCPT ); Tue, 23 Jan 2018 15:05:31 -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:References:Cc:To:From: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=2fAyo4OGEB07UwMq63co3YROJ3biqg7WLXV5lwTCjh8=; b=Xj5BQ/z5PVnu8b3UMszFW9U7Ks BgNJiv6gu94B30pGuLzmf1AJib5VEntVndvJMDrjstRmpbK4QlDCXrG5O6Pcww+fzLwW0RqDJ6KB5 6U26TOOC0iHrqVPg9pfqZB5wk5IoR/qpwoWc1XFCVmPQanuOnaW3zk3a2+yDyDQBXCCBpfztUWNr8 5etn/JOvqWaphnsi0u9khPPBZi0Q6XumcO7ocmJ2tzBEAuyzddD+cyeVmgzGrHV/P3S10xf51fQqo 4RHLOfpLo4BCxCE9UJly2py02aagoUXxkiOr/PnlmIIosQCCZ9AZ55CdRL8TY+iSoihYXGDBbyidn MrBe4t0w==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:59932 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 1ee4oL-0040zD-Qw; Tue, 23 Jan 2018 15:04:50 -0500 Subject: =?UTF-8?Q?Re:_[PATCH_v6_00/41]_ARM:_davinci:_convert_to_common_cloc?= =?UTF-8?Q?k_framework=e2=80=8b?= From: David Lechner To: Bartosz Golaszewski 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 References: <1516468460-4908-1-git-send-email-david@lechnology.com> <615bc302-e129-1501-63be-fa701f5ecaad@lechnology.com> <5f836454-5de7-c51d-d262-2c2dbc26e438@lechnology.com> Message-ID: Date: Tue, 23 Jan 2018 14:05:22 -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 02:01 PM, David Lechner wrote: > On 01/23/2018 01:53 PM, Bartosz Golaszewski wrote: >> >> 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(). >> > > > Right. This is because devm_clk_get() now finds the clock via device > tree instead of a clkdev lookup entry. However, I think that the PM > notifier registered in arch/arm/mach-davinci/pm_domain.c only uses > the clkdev lookup to match the con_id and does not use device tree. > The same thing is happing in mdio, emac and lcdc. > Minor correction: It looks like emac doesn't do this because it doesn't have a con_id of "fck". But, the same clock is shared by emac and mdio, so since mdio enables the clock, emac doesn't notice or care that it did not enable the clock itself.