Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1560732pxv; Fri, 25 Jun 2021 16:25:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0w28+NZbWriUQKTBCyOT5HUjK01OS7yFYnT2T7kzPlktDguGMGGdDg75Q1qhMAUxSaTB4 X-Received: by 2002:a17:907:3f1d:: with SMTP id hq29mr13741994ejc.323.1624663533076; Fri, 25 Jun 2021 16:25:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624663533; cv=none; d=google.com; s=arc-20160816; b=gcpnys+MLv5Q4CXevyNcJIfTR72/tOo2SwkW4vlk/zDVTzYGE5PAj+ifMRzFqwevcw c0ocB/EXMTqlwce+DNxOoiIBZhMUyVulll2tgxt1NPXNQfD+S3i7FtE3EfPp5uCHxYCY xas/n8KuCvwU+Ge+RHbEWp9M4MdYcSH0o4nUfz9j9UfTRB9Vjf6VswB84tFPqh4gL11S HXvaHhLQ5SuG4iOIDJulWUn1oa4xcabWbvgcJIU+PUXglVOr6m3+N49/INrirKN8tQRE hI6UyKs4DzPpq0aNZk+ezexRk6E6IS8j8Gd9ZWGWTo+hh7IGEnuf9rRmaRxDrJWuGqMV EVDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=i7nLc5PuD/8uR4kRg5YbQlHwIGUZlF3VFDPCPuT8Nzc=; b=0d0KSd66hh9yPvJLdWqM2bXOpYR2HGY4jIY7B8C5EtRSPCycQ6d7FYqIEmKYsgHCuY WpDIh5qtpE1CPlLib25aLj5qEPe6NERnmS/QYHi3y/pD29I9AMctyP6krY+mS4J2BBUW /YXZYJyjBtiJJ/4KEzbCakM0g8NN0DvQD2G4zuic/yv9xxn3Q/LABAKOCoZ0+mhZlbhY QKnmKqtyyKvG0hEVn8FWW4OhCtiqqDrXclZWpHGksSlTpKWIwDHuWbSfquQVadiKBOnJ US3q0hLDxOU7f/8ZXI7ZRrWsAlGnY5wj7QDzGTmOD/ZVopRsHyJWDdVb7W/xHEfXXh9l nvFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NomHh4ta; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zp23si7133908ejb.488.2021.06.25.16.24.59; Fri, 25 Jun 2021 16:25:33 -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=@kernel.org header.s=k20201202 header.b=NomHh4ta; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbhFYXZo (ORCPT + 99 others); Fri, 25 Jun 2021 19:25:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:46562 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229826AbhFYXZo (ORCPT ); Fri, 25 Jun 2021 19:25:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8248261949; Fri, 25 Jun 2021 23:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624663402; bh=AjDRQs5MIIcedMMdECS/CdvchLXuzlzMyKZFaSAcvcE=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=NomHh4tafrBF/py5lKSiIQB/MSFhJwidAHa9kEOy5dRBoBFA0L4zg5UwWl1rYlipo eAazffRBAPfYibw+Kka9RaaTSaMV2aB7gv83aU/rbyX/QDv6pBBHTMQFZfrry+kbFz zyS0mCHLdp2C1+xBS1uCpP/7vIULFaVUlC6Czdr/ZooZKUEYPbVCXyezSdxYbRaQwn TevaoEierZzgMCP5GmrY7dzDQdRce282NJElLKDumpu8aPXOPBKWS1/VL/m5FHgo5b Fn59m0aPXjnmPr/Hg/wTgS/JTkpLq8BClruaO0ANZS1OYyA+xhCjcV27EeqKe72wDU sREkYG7eMROWQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20210624084737.42336-1-aardelean@deviqon.com> Subject: Re: [PATCH] clk: tegra: clk-tegra124-dfll-fcpu: don't use devm functions for regulator From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, pdeschrijver@nvidia.com, pgaikwad@nvidia.com, jonathanh@nvidia.com To: Alexandru Ardelean , Thierry Reding , mturquette@baylibre.com Date: Fri, 25 Jun 2021 16:23:20 -0700 Message-ID: <162466340054.3259633.8766268265703754283@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Thierry Reding (2021-06-24 04:57:08) > On Thu, Jun 24, 2021 at 11:47:37AM +0300, Alexandru Ardelean wrote: > > The purpose of the device-managed functions is to bind the life-time of= an > > object to that of a parent device object. > >=20 > > This is not the case for the 'vdd-cpu' regulator in this driver. A > > reference is obtained via devm_regulator_get() and immediately released > > with devm_regulator_put(). > >=20 > > In this case, the usage of devm_ functions is slightly excessive, as the > > un-managed versions of these functions is a little cleaner (and slightly > > more economical in terms of allocation). > >=20 > > This change converts the devm_regulator_{get,put}() to > > regulator_{get,put}() in the get_alignment_from_regulator() function of > > this driver. > >=20 > > Signed-off-by: Alexandru Ardelean > > --- > > drivers/clk/tegra/clk-tegra124-dfll-fcpu.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > Indeed, this seems unnecessary: >=20 > Reviewed-by: Thierry Reding >=20 > Mike, Stephen: do you want to pick this up directly or would you prefer > if I collected this into a clk branch for the next cycle? >=20 No worries. I got it.