From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA210C433F5 for ; Mon, 18 Oct 2021 13:26:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C92526126A for ; Mon, 18 Oct 2021 13:26:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231873AbhJRN3F (ORCPT ); Mon, 18 Oct 2021 09:29:05 -0400 Received: from foss.arm.com ([217.140.110.172]:37362 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230526AbhJRN20 (ORCPT ); Mon, 18 Oct 2021 09:28:26 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 58926101E; Mon, 18 Oct 2021 06:26:15 -0700 (PDT) Received: from bogus (unknown [10.57.25.56]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 13AC93F73D; Mon, 18 Oct 2021 06:26:07 -0700 (PDT) Date: Mon, 18 Oct 2021 14:26:05 +0100 From: Sudeep Holla To: Rob Herring Cc: Russell King , James Morse , Sudeep Holla , Catalin Marinas , Will Deacon , Guo Ren , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Michael Ellerman , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yoshinori Sato , Rich Felker , x86@kernel.org, Greg Kroah-Hartman , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Benjamin Herrenschmidt , Paul Mackerras , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "Rafael J. Wysocki" , Frank Rowand , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, openrisc@lists.librecores.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 01/12] of: Add of_get_cpu_hwid() to read hardware ID from CPU nodes Message-ID: <20211018132605.jh2huoxmywjcr5xa@bogus> References: <20211006164332.1981454-1-robh@kernel.org> <20211006164332.1981454-2-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211006164332.1981454-2-robh@kernel.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Wed, Oct 06, 2021 at 11:43:21AM -0500, Rob Herring wrote: > There are various open coded implementions parsing the CPU node 'reg' > property which contains the CPU's hardware ID. Introduce a new function, > of_get_cpu_hwid(), to read the hardware ID. > > All the callers should be DT only code, so no need for an empty > function. > Thanks for doing this. I postponed and forgot about this though I had planned for this when I touched code around this. Reviewed-by: Sudeep Holla -- Regards, Sudeep