Received: from eggs.gnu.org ([2001:4830:134:3::10]:44632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bx8sz-0001RR-8c for qemu-devel@nongnu.org; Thu, 20 Oct 2016 04:39:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bx8sw-0001U8-M8 for qemu-devel@nongnu.org; Thu, 20 Oct 2016 04:39:37 -0400 References: <1476940330-27705-1-git-send-email-david@gibson.dropbear.id.au> <1476940330-27705-10-git-send-email-david@gibson.dropbear.id.au> From: Thomas Huth Message-ID: Date: Thu, 20 Oct 2016 10:39:29 +0200 MIME-Version: 1.0 In-Reply-To: <1476940330-27705-10-git-send-email-david@gibson.dropbear.id.au> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 09/13] pseries: Consolidate construction of /rtas device tree node List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson , aik@ozlabs.ru, mdroth@linux.vnet.ibm.com, groug@kaod.org Cc: agraf@suse.de, lvivier@redhat.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org On 20.10.2016 07:12, David Gibson wrote: > For historical reasons construction of the /rtas node in the device > tree (amongst others) is split into several places. In particular > it's split between spapr_create_fdt_skel(), spapr_build_fdt() and > spapr_rtas_device_tree_setup(). > > In fact, as well as adding the actual RTAS tokens to the device tree, > spapr_rtas_device_tree_setup() just adds the ibm,lrdr-capacity > property, which despite going in the /rtas node, doesn't have a lot to > do with RTAS. > > This patch consolidates the code constructing /rtas together into a new > spapr_dt_rtas() function. spapr_rtas_device_tree_setup() is renamed to > spapr_dt_rtas_tokens() and now only adds the token properties. > > Signed-off-by: David Gibson > --- > hw/ppc/spapr.c | 130 +++++++++++++++++++++++++++---------------------- > hw/ppc/spapr_rtas.c | 33 ++----------- > include/hw/ppc/spapr.h | 3 +- > 3 files changed, 76 insertions(+), 90 deletions(-) Reviewed-by: Thomas Huth