Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751489Ab3HTMWP (ORCPT ); Tue, 20 Aug 2013 08:22:15 -0400 Received: from service87.mimecast.com ([91.220.42.44]:40447 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751145Ab3HTMWM convert rfc822-to-8bit (ORCPT ); Tue, 20 Aug 2013 08:22:12 -0400 Message-ID: <52135F86.9020401@arm.com> Date: Tue, 20 Aug 2013 13:22:30 +0100 From: Sudeep KarkadaNagesha User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: "Rafael J. Wysocki" , Benjamin Herrenschmidt CC: Sudeep KarkadaNagesha , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-pm@vger.kernel.org" , "devicetree@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , Viresh Kumar , Greg Kroah-Hartman , Jonas Bonn , Michal Simek , "grant.likely@linaro.org" , "rob.herring@calxeda.com" Subject: Re: [PATCH v4 03/19] powerpc: refactor of_get_cpu_node to support other architectures References: <1374492747-13879-1-git-send-email-Sudeep.KarkadaNagesha@arm.com> <1376991021-12160-1-git-send-email-Sudeep.KarkadaNagesha@arm.com> <1376991021-12160-4-git-send-email-Sudeep.KarkadaNagesha@arm.com> <3703987.W8AZjrDbn0@vostro.rjw.lan> In-Reply-To: <3703987.W8AZjrDbn0@vostro.rjw.lan> X-OriginalArrivalTime: 20 Aug 2013 12:22:06.0913 (UTC) FILETIME=[E2B3FB10:01CE9D9F] X-MC-Unique: 113082013221000301 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1939 Lines: 49 On 20/08/13 13:27, Rafael J. Wysocki wrote: > On Tuesday, August 20, 2013 10:30:05 AM Sudeep KarkadaNagesha wrote: >> From: Sudeep KarkadaNagesha >> >> Currently different drivers requiring to access cpu device node are >> parsing the device tree themselves. Since the ordering in the DT need >> not match the logical cpu ordering, the parsing logic needs to consider >> that. However, this has resulted in lots of code duplication and in some >> cases even incorrect logic. >> >> It's better to consolidate them by adding support for getting cpu >> device node for a given logical cpu index in DT core library. However >> logical to physical index mapping can be architecture specific. >> >> PowerPC has it's own implementation to get the cpu node for a given >> logical index. >> >> This patch refactors the current implementation of of_get_cpu_node. >> This in preparation to move the implementation to DT core library. >> It separates out the logical to physical mapping so that a default >> matching of the physical id to the logical cpu index can be added >> when moved to common code. Architecture specific code can override it. >> >> Cc: Rob Herring >> Cc: Grant Likely >> Cc: Benjamin Herrenschmidt >> Signed-off-by: Sudeep KarkadaNagesha > > This needs an ACK from Ben to go anywhere. > Hi Rafael, Correct, he has reviewed but I am waiting for his ACK before I could sent you pull request. Hopefully I should be able to send pull request tomorrow with his ACK. Hi Ben, If this is patch is fine, can I have your ACK ? 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/