Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753874AbbKBVY3 (ORCPT ); Mon, 2 Nov 2015 16:24:29 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:35682 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751965AbbKBVY0 (ORCPT ); Mon, 2 Nov 2015 16:24:26 -0500 Date: Mon, 2 Nov 2015 13:24:22 -0800 From: Eduardo Valentin To: Sudeep Holla Cc: Javi Merino , =?utf-8?B?IkNodW5nLVlpaCBXYW5nICjnjovltIfmh78pIg==?= , Zhang Rui , Mark Rutland , "linux-kernel@vger.kernel.org" , Rob Herring , Pawel Moll , Ian Campbell , Kumar Gala , "linux-pm@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: Re: [PATCH] thermal: of: Introduce governor selection in dts Message-ID: <20151102212420.GH4469@localhost.localdomain> References: <20150807103121.GC7646@leverpostej> <20150810174723.GC2747@e104805> <55C9BB53.1090001@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <55C9BB53.1090001@arm.com> 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: 1543 Lines: 39 On Tue, Aug 11, 2015 at 10:07:31AM +0100, Sudeep Holla wrote: > > > On 10/08/15 18:47, Javi Merino wrote: > >On Mon, Aug 10, 2015 at 09:00:49AM +0100, Chung-Yih Wang (王崇懿) wrote: > >>This patch was originally introduced when we made power_allocator the > >>default governor where we had issues in binding a thermal zone w/o > >>parameters to. Then we came out this facility for binding a specific > >>governor to a thermal zone in dts instead of the default governor. > >>Javi seems like this idea much. > > > >While I can understand why this is not suitable for devicetree, we > >should have a way in the kernel to configure different governors for > >different thermal zones defined in device tree. Thermal zones defined > >from platform code can choose the thermal governor when they are > >registered. > > > >If this information can't go in device tree, where can we put it? As > >an additional parameter to thermal_zone_of_sensor_register()? > > > > Why can't it be via sysfs allowing users to select their choice of > governor ? (like cpuidle/freq or even devfreq I assume) > Yes, sysfs configuration is the current recommended way. Although it is tempting to have it in device tree, its design decisions are not meant for OS implementation/specifics. BR, > Regards, > Sudeep -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/