From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: Re: [PATCH] ARM: SPEAr600: Add device-tree support to SPEAr600 boards Date: Tue, 27 Mar 2012 15:57:42 +0530 Message-ID: <4F71961E.2080208@st.com> References: <1331650032-15274-1-git-send-email-sr@denx.de> <201203211236.37891.arnd@arndb.de> <201203221420.10127.arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <201203221420.10127.arnd-r2nGTMty4D4@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Arnd Bergmann Cc: spear-devel , Stefan Roese , viresh kumar , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , "devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org" List-Id: devicetree@vger.kernel.org On 3/22/2012 7:50 PM, Arnd Bergmann wrote: > The direct replacement is of_machine_is_compatible(), but there are a lot > of cases where it's better to have a local property in the device node > that a driver is using. Hey Arnd, I used of_machine_is_compatible() at several places, where it is not working :( Actually all these usages are before a call to of_platform_populate() and it looks the tree is not up by this time. So, of_machine_is_compatible() always fails. The places where i am using this routine are: - spear3xx_dt_init(): to call SoC specific of_platform_populate() - spear3xx_clk_init(): to call SoC specific clk_register() Can you please suggest what should i do here? -- viresh