Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2089516pxb; Sat, 14 Nov 2020 12:57:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+rGAtRUtVR0I9P2c++SYqg+egS+WbLRb8+VbWRG2Aj/H7IBhXcUJ50xZwD9w9EcXy2dai X-Received: by 2002:aa7:cc0e:: with SMTP id q14mr8478123edt.326.1605387421565; Sat, 14 Nov 2020 12:57:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605387421; cv=none; d=google.com; s=arc-20160816; b=ngFp7gDR+KDdN698myHrfgUkZp6uLdC8p0HKu0ukt/Hbz/+d3sqbQdxDGEXsigQQlm ZPW8XOwA95HWU7nfZgfKzXGXzXi0WP5AyGKKlPGAqbJqJjaK6SYIub+reVfcK4k5ac3M gx4s6NUAr7YfH7CSVNNc0jjStVaAF9yoF34GEk6ztmeffZTMc1X4+YxRxa9d8baB5nhK oireawipzYIkIPRDajJ3SCpgwly4qElr64Rkw7oR5WOKCqWSb7cr9gxjEs0sqqaTooBb W1pQOOm3H1pxDWOkd8eRc9Agx8r0vXR9llhCxT6DuCoTMwd3v3BelqTRNCZyclFpuw0k 92HQ== 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=AAWlZMqfOMFE0lUdVK1+7DgEtt8dUhPOyBL3cidS0JM=; b=f2h/lyoVBpaNdYlr2e8olN4bWO4d41beM4IaHinVBVWUN7MOt7Hf/eoNwXSIBeItab e/HIruwyjYWMoWMmpIO2uF1Sjb8U7S2JgDJxU+UXknKipMY75kk2V/mFiCfODnco/Q9Z dPPH6GhTU4eTKzR7uf3UgwNgVWqdwLBgWxJW4/SPmv52Xvki2mxm348VUtKdPtjDdDX3 DJZapqdCB25CyaDh0FZubd06jfga0+iOvEmLY14SCHgltdk9ZcL9nGVQHoVv3RbzaS70 k91Evz3/H8vOcvqTb/wgSUPV5WXLgLkuEmFC2fknnH3At6O/izEJndFNFqEDoWbktNfi k92A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Hzz86fKa; 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 n10si8171177ejr.7.2020.11.14.12.56.39; Sat, 14 Nov 2020 12:57:01 -0800 (PST) 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=default header.b=Hzz86fKa; 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 S1726260AbgKNUym (ORCPT + 99 others); Sat, 14 Nov 2020 15:54:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:35548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726156AbgKNUyl (ORCPT ); Sat, 14 Nov 2020 15:54:41 -0500 Received: from kernel.org (unknown [104.132.1.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D31022409; Sat, 14 Nov 2020 20:54:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605387281; bh=AAWlZMqfOMFE0lUdVK1+7DgEtt8dUhPOyBL3cidS0JM=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Hzz86fKa+mzDR3nLAnM1IIe2bjf05OqzPzOItt/RgTxaTFbsVvzaF01Z60gbpufE8 Ti01F62ZPumBUz8Ir+giZtOhPuUFZOebZ9kX0hK45DOsyX6tIzzy/jlJ16cRPp5tZ0 acaDY8C7Ih2SULdGtwwE/8ro7tP+8Y/0udqKd+cM= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20201021162147.563655-3-jbrunet@baylibre.com> References: <20201021162147.563655-1-jbrunet@baylibre.com> <20201021162147.563655-3-jbrunet@baylibre.com> Subject: Re: [PATCH v2 2/3] clk: add api to get clk consumer from clk_hw From: Stephen Boyd Cc: Jerome Brunet , linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Kevin Hilman To: Jerome Brunet , Martin Blumenstingl Date: Sat, 14 Nov 2020 12:54:40 -0800 Message-ID: <160538728023.60232.13014253270340960379@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jerome Brunet (2020-10-21 09:21:46) > clk_register() is deprecated. Using 'clk' member of struct clk_hw is > discouraged. With this constraint, it is difficult for driver to > register clocks using the clk_hw API and then use the clock with > the consumer API >=20 > This adds a simple helper, clk_hw_get_clk(), to get a struct clk from > a struct clk_hw. Like other clk_get() variant, each call to this helper > must be balanced with a call to clk_put(). To make life easier on the > consumers, a memory managed version is provided as well. >=20 > Cc: Martin Blumenstingl > Signed-off-by: Jerome Brunet > --- Applied to clk-next