Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752912AbbHSISF (ORCPT ); Wed, 19 Aug 2015 04:18:05 -0400 Received: from down.free-electrons.com ([37.187.137.238]:47758 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752405AbbHSISB (ORCPT ); Wed, 19 Aug 2015 04:18:01 -0400 Date: Wed, 19 Aug 2015 10:17:57 +0200 From: Antoine Tenart To: Viresh Kumar Cc: Antoine Tenart , sebastian.hesselbarth@gmail.com, zmxu@marvell.com, jszhang@marvell.com, "linux-arm-kernel@lists.infradead.org" , Linux PM list , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 0/6] ARM: berlin: add cpufreq support Message-ID: <20150819081757.GA1089@kwain> References: <1439898368-11543-1-git-send-email-antoine.tenart@free-electrons.com> <20150818143911.GB12017@kwain> <20150818145925.GF31148@linux> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150818145925.GF31148@linux> 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 Content-Length: 1458 Lines: 36 On Tue, Aug 18, 2015 at 08:29:25PM +0530, Viresh Kumar wrote: > On 18-08-15, 16:39, Antoine Tenart wrote: > > However, it seems the OPP-v2 table takes precedence over the old one. > > When a default OPP-v2 table is supplied in the device tree, if the > > bootloader supplies an OPP table the old way it won't be taken into > > account. > > > > So if I understood correctly, this won't work here for the BG2Q. > > Didn't understood it completely. Are you saying that your dtb will > have two operating-points tables ? Yes. If the device tree has an OPP-v2 table and the bootloader modify it to add an old OPP table at boot, the one added by the bootloader won't be taken into account by the kernel. > The deal is that for any device, parsing of opp-v2 will be attempted > first. If its not available, then opp-v1 will be tried. But this is > per-device. So, one device can have opp-v2 tables and other one can do > v1 type. Sure. OPP-v2 tables can be used for devices having an up-to-date bootloader or if the bootloader do not modify the device tree at boot time to add an (old) OPP table. Antoine -- Antoine T?nart, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- 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/