Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752881AbcDVVpX (ORCPT ); Fri, 22 Apr 2016 17:45:23 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:51759 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752106AbcDVVpU (ORCPT ); Fri, 22 Apr 2016 17:45:20 -0400 Date: Fri, 22 Apr 2016 14:45:18 -0700 From: Stephen Boyd To: Michael Turquette Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 03/13] clk: Add clk_hw OF clk providers Message-ID: <20160422214518.GI13149@codeaurora.org> References: <1461277324-27185-1-git-send-email-sboyd@codeaurora.org> <1461277324-27185-4-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-4-git-send-email-sboyd@codeaurora.org> X-Patchwork-State: applied 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 Content-Length: 1187 Lines: 28 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 an OF node. Currently we ask the OF provider to > give us a struct clk pointer for some clkspec, turn that struct > clk into a struct clk_hw and then allocate a new struct clk to > return to the caller. > > Let's add a clk_hw based OF provider hook that returns a struct > clk_hw directly, so that we skip the intermediate step of > converting from struct clk to struct clk_hw. Eventually when > we've converted all OF clk providers to struct clk_hw based APIs > we can remove the struct clk based ones. > > It should also be noted that we change the onecell provider to > have a flex array instead of a pointer for the array of clk_hw > pointers. This allows providers to allocate one structure of the > correct length in one step instead of two. > > 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