Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754103AbcKROq5 (ORCPT ); Fri, 18 Nov 2016 09:46:57 -0500 Received: from mail-oi0-f65.google.com ([209.85.218.65]:32985 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752739AbcKROqx (ORCPT ); Fri, 18 Nov 2016 09:46:53 -0500 Date: Fri, 18 Nov 2016 08:46:51 -0600 From: Rob Herring To: Sudeep Holla Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , devicetree@vger.kernel.org, Frank Rowand Subject: Re: [PATCH 1/2] of: base: add support to get machine model name Message-ID: <20161118144651.275xz4gu6jaefhp7@rob-hp-laptop> References: <1479396775-32033-1-git-send-email-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1479396775-32033-1-git-send-email-sudeep.holla@arm.com> User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 973 Lines: 29 On Thu, Nov 17, 2016 at 03:32:54PM +0000, Sudeep Holla wrote: > Currently platforms/drivers needing to get the machine model name are > replicating the same snippet of code. In some case, the OF reference > counting is either missing or incorrect. > > This patch adds support to read the machine model name either using > the "model" or the "compatible" property in the device tree root node > to the core OF/DT code. > > This can be used to remove all the duplicate code snippets doing exactly > same thing later. > > Cc: Rob Herring > Cc: Frank Rowand > Cc: Arnd Bergmann > Signed-off-by: Sudeep Holla > --- > drivers/of/base.c | 32 ++++++++++++++++++++++++++++++++ > include/linux/of.h | 6 ++++++ > 2 files changed, 38 insertions(+) > > Hi Rob, > > It would be good if we can target this for v4.10, so that we have no > dependencies to push PATCH 2/2 in v4.11 Applied. Rob