From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933133AbcECAij (ORCPT ); Mon, 2 May 2016 20:38:39 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:46372 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933640AbcECAhS (ORCPT ); Mon, 2 May 2016 20:37:18 -0400 Date: Mon, 2 May 2016 17:37:16 -0700 From: Stephen Boyd To: Michael Turquette Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Russell King Subject: Re: [PATCH v2 04/13] clkdev: Add clk_hw based registration APIs Message-ID: <20160503003716.GH3492@codeaurora.org> References: <1461277324-27185-1-git-send-email-sboyd@codeaurora.org> <1461277324-27185-5-git-send-email-sboyd@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1461277324-27185-5-git-send-email-sboyd@codeaurora.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/21, Stephen Boyd wrote: > Now that we have a clk registration API that doesn't return > struct clks, we need to have some way to hand out struct clks via > the clk_get() APIs that doesn't involve associating struct clk > pointers with a struct clk_lookup. Luckily, clkdev already > operates on struct clk_hw pointers, except for the registration > facing APIs where it converts struct clk pointers into struct > clk_hw pointers almost immediately. > > Let's add clk_hw based registration APIs so that we can skip the > conversion step and provide a way for clk provider drivers to > operate exclusively on clk_hw structs. This way we clearly > split the API between consumers and providers. > > Cc: Russell King > Signed-off-by: Stephen Boyd > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project From mboxrd@z Thu Jan 1 00:00:00 1970 From: sboyd@codeaurora.org (Stephen Boyd) Date: Mon, 2 May 2016 17:37:16 -0700 Subject: [PATCH v2 04/13] clkdev: Add clk_hw based registration APIs In-Reply-To: <1461277324-27185-5-git-send-email-sboyd@codeaurora.org> References: <1461277324-27185-1-git-send-email-sboyd@codeaurora.org> <1461277324-27185-5-git-send-email-sboyd@codeaurora.org> Message-ID: <20160503003716.GH3492@codeaurora.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 04/21, Stephen Boyd wrote: > Now that we have a clk registration API that doesn't return > struct clks, we need to have some way to hand out struct clks via > the clk_get() APIs that doesn't involve associating struct clk > pointers with a struct clk_lookup. Luckily, clkdev already > operates on struct clk_hw pointers, except for the registration > facing APIs where it converts struct clk pointers into struct > clk_hw pointers almost immediately. > > Let's add clk_hw based registration APIs so that we can skip the > conversion step and provide a way for clk provider drivers to > operate exclusively on clk_hw structs. This way we clearly > split the API between consumers and providers. > > Cc: Russell King > Signed-off-by: Stephen Boyd > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project