From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755980AbcBIDx1 (ORCPT ); Mon, 8 Feb 2016 22:53:27 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:35699 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754160AbcBIDxY (ORCPT ); Mon, 8 Feb 2016 22:53:24 -0500 Date: Tue, 9 Feb 2016 09:23:20 +0530 From: Viresh Kumar To: Stephen Boyd Cc: Rafael Wysocki , linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, nm@ti.com, Greg Kroah-Hartman , Len Brown , open list , Pavel Machek , Viresh Kumar Subject: Re: [PATCH V2 01/16] PM / OPP: get/put regulators from OPP core Message-ID: <20160209035320.GC10843@vireshk> References: <69e87438205ee12c7e884f9a3114b2f695e8b59a.1453965717.git.viresh.kumar@linaro.org> <20160202022921.GI4848@codeaurora.org> <20160202032347.GA31828@vireshk> <20160208225205.GE10791@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160208225205.GE10791@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08-02-16, 14:52, Stephen Boyd wrote: > Ok the sequence makes sense now that it's clearly explained. I > wonder if we should create and destroy OPP tables when a device > is created and destroyed instead of triggering that from a > driver. I suppose not creating the tables until they're used is > good for saving memory though? That is one of the aspects, over that, there are cases where we want to do few things from platform code before initializing the OPP tables. For examples, setting the hw-version or '-name', as done in ST's case. -- viresh