Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1778058imd; Thu, 1 Nov 2018 23:55:45 -0700 (PDT) X-Google-Smtp-Source: AJdET5ewPkJSXgQjLYq+X9GbKhmxskTxJTTX0vmyswAaCYzzqSdw9TwyGoGqkM4xrcP/7lhzx2hD X-Received: by 2002:a63:d949:: with SMTP id e9mr2493214pgj.24.1541141745474; Thu, 01 Nov 2018 23:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541141745; cv=none; d=google.com; s=arc-20160816; b=ecDxhvOYWyHufKi5E77nQlmOAejb2NfBvFKcnxaH5JJkH5yQranoTNpj5RyGFrL15C odUl9WAMlP6fjbQOeKnjh1rPVsrYIRMB8XzGMF4WOH5mOFCgPDiXNns2JXYZUnRKdqus HZg9VA060twtr5v9AK2M0lA/K0+MAVdKXeqISzI7n4DeXin4QlLTUwiIVHTBnCAoOh6M xIatRH1TNEBnwKOwQ/a6DL2DhW84G5T2AWHZ4I7cNeso5DtFcgjEIYHi2VIY+8b0uBiz /qLWHqPTSUe1eVodlNR4dykwl3gs3U5c/NmHrh4T8ezl6qXPVzu4zvkxCinlGctiFD+g E8AA== 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 :in-reply-to:references:mime-version:dkim-signature; bh=zFD5aM2ikf/JqmpGlQ0Z8eh3qdhiC1JiaXgFQT9lgis=; b=PprC9VwJWYcfxUADTvhqSzdJyaIpMVIu+09Tnj8D0Dzsub7w42+kxOghrAiyOvrRqd DRj8J/wH9BkSPv2lQaRGLJrMffJvpwKoxxHaAfDq1IQ9OyGrDTIu28gjWo8SDhFFawof +ctCWbmSi/ot+vQxUwlmTARddgo7fPDeCGND6yH9fPV6Ira5GkjS6+jS6IeDLOfLjWK+ ZpD4SC97kORTTmO9QuPoKxXQwcAgFGdX6WUNpwsKi9t5QV7Z4ZW4C7IfjSrDezaR9JA8 xVeFp13oA6LmbkZuSqmeKvgmVkYnOJd2KeEssNu/7jXghJHBRDEX7Ccw11+cXcCSbWW2 m/tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h+UKKFso; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 83si4204510pgf.572.2018.11.01.23.55.30; Thu, 01 Nov 2018 23:55:45 -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=@gmail.com header.s=20161025 header.b=h+UKKFso; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728296AbeKBQBQ (ORCPT + 99 others); Fri, 2 Nov 2018 12:01:16 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:36088 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727546AbeKBQBQ (ORCPT ); Fri, 2 Nov 2018 12:01:16 -0400 Received: by mail-lj1-f196.google.com with SMTP id s15-v6so827009lji.3; Thu, 01 Nov 2018 23:55:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zFD5aM2ikf/JqmpGlQ0Z8eh3qdhiC1JiaXgFQT9lgis=; b=h+UKKFsoQO2pOVp4U7PZc+hG90qGhTiHYraoEZznLFMTx5CIL2AMxWPuFADzBhgBB1 FozIC4sosSw7Xyxa3tBvF9ki+w1U5WUF307TRVsuOc259qgD+3f0BL+csBEySvnqBKz6 8Gwpww1rN+YBKPtunyKZoGQp5jP/EyDJNKjcTEF6Llq/DHQNucw4OX7a4ZNo3jKmPs1G CXqdQ+zMEK8sLxLgK6Yo8vxh4OZGOZM/3efiAAYw2B/eqk10zc/qu7eiE8Xu8t4R16k1 RgnSYADU5dJc5u8j3bEowQGLeskmTXwhfjdO1IefEqOCmr7Xs6zLTgfjZSy/f65TP6+V 1Uwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zFD5aM2ikf/JqmpGlQ0Z8eh3qdhiC1JiaXgFQT9lgis=; b=nzGRUoO2u486jJP0ORUQ3qPnyU/OqkUP0BAvYoz1h4PQI8d3+hUWzCt5j73RWX1cXE IKb56fXV+kndXIthqdIri/iJfLa70H1yjvMP46tSLcBfqYJ0otNPXRtb3rErFhRpKtj+ 23uSaHjo4IBLuHWTLQwQc1doeFY8tvBeyO7Z0hLGZ8Y9E1wHjNEMaVIENPxE2ZNmJG61 Ts/MVnvuFphgk7vgvzThzK2+e+srmzr4ThNvVyeSm+pUsKnTmCjknGB55Reee+VMq+kY SxvVDbc1xVPLmfGi1hpkUWCUguVEjBpGk/4ts7v/jOcv5g0NwCxFOnvSDOCj4NE1uJvi 8wAQ== X-Gm-Message-State: AGRZ1gIe+cEglT2fbIrJp41RTn2k0g3LyFaa5ChZHEutrLtO67Dn/nGJ 0A2/k8xYZY8kROhMD2w5iRoCOIB99IMZz9mI6hfEqxxR X-Received: by 2002:a2e:5555:: with SMTP id j82-v6mr7554664ljb.69.1541141707293; Thu, 01 Nov 2018 23:55:07 -0700 (PDT) MIME-Version: 1.0 References: <20181101144044.11495-1-ricardo.ribalda@gmail.com> <154111534593.88331.1129843003477644482@swboyd.mtv.corp.google.com> In-Reply-To: <154111534593.88331.1129843003477644482@swboyd.mtv.corp.google.com> From: Ricardo Ribalda Delgado Date: Fri, 2 Nov 2018 07:54:50 +0100 Message-ID: Subject: Re: [PATCH 0/5] Implement devm_of_clk_add_provider To: Stephen Boyd Cc: Alan Tull , linux-clk@vger.kernel.org, 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 Hi Stephen On Fri, Nov 2, 2018 at 12:35 AM Stephen Boyd wrote: > > Quoting Ricardo Ribalda Delgado (2018-11-01 07:40:39) > > All Tull reported that there might be a great ammount of drivers with > > imbalance on clk_add_provider. This is an issue for Device tree overlays > > (and also a bug) https://lkml.org/lkml/2018/10/18/1103 > > > > This patchset implement a devm_ function of of_clk_add_provider, and > > fixes 3 drivers. > > > > Drivers like clk-gpio will be easily fixed with coccinelle if this set > > is accepted. (I volunteer, I want to learn how to use it, just seen the > > great presentations from Julia). > > We already have devm_of_clk_add_hw_provider(), so any instances of > of_clk_add_provider() should be replaced with that, instead of > propagating the usage of of_clk_add_provider() any further. I'll gladly > apply patches to convert drivers from struct clk based APIs to struct > clk_hw based APIs so that we can clearly split clk providers from clk > consumers. So if you're interested in working on some coccinelle script > for that it would be great! > Will look into that. Can you take a look to 1/5 of this patchset? I believe that it is valid even if we do not take 2-5. Cheers -- Ricardo Ribalda