Received: by 10.213.65.68 with SMTP id h4csp1409566imn; Mon, 19 Mar 2018 03:28:40 -0700 (PDT) X-Google-Smtp-Source: AG47ELuciawhVQCKPMogRU5VD24sUe3gHiR4bV94kFlXVqvq8WQXTrFNvNx7YUbvozY4nOw5J+3i X-Received: by 2002:a17:902:20c2:: with SMTP id v2-v6mr12228982plg.82.1521455320627; Mon, 19 Mar 2018 03:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521455320; cv=none; d=google.com; s=arc-20160816; b=UZq6OlEpQNekFk5ftZli8i1yAjS5U/BQ+FvO1NKgopJyGQU7WK3uzvojqpIEnwjtVC rsjP3aeSGbqbqR/z7oTJkvztkLZ3K0MJZ057Mlh+b7trhFv/i0DR2uz87hiweBWppgqe +r3wRs4E4uE/yJKkOD8XZJ8q+x8EHd/A4weuU1yGoVMjccybgxUNzTplVyQYtnaCJKPD A+26N+mMAcRr4He6X9XVmhKvwiZgGjusyKdad3Pi9KuMCqe/f2z+wwU8ru/CjFQnZneL 2+734BUTa9F8EReIPaFYHnlcsBFAjW6plrrCKnlO3Oe6/FlC41SpSZRGAVCrorIJDkTD GtPA== 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=kgatJLLPsWFcTYo5Sxy+hcTMLcMjN+DjmhPyl2nIkDQ=; b=qkoAnJ3ES2QtLNKBnpaw5oHXyZFQ68grx4E3mzLVhjg/3KBIIM9Rsffj8ABm29aaIb W6jhoZgu8PG+/gz5tVhNUlFiDshV3qYXh2ZGD5eeDYDnZfZDO5A0lcnT/MXA0e1PhzOD Rk856o5Qq/kktxMQFsDEdGnuio1+k/RupSy4QDAW61RkVUGyEPHb66P0Xpj3TMWcx5L8 Qz0ZM4v4Uvr6xwu1TE+KraIXcyPuxKBtAmzNOX0k0BhmOIcqGQgzE9O1Sx7TCA4Clp9x Zw8VWB0G6b1s7NNvkH0kdmnXY5pK6H2xJ2caS0ZkARz7bRF24EgQ2vRZzf5lKJn+E1mD XrtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=aEpDBkXb; 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 j8si9371022pgq.293.2018.03.19.03.28.26; Mon, 19 Mar 2018 03:28:40 -0700 (PDT) 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=aEpDBkXb; 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 S932354AbeCSK0m (ORCPT + 99 others); Mon, 19 Mar 2018 06:26:42 -0400 Received: from mail-ot0-f173.google.com ([74.125.82.173]:43503 "EHLO mail-ot0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755372AbeCSK0h (ORCPT ); Mon, 19 Mar 2018 06:26:37 -0400 Received: by mail-ot0-f173.google.com with SMTP id m22-v6so16785271otf.10 for ; Mon, 19 Mar 2018 03:26:36 -0700 (PDT) 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=kgatJLLPsWFcTYo5Sxy+hcTMLcMjN+DjmhPyl2nIkDQ=; b=aEpDBkXbhyvX3wcxlA+JUhPag38z8dTo/l6Tmb4kYYnK0KKQ02lqz905jWABiTlS3k izKKPOQx4avXeZy21TM/T6ZuXNhUMH1KG4qtKH0tPhdcY5J7Wo/EkxuAQixVOCdCb59C lt3VH4ncJnmopD3CrHZNde9HW5Nf23bdxfZsem9aYHd5TFey3BThHw3nmBUoeGyIOdyf t9tpyZ1Ac7pXiDvQjWvjz85s/wJpWkL9iGO4C9NhfAlDk1HtwdR3A7aT8JGA8x57qqJU l5kdlH/tGcUBls7pzq2YCRRpmMM9kAbLd1hDa2ExCeQ5Rv7faCMerxuCmgJY80aGn5hU lxaQ== 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=kgatJLLPsWFcTYo5Sxy+hcTMLcMjN+DjmhPyl2nIkDQ=; b=SjmjGGfTx9ekFwtRdifN/Gd25KJrZHrVfm4bcWUmtqx29jyLMs8KlJEt/Zm66XU3RY W/jf3n93B1sIBx0K1W2zqWxjVMPzvfTUQ5GxfR4ijoXJREzQjoQev+8OIktr5xkusIya gX5Sogd9yv6Wis3F1h9FX6ve/XAEZAFwSWZt8LjsHWHocLIgaV/SHnUVUCqZ4UEGuQnn ccbrBELZBeIRefP9v0/XJis+55Lha0Gzmm62CkwYmw5zRQ3iZ89OtFsB8d5G5/HycKZ9 nsfs24u76sLVASpWOrDkO3XxgsnOmhlsro7y4YyZxiIQtig9mP12lIqhJaG/jrCwJMdD Lbvw== X-Gm-Message-State: AElRT7FtoAbyBnS/6dp1G074qA56LNnftafdNp5chwfhXi2rOBeuz7xU DGO8q1+4ZaJkuEsYFwTG/5q73WyHlKJzihTmuQz47A== X-Received: by 2002:a9d:2150:: with SMTP id l16-v6mr2774957otd.394.1521455196464; Mon, 19 Mar 2018 03:26:36 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1426:0:0:0:0:0 with HTTP; Mon, 19 Mar 2018 03:26:35 -0700 (PDT) In-Reply-To: <152122292977.70929.17084619305591596735@swboyd.mtv.corp.google.com> References: <1519071723-31790-1-git-send-email-david@lechnology.com> <1519071723-31790-11-git-send-email-david@lechnology.com> <152122292977.70929.17084619305591596735@swboyd.mtv.corp.google.com> From: Bartosz Golaszewski Date: Mon, 19 Mar 2018 11:26:35 +0100 Message-ID: Subject: Re: [PATCH v7 10/42] clk: davinci: New driver for davinci PSC clocks To: Stephen Boyd Cc: Bartosz Golaszewski , David Lechner , linux-clk@vger.kernel.org, linux-devicetree , arm-soc , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Sekhar Nori , Kevin Hilman , Adam Ford , LKML 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-03-16 18:55 GMT+01:00 Stephen Boyd : > Quoting Bartosz Golaszewski (2018-02-28 04:38:38) >> 2018-02-19 21:21 GMT+01:00 David Lechner : >> >> I believe there to be two issues: one is with v7 - we need to increase >> the clock reference count in davinci_psc_genpd_attach_dev(). >> >> Second is the error path in the clock framework - we should remove the >> destroyed clk_core from the debug list, which is not being done now. >> >> Why we even need to track the refcount of clk_core is a mistery for me >> though. Stephen, Mike? >> > > Which part of the code are we talking about? I see that > __clk_core_init() calls clk_debug_register() when ret == 0 and that > looks fine. I do wonder why clk_debug_register() even returns a value > though because we ignore it. Hi Stephen, invalid usage of clock pm ops was the culprit here. I just had not understood why we count references in the CCF - now I get it so nevermind this mail. Thanks, Bart