Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5510133pxu; Thu, 22 Oct 2020 04:26:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaEMUWiDUq7js/0Ykhl+OcEI2J1mBZNTuIrAx07mSwTxEU/0o6gsXeH6ej3Cdhmr4HHOiS X-Received: by 2002:a17:906:660f:: with SMTP id b15mr1847281ejp.333.1603366016898; Thu, 22 Oct 2020 04:26:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603366016; cv=none; d=google.com; s=arc-20160816; b=Xas2LLm2jnAUO5YVj4B1c1P5mcJytlrXIzUwnNg32holtAk8AcrCjxGbAf4tYEAE0O zyZXwQ+Kle+wVUURKT/jy5WI+dQ0aOYFjeRiu1yT8m1oV/RUIquJ9HVaaqZgm9yzDFq5 +I/DjAzaZldgnH3cmX+FBKZqJqla47cBfpWXKlvL4LGe5+ZcehyN2pGQ+j6LD1D1jbvl kdUgKRStBz1d6CPeht8R+Iu64fIsWz3a3RP0v84mfe+7Qjnj3PcaoO05ofKNQ8vkUgx4 Xa7TvSlXs+MwX6jKfSlagEFP8TcDgyIoOHbORXkNYI5p6YvuTrrlqSeiPYzpoILefDRp yW7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UI2P/yyao6EznjeZr1h9V5wwTm/lr2jsyR7CYvPpJn8=; b=FBerzwG3acP72Ym9al6KEPraMDC+6XaNAC74jD0ZfX84ObiP6QXjYv4CFW02nj66rh kXe65DOPdaQ10XNJ6KtoUq0rNUQY5fArB/1a+uoj254b3RL7f62IxpucTAl2TRUg/vr1 negyLFliOo/WJM6m6XGJazyQnQmNgzJ2VB6MRjNpBzSF0yJbSWIjRyxJu0aVUX+uqYt/ 7c8qod/VRBe1jc+Wq+GUVjpqNZTkAdEMbZmrMvQWL9khTcH9Eu0fHgFz11zJuJmKbhQm jx2gv65n+Qk0/uCxAWE47XlPlBW77a7HQ1zNyG3CpwZAeQgWFZSP/AudKLSluNVdzhR5 l0BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=sGEe0ZSs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lf14si671248ejb.720.2020.10.22.04.26.34; Thu, 22 Oct 2020 04:26:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=sGEe0ZSs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2444546AbgJUQV4 (ORCPT + 99 others); Wed, 21 Oct 2020 12:21:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2444530AbgJUQV4 (ORCPT ); Wed, 21 Oct 2020 12:21:56 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46481C0613CF for ; Wed, 21 Oct 2020 09:21:54 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id ce10so4107409ejc.5 for ; Wed, 21 Oct 2020 09:21:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UI2P/yyao6EznjeZr1h9V5wwTm/lr2jsyR7CYvPpJn8=; b=sGEe0ZSsBq2hxXtN4AppUO1Zi4qpE8rjaTwX9Wi5YMoUpfkKpWDeC8/ptxqAH7PVfT W2Wm/iYiW8Gy1hphh3YxpoKfkJS4qpIFENQQtiX5j6O5Lu/vCGSyezztx/pWVwrbOR7y FEsYm1MaFmx0ioASrEdPyTgGZ8i49rzkz3JDUnjItBHliozJJrO7da0ibDypAqBVKKik fObm9XdOL1ZOsJRzednQvcOqJw1q34CsvIsayRX3amK+jvKt/S9StRra6V+I0s5WbUcj 9LJORutEbazY+hbuHPmEtbhKBdvVkBNksZgc9QFUMkpkc3O6XisHdQ3W0kl0fKWKi+4M Wp/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UI2P/yyao6EznjeZr1h9V5wwTm/lr2jsyR7CYvPpJn8=; b=pb76NKGXgiF8pUcZ0DYvCsrAwFJSSUCI4JxKsFfWCR4J2VthPMxAN2JKQ/VMZ0BAC4 FYiTWWX7u2EoUrgh4/n5WbG7Xh4923ubqwlWY619WsOAUBRSvdc3q5T6ZawrNOdf5pco ckCruftyXHnDhrBGa+hUoVKwsPzYr//Q71bfPUvAzpygyXOr8Off3ymh0j0MhDs2Gili gpUfzK8c8BVC9VvlPNPMjr62AYQ6A/vGJLTLfbAYLNn4c1dVdV+NzlxS6K3G3SD8NtYY PCVWLZ3wHOWM7qknktJn/sav61xnnYvpYk1yMsDxK2uSuvfHDlbtqCN1FooBnPcHc1Lk fUMA== X-Gm-Message-State: AOAM531UbLD76d3JUrNIVujwPWoyqOC3iDXMBPqL1/g2FOWbdTqMWivM EmrvmkRzfLHn8g9rwEtcU4TjRg== X-Received: by 2002:a17:907:2089:: with SMTP id pv9mr4460227ejb.427.1603297312942; Wed, 21 Oct 2020 09:21:52 -0700 (PDT) Received: from starbuck.lan (82-65-169-74.subs.proxad.net. [82.65.169.74]) by smtp.googlemail.com with ESMTPSA id 11sm2566667ejy.19.2020.10.21.09.21.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2020 09:21:52 -0700 (PDT) From: Jerome Brunet To: Stephen Boyd , Martin Blumenstingl Cc: Jerome Brunet , linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Kevin Hilman Subject: [PATCH v2 0/3] clk: add api to get clk consumer from clk_hw Date: Wed, 21 Oct 2020 18:21:44 +0200 Message-Id: <20201021162147.563655-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset a call in CCF to get "struct clk*" from "struct clk_hw*" Changes since v1: [0] * Add a con_id string to help keep track of the consumer * Add devm variant: - Following our discussion on V1, I choose to have the dev as argument as most devm function do. However, as Stephen pointed out we don't expect this to differ from the one linked to clk_hw. In this case a warning is thrown. * Add a first usage of this in the amlogic clock driver. [0]: https://lore.kernel.org/r/20200519170440.294601-1-jbrunet@baylibre.com Jerome Brunet (3): clk: avoid devm_clk_release name clash clk: add api to get clk consumer from clk_hw clk: meson: g12: drop use of __clk_lookup() drivers/clk/clk.c | 73 +++++++++++++++++++++++++++++++++--- drivers/clk/meson/g12a.c | 68 ++++++++++++++++----------------- include/linux/clk-provider.h | 5 +++ 3 files changed, 104 insertions(+), 42 deletions(-) -- 2.25.4